Re: snmpwalk snmpbulkwalk problems/bug??

2019-08-02 Thread Wes Hardaker via Net-snmp-coders
Jose Roberto Fernandez Anahia writes: > I observed that my funcion My_Get_Table(struct variable *vp, oid > *name, size_t *length, int exact, size_t *var_len, WriteMethod > **write_method) > is called much more than 5 (five) 5 times!!! The upper code doesn't know how many entries you have, so it

Re: set COMMUNITY without using snmpd.config

2019-08-02 Thread Wes Hardaker via Net-snmp-coders
Alireza writes: > How can I  change the COMMUNITY's string without using the config > file? > With the information I get, there is a command for this: > netsnmp_ds_set_string (NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_COMMUNITY, > "public"); That sets the outgoing community, not the incoming for t

Re: Set function in c/c++

2019-08-02 Thread Wes Hardaker via Net-snmp-coders
Ashutosh Kumar writes: > Hi Ryan, > > I'd recommend you to go through the implementation of apps/snmpset.c that > provides > the CLI functionality. Had a similar requirement for a project I was working > on > around a year ago, and going through the CLI implementation helped a lot . Agreed, a

Re: Set function in c/c++

2019-08-02 Thread Ashutosh Kumar
Hi Ryan, I'd recommend you to go through the implementation of apps/snmpset.c that provides the CLI functionality. Had a similar requirement for a project I was working on around a year ago, and going through the CLI implementation helpe

Set function in c/c++

2019-08-02 Thread Ryan Frost
Good morning, I’m not sure if this is the right email for this but I’m in need of help on a project. I have been using this library and am familiar with all the CLI commands but need to put it into code. The example and read_objid function is working and gets the status I want. Now I would like to