


Tricklet(1)              USER COMMANDS                Tricklet(1)



NAME
     snmp-tbl - SNMP Table command

SYNOPSIS
     snmp-tbl [ <host> <community> <medium>  <timeout>  <retries>
     <port> ]

DESCRIPTION
     _s_n_m_p-_t_b_l collects a subtree of snmp  variables  starting  at
     the  given  mib  variable. The input line will normally gen-
     erate a list of output lines, each line containing one  node
     of the subtree.  _s_n_m_p-_t_b_l sends one snmp GET command for the
     root of the subtree, and snmp GETNEXT  commands  to  collect
     the nodes in the subtree.
     Only the first input line will be processed.
     By adding three dots ('...') at the end of the request line,
     snmp-tbl  will collect in each output line the values of the
     requested mib variables and all its alpha-numerically higher
     brothers.  In this way, a table of mib variables can be col-
     lected, 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  'ifInEr-
     rors' from the snmp agent on host dnpap.et.tudelft.nl:

     <-- echo "ifInErrors" | snmp-tbl dnpap.et.tudelft.nl
     --> ifInErrors[1]=0
     --> ifInErrors[2]=263

     The next example shows the use of a table:
     <-- echo "ifInErrors[]..." | snmp-tbl dnpap.et.tudelft.nl
     -->   ifInErrors[1]=0;   ifInUnknownProtos[1]=0;    ifOutOc-
     tets[1]=0; /
     ifOutUcastPkts[1]=19708;   ifOutNUcastPkts[1]=0;   ifOutDis-
     cards[1]=0; /
     fOutErrors[1]=0; ifOutQLen[1]=0; ifSpecific[1]=0.0
     -->  ifInErrors[2]=263;   ifInUnknownProtos[2]=0;   ifOutOc-
     tets[2]=0; /
     ifOutUcastPkts[2]=6824440;  ifOutNUcastPkts[2]=0;  ifOutDis-
     cards[2]=0; /
     ifOutErrors[2]=984463; ifOutQLen[2]=0; ifSpecific[2]=0.0


FILES
     $(MIBHOME)/mibs          list of MOSY MIB definition files
     $(MIBHOME)/*.def         MOSY MIB definition files
     $(CONFIGROOT)/global.ini  dnpap's configuration variables
     $(BIN)/snmp-tbl          executable





Sun Release 4.1        Last change: local                       1






Tricklet(1)              USER COMMANDS                Tricklet(1)



SEE ALSO
     _s_n_m_p-_g_e_t(_l) _s_n_m_p-_s_e_t(_l) _s_n_m_p-_n_x_t(_l)





















































Sun Release 4.1        Last change: local                       2



