Hi,
I have a requirement of doing snmpget on multiple ip address for the same objectid.
I have made the following changes to snmpget.c
1. modified to accept multiple range of ipaddress for eg: 192.168.1.10-20 or 192.168.1.0/16. added range.[ch] to provide this support to snmpget.dsp
2. provided one more option -Ci to accept inputfile that contains the list of ipaddresses. With -Ci option, the command line still needs a dummy target ip address to work with snmp_parse_args( ). eg: snmpget -c public -v1 -Ci ipfile 0.0.0.0 1.3.6.1.2.1.1.1.0 (where ipfile is the file containing list of ipaddresses)
3. replaced fprintf with snmp_log to log the output or error with -Lf filename option
Please find the snmpget.c.patch, snmp.dsp.patch, range.[ch] attached to the email that includes the above mentioned changes.
Could some one please review the patch and send me comments ? Also please let me know if I need to do something more to make this code available as patch ?
Thanks,
Ganga
<<snmpget.c.patch>> <<snmpget.dsp.patch>> <<range.c>> <<range.h>>
snmpget.c.patch
Description: snmpget.c.patch
snmpget.dsp.patch
Description: snmpget.dsp.patch
range.c
Description: range.c
range.h
Description: range.h
