[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
> Dave, I want to use net-snmp to get InOctets
> and OutOctets using "C" language, but I do
> not know how to proceed.
You'll need to generate GET and/or GETNEXT requests
containing the appropriate (empty) varbinds.
I'd suggest you start with using the command-line tools
to determine exactly what requests you need to make,
and then convert this "manual shell script" into equivalent C code.
> I have downloaded net-snmp-5.1.1.tar.gz
> and trying to make things work.
Have a look at the code files 'apps/snmpget.c' and 'apps/snmpgetnext.c'
Dave
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users