


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



