I'm new to SNMP and I'm having trouble reconciling the
http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application tutorial with
the equipment's documentation. That documentation says that you can use:

> snmpget -c public -v 2c <ip address> <MIB OID>

 to get a value, but it seems much more complicated in the tutorial. For
instance, I have no idea what to do w/

> So we add this oid, with a NULL value to the PDU using the following
> statement: (all oids should be paired with a NULL value for outgoing
> requests for information. For an SNMP-SET pdu, we'd put in the value we
> wanted to set the oid to).

Also, the tutorial seems to have an OID of the form ".1.3.6.1.2.1.1.1.0"
but then it presents "system.sysDescr.0" but I don't know what that is.

If possible, I'd like to know what the code would look like for a
synchronous query with the OID "1.3.6.1.4.1.33777.4.1.1.1.14.0" which is
expecting a 1-byte response. The docs also say that "33777" is the "PEN",
but I don't know how that matters. From the command-line version, it seems
that it needs to be in version 2c and doesn't require any security. Or, if
I haven't given enough information, what else I should be asking the
manufacturer. Thanks.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to