Reference Manual

NAME

snmp - invoke an SNMP shell in the current window

snmpget - fetch a specified OID

SYNOPSIS
snmp agent
snmpget oid
DESCRIPTION
Command snmp opens a subshell which supports the following syntax:
exit
agent name
[object-name]+
next [object-name]+
set [object-name type value]+

type can be: [int | counter | gauge | timeticks | str | objid | ipaddr]

Control characters are:     TAB     print next object-name
                                       ctrl-n     get next object
                                       ctrl-w     kill word

The snmp shell is used to view or set MIB variables at an agent. Variables can be partially specified, TAB will complete them. Note that only certain MIB variables are alterable.

SNMP functionality is also available in Tcl.

Command snmpget fetches a variable specified as an OID from an SNMP Agent specified in environment variable agent. For example, the OID of system.sysUpTime is: 1.3.0

The downstream and upstream OIDs for a VDSL2 modem are:

10.97.1.1.2.1.9.1  = {Gauge} 95560 # Max downstream kbps
10.97.1.1.2.1.9.2  = {Gauge} 39496 # Max upstream kbps
10.97.1.1.2.1.10.1 = {Gauge} 90724 # Current downstream kbps
10.97.1.1.2.1.10.2 = {Gauge} 39355 # Current upstream kbps
VDSL2 MIB details can be found here and in RFC3728.

 

...
SEE ALSO
Environment variables, tcl