Reference Manual |
NAME
snmp - invoke an SNMP shell in the current windowSYNOPSISsnmpget - fetch a specified OID
snmp agentDESCRIPTION
snmpget oid
Command snmp opens a subshell which supports the following syntax:SEE ALSOexitThe 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.
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 wordSNMP 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:
VDSL2 MIB details can be found here and in RFC3728.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
...
Environment variables, tcl