{
    "mode": "man",
    "parameter": "snmptable",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/snmptable/1/json",
    "generated": "2026-05-30T05:14:56Z",
    "synopsis": "snmptable  [COMMON  OPTIONS] [-Cb] [-CB] [-Ch] [-CH] [-Ci] [-Cf STRING] [-Cw WIDTH] AGENT TA‐\nBLE-OID",
    "sections": {
        "NAME": {
            "content": "snmptable - retrieve an SNMP table and display it in tabular form\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "snmptable  [COMMON  OPTIONS] [-Cb] [-CB] [-Ch] [-CH] [-Ci] [-Cf STRING] [-Cw WIDTH] AGENT TA‐\nBLE-OID\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "snmptable is an SNMP application that repeatedly uses the SNMP GETNEXT or GETBULK requests to\nquery  for information on a network entity.  The parameter TABLE-OID must specify an SNMP ta‐\nble.\n\nAGENT identifies a target SNMP agent, which is instrumented to monitor the given objects.  At\nits simplest, the AGENT specification will consist of a hostname or an IPv4 address.  In this\nsituation, the command will attempt communication with the agent, using UDP/IPv4 to port  161\nof the given target host. See snmpcmd(1) for a full list of the possible formats for AGENT.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "COMMON OPTIONS\nPlease  see  snmpcmd(1)  for  a list of possible values for COMMON OPTIONS as well as\ntheir descriptions.\n",
            "subsections": [
                {
                    "name": "-Cb",
                    "content": "deleted.\n"
                },
                {
                    "name": "-CB",
                    "content": ""
                },
                {
                    "name": "-Cc",
                    "content": "Print table in columns of CHARS characters width.\n"
                },
                {
                    "name": "-Cf",
                    "content": "The  string  STRING  is used to separate table columns.  With this option, each table\nentry will be printed in compact form, just with the string  given  to  separate  the\ncolumns  (useful  if you want to import it into a database).  Otherwise it is printed\nin nicely aligned columns.\n"
                },
                {
                    "name": "-Ch",
                    "content": ""
                },
                {
                    "name": "-CH",
                    "content": ""
                },
                {
                    "name": "-Ci",
                    "content": ""
                },
                {
                    "name": "-Cl",
                    "content": ""
                },
                {
                    "name": "-Cr",
                    "content": "For GETBULK requests, REPEATERS specifies the max-repeaters value to use.   For  GET‐\nNEXT requests, REPEATERS specifies the number of entries to retrieve at a time.\n"
                },
                {
                    "name": "-Cw",
                    "content": "Specifies  the  width  of  the lines when the table is printed.  If the lines will be\nlonger, the table will be printed in sections of at most WIDTH characters.  If  WIDTH\nis  less  than the length of the contents of a single column, then that single column\nwill still be printed.\n\nNote that snmptable REQUIRES  an argument specifying the agent to query and exactly  one  OID\nargument,  as  described in the snmpcmd(1) manual page.  This OID must be that of a MIB table\nobject.\n"
                }
            ]
        },
        "EXAMPLES": {
            "content": "$ snmptable -v 2c -c public localhost at.atTable\n\nSNMP table: at.atTable RFC1213-MIB::atTable\n\natIfIndex   atPhysAddress   atNetAddress\n1  8:0:20:20:0:ab 130.225.243.33\n\n$ snmptable -v 2c -c public -Cf + localhost at.atTable\n\nSNMP table: at.atTable\n\natIfIndex+atPhysAddress+atNetAddress 1+8:0:20:20:0:ab+130.225.243.33\n\n$ snmptable localhost -Cl -CB -Ci -OX -Cb -Cc 16 -Cw 64 ifTable\n\nSNMP table: ifTable\n\nIndex           Descr           Type            Mtu\nSpeed           PhysAddress     AdminStatus     OperStatus\nLastChange      InOctets        InUcastPkts     InNUcastPkts\nInDiscards      InErrors        InUnknownProtos OutOctets\nOutUcastPkts    OutNUcastPkts   OutDiscards     OutErrors\nOutQLen         Specific\n\nindex: [1]\n1               lo              softwareLoopbac 16436\n10000000                        up              up\n?               2837283786      3052466         ?\n0               0               ?               2837283786\n3052466         ?               0               0\n0               zeroDotZero\n\nindex: [2]\n2               eth0            ethernetCsmacd  1500\n10000000        0:5:5d:d1:f7:cf up              up\n?               2052604234      44252973        ?\n0               0               ?               149778187\n65897282        ?               0               0\n0               zeroDotZero\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The test for TABLE-OID actually specifying a table is rather heuristic.  Note also  that  the\ntest requires the defining MIB file to be loaded.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "snmpcmd(1), variables(5).\n\n\n\nV5.9.1                                       25 Jul 2003                                SNMPTABLE(1)",
            "subsections": []
        }
    },
    "summary": "snmptable - retrieve an SNMP table and display it in tabular form",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "deleted."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print table in columns of CHARS characters width."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The string STRING is used to separate table columns. With this option, each table entry will be printed in compact form, just with the string given to separate the columns (useful if you want to import it into a database). Otherwise it is printed in nicely aligned columns."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "For GETBULK requests, REPEATERS specifies the max-repeaters value to use. For GET‐ NEXT requests, REPEATERS specifies the number of entries to retrieve at a time."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies the width of the lines when the table is printed. If the lines will be longer, the table will be printed in sections of at most WIDTH characters. If WIDTH is less than the length of the contents of a single column, then that single column will still be printed. Note that snmptable REQUIRES an argument specifying the agent to query and exactly one OID argument, as described in the snmpcmd(1) manual page. This OID must be that of a MIB table object."
        }
    ],
    "examples": [
        "$ snmptable -v 2c -c public localhost at.atTable",
        "SNMP table: at.atTable RFC1213-MIB::atTable",
        "atIfIndex   atPhysAddress   atNetAddress",
        "1  8:0:20:20:0:ab 130.225.243.33",
        "$ snmptable -v 2c -c public -Cf + localhost at.atTable",
        "SNMP table: at.atTable",
        "atIfIndex+atPhysAddress+atNetAddress 1+8:0:20:20:0:ab+130.225.243.33",
        "$ snmptable localhost -Cl -CB -Ci -OX -Cb -Cc 16 -Cw 64 ifTable",
        "SNMP table: ifTable",
        "Index           Descr           Type            Mtu",
        "Speed           PhysAddress     AdminStatus     OperStatus",
        "LastChange      InOctets        InUcastPkts     InNUcastPkts",
        "InDiscards      InErrors        InUnknownProtos OutOctets",
        "OutUcastPkts    OutNUcastPkts   OutDiscards     OutErrors",
        "OutQLen         Specific",
        "index: [1]",
        "1               lo              softwareLoopbac 16436",
        "10000000                        up              up",
        "?               2837283786      3052466         ?",
        "0               0               ?               2837283786",
        "3052466         ?               0               0",
        "0               zeroDotZero",
        "index: [2]",
        "2               eth0            ethernetCsmacd  1500",
        "10000000        0:5:5d:d1:f7:cf up              up",
        "?               2052604234      44252973        ?",
        "0               0               ?               149778187",
        "65897282        ?               0               0",
        "0               zeroDotZero"
    ],
    "see_also": [
        {
            "name": "snmpcmd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/snmpcmd/1/json"
        },
        {
            "name": "variables",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/variables/5/json"
        }
    ]
}