Most of options from this paragraph can also be configured via command line arguments.
Those options are relevant only for binaries from NET-SNMP product.
logTimestamp (1|yes|true|0|no|false)
Whether the commands should log timestamps with their error/message logging or not. Note that output will not look as pretty with timestamps if the source code that is doing the logging does incremental logging of messages that are not line buffered before being passed to the logging routines. This option is only used when file logging is active.
printNumericEnums (1|yes|true|0|no|false)
Equivalent to -Oe. Removes the symbolic labels from enumeration values:
$ snmpget -c public -v 1 localhost ipForwarding.0 IP-MIB::ipForwarding.0 = INTEGER: forwarding(1) $ snmpget -c public -v 1 -Oe localhost ipForwarding.0 IP-MIB::ipForwarding.0 = INTEGER: 1
printNumericOids (1|yes|true|0|no|false)
Equivalent to -On. Displays the OID numerically:
.1.3.6.1.2.1.1.3.0 = Timeticks: (14096763) 1 day, 15:09:27.63
dontBreakdownOids (1|yes|true|0|no|false)
Equivalent to -Ob. Display table indexes numerically, rather than trying to interpret the instance sub-identifiers as string or OID values:
$ snmpgetnext -c public -v 1 localhost vacmSecurityModel SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0."wes" = xxx $ snmpgetnext -c public -v 1 -Ob localhost vacmSecurityModel SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0.3.119.101.115 = xxx
escapeQuotes (1|yes|true|0|no|false)
Equivalent to -OE. Modifies index strings to escape the quote characters:
$ snmpgetnext -c public -v 1 localhost vacmSecurityModel SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0."wes" = xxx $ snmpgetnext -c public -v 1 -OE localhost vacmSecurityModel SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0.\"wes\" = xxx
This allows the output to be reused in shell commands.
quickPrinting (1|yes|true|0|no|false)
Equivalent to -Oq. Removes the equal sign and type information when displaying varbind values:
SNMPv2-MIB::sysUpTime.0 1:15:09:27.63
printValueOnly (1|yes|true|0|no|false)
Equivalent to -Ov. Display the varbind value only, not the OID:
$ snmpget -c public -v 1 -Oe localhost ipForwarding.0
INTEGER: forwarding(1)
dontPrintUnits (1|yes|true|0|no|false)
Equivalent to -OU. Do not print the UNITS suffix at the end of the value.
numericTimeticks (1|yes|true|0|no|false)
Equivalent to -Ot. Display TimeTicks values as raw numbers:
SNMPv2-MIB::sysUpTime.0 = 14096763
printHexText (1|yes|true|0|no|false)
Equivalent to -OT. If values are printed as Hex strings, display a printable version as well.
hexOutputLength integer
Specifies where to break up the output of hexadecimal strings. Set to 0 to disable line breaks. Defaults to 16.
suffixPrinting (0|1|2)
The value 1 is equivalent to -Os; displays the MIB object name (plus any instance or other sub identifiers):
sysUpTime.0 = Timeticks: (14096763) 1 day, 15:09:27.63
The value 2 is equivalent to -OS; displays the name of the MIB, as well as the object name:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (14096763) 1 day, 15:09:27.63
This is the default OID output format.
oidOutputFormat (1|2|3|4|5|6)
Maps -O options as follows:
-Os=1, -OS=2, -Of=3, -On=4, -Ou=5.
The value 6 has no matching -O option. It suppresses output.
‘-Of’
Include the full list of MIB objects when displaying an OID:
iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0
‘-Ou’
display the OID in the traditional UCD-style (inherited from the original CMU code). That means removing a series of "standard" prefixes from the OID, and displaying the remaining list of MIB object names (plus any other sub identifiers):
system.sysUpTime.0 = Timeticks: (14096763) 1 day, 15:09:27.63
extendedIndex (1|yes|true|0|no|false)
Equivalent to -OX. Display table indexes in a more "program like" output, imitating a traditional array-style index format:
$ snmpgetnext -c public -v 1 localhost ipv6RouteTable IPv6-MIB::ipv6RouteIfIndex.63.254.1.0.255.0.0.0.0.0.0.0.0.0.0.0.64.1 = INTEGER: 2 $ snmpgetnext -c public -v 1 -OE localhost ipv6RouteTable IPv6-MIB::ipv6RouteIfIndex[3ffe:100:ff00:0:0:0:0:0][64][1] = INTEGER: 2
noDisplayHint (1|yes|true|0|no|false)
Disables the use of DISPLAY-HINT information when parsing indices and values to set.