1 .\" /************************************************************
2 .\" Copyright 1997 Niels Baggesen
4 .\" All Rights Reserved
6 .\" Permission to use, copy, modify, and distribute this software and its
7 .\" documentation for any purpose and without fee is hereby granted,
8 .\" provided that the above copyright notice appear in all copies.
10 .\" I DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
11 .\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
12 .\" I BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
13 .\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
14 .\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
15 .\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
17 .\" ******************************************************************/
18 .TH SNMPTABLE 1 "08 Feb 2002" VVERSIONINFO "Net-SNMP"
21 snmptable - obtain and print an SNMP table
24 [COMMON OPTIONS] TABLE-OID
27 is an SNMP application that repeatedly uses the SNMP GETNEXT or
28 GETBULK requests to query for information on a network entity. The
31 must specify an SNMP table.
35 Display only a brief heading. Any common prefix of the table field
36 names will be deleted.
39 Do not use GETBULK requests to retrieve data, only GETNEXT.
44 is used to separate table columns. With this option, each table entry
45 will be printed in compact form, just with the string given to
46 separate the columns (useful if you want to import it into a
47 database). Otherwise it is printed in nicely aligned columns.
55 Do not display the column headings.
58 This option prepends the index of the entry to all printed lines.
61 Specifies the width of the lines when the table is printed.
62 If the lines will be longer, the table will be printed in sections of
67 In addition to these options,
69 takes the common options described in the
73 $ snmptable localhost public at.attable
75 SNMP table: at.atTable
77 atIfIndex atPhysAddress atNetAddress
78 1 8:0:20:20:0:ab 130.225.243.33
80 $ snmptable localhost public -Cf + at.attable
82 SNMP table: at.atTable
84 atIfIndex+atPhysAddress+atNetAddress
85 1+8:0:20:20:0:ab+130.225.243.33
90 actually specifying a table is rather heuristic. Note also that the
91 test requires the defining MIB file to be loaded.
94 snmpcmd(1), variables(5).