Tricklet(1) Tricklet(1)
local
NAME
snmp-table - SNMP-table command
SYNOPSIS
snmp-table <host> [ <community> <timeout> <retries> <port> ] file
DESCRIPTION
snmp-table collects a subtree of snmp variables starting at the given
mib variable. One line of input will normally generate a list of
output lines, each line containg one node of the subtree. snmp-table
send one snmp GET command for the root of the subtree, and snmp
GETNEXT commands to collect the nodes in the subtree.
By adding three dots ('...') to a request line, snmp-table will
collect in each output line the values of the requested mib varaible
and all its alpha-numerically higher brothers. In this way, a table of
mib variables can be collected, with each output line containing one
row of the table.
See the man page of snmp-get for a syntax of a request.
EXAMPLES
The following example retrieves the mib variable 'ifInErrors' from the
snmp agent on host dnpap.et.tuddelft.nl:
<-- echo "ifInErrors" | snmp-table dnpap.et.tudelft.nl
--> ifInErrors[1]=0
--> ifInErrors[2]=263
The next example shows the use of a table:
<-- echo "ifInErrors[]..." | snmp-table dnpap.et.tudelft.nl
--> ifInErrors[1]=0; ifInUnknownProtos[1]=0; ifOutOctets[1]=0; /
ifOutUcastPkts[1]=19708; ifOutNUcastPkts[1]=0; ifOutDiscards[1]=0; /
fOutErrors[1]=0; ifOutQLen[1]=0; ifSpecific[1]=0.0
--> ifInErrors[2]=263; ifInUnknownProtos[2]=0; ifOutOctets[2]=0; /
ifOutUcastPkts[2]=6824440; ifOutNUcastPkts[2]=0; ifOutDiscards[2]=0; /
ifOutErrors[2]=984463; ifOutQLen[2]=0; ifSpecific[2]=0.0
FILES
$(MIBHOME)/mibs list of MOSY MIB definition files
$(MIBHOME)/*.defs MOSY MIB definitions files
$(BIN)/snmp-table executable
SEE ALSO
snmp-get(l) snmp-set(l) snmp-getnext(l)
- 1 - Formatted: December 8, 2025