blank.gif (43 bytes)

Church Of The
Swimming Elephant

dns | icmp | ietf | ined | inet | job | map | mib | netdb | ntp | snmp | sunrpc | syslog | term | udp

TNM SNMP Varbind Lists

The SNMP protocol always operates on a list of MIB variables. This list is called a varbind list. 

A varbind list is represented as a Tcl list. Each element of the varbind list is itself a Tcl list describing one varbind element. 

A fully specified varbind list element has three elements: an object identifier, which identifies the MIB variable, the data type of the MIB variable and the value of the MIB variable. 

A fully specified varbind list might look like:

{ TimeTicks 20308}
{ INTEGER softwareLoopback}
It is not necessary to use fully specified varbind lists when invoking SNMP retrieval operations. It is possible to omit the type and value fields when retrieving values from MIB variables. 

For example, to retrieve the fully specified varbind list show above, the following much shorter varbind list has been used:

It is possible to replace OBJECT IDENTIFIER values with labels or names that resolve to an OBJECT IDENTIFIER value. (See Tnm::mib for details about legal names.) This further simplifies the varbind list above to:
In order to change the value of a MIB variable, you have to include the new value in the varbind list. It is however possible to omit the type element if the type can be obtained from a MIB definition. This allows using a list like
{SNMPv2-MIB!sysContact.0 “”}
to change the value of the sysContact.0 MIB variable. Note, that the Tnm extension always returns fully specified varbind lists to avoid ambiguities.

SNMPv2c and SNMPv3 varbind lists may contain exceptions (noSuchObject, noSuchInstance, endOfMibView). These exceptions are signaled in the type element of a varbind list element. 

The value of the varbind is set to a null value that conforms to the data type of the object type:

{ noSuchInstance 0}
{ noSuchInstance {}}
It is the responsibility of the application to check for exceptions. An application will not necessarily crash if such a check is missing, but it might get confused while interpreting null values.



Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609