Secure Mobile Access 12.4 Administration Guide

Retrieving Management Data Using SNMP

SNMP data is arranged in a standardized hierarchy made up of structured text files that describe valuable management data. These text files (called MIBs) contain descriptions of specific data variables, such as system information or status.

For more information on MIB II (including an explanation of the MIB II variable names), see http://www.ietf.org/rfc/rfc1213.txt.

To retrieve information through SNMP, you query the system for an object identifier, or OID. Each OID includes a text name, but is usually referenced using a number. For example, the OID for system uptime (sysUpTime) is 1.3.6.1.4.1.674.3.

If you don’t have an SNMP management package, you can retrieve SNMP data by connecting to the appliance, logging in as root, and then running the snmpwalk or snmpget command. For example, to retrieve information about disk space availability, you could type the following snmpwalk command to query OID

1.3.6.1.4.1.2021.9:

# snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.674.9

To view a list containing all MIB variables, type:

snmpwalk -v 1 -O n localhost -c public |more

This command returns a list like this:

.1.3.6.1.2.1.1.1.0 = Linux E-Class SRAvpn 2.4.20_004 #1 SMP Thu Apr 10 14:35:50 PDT 2017 i686

.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.2021.250.10

.1.3.6.1.2.1.1.3.0 = Timeticks: (1707979) 4:44:39.79

.1.3.6.1.2.1.1.4.0 = Root < root@localhost> (configure /etc/snmp/snmp.local.conf)

.1.3.6.1.2.1.1.5.0 = E-Class SRAvpn

.1.3.6.1.2.1.1.6.0 = Unknown (configure /etc/snmp/snmp.local.conf)

.1.3.6.1.2.1.1.8.0 = Timeticks: (7) 0:00:00.07

.1.3.6.1.2.1.1.9.1.2.1 = OID: .1.3.6.1.2.1.31

To view a list containing all MIB names (which are helpful for use with the snmpget command) type:

snmpwalk -O S localhost -c public |more

This command returns a list like the following:

SNMPv2-MIB::sysDescr.0 = Linux E-Class SRAvpn 2.4.20_004 #1 SMP Thu Apr 10 14:35:50 PDT 2003

i686

SNMPv2-MIB::sysObjectID.0 = OID : SNMPv2-SMI::enterprises.2021.250.10

SNMPv2-MIB::sysUpTime.0 = Timeticks: (1712451) 4:45:24.51

SNMPv2-MIB::sysContact.0 = Root (configure /etc/snmp/snmp.local.conf)

SNMPv2-MIB::sysName.0 = E-Class SRAvpn

SNMPv2-MIB::sysLocation.0 = Unknown (configure /etc/snmp/snmp.local.conf)

SNMPv2-MIB::sysORLastChange.0 = Timeticks: (7) 0:00:00.07

SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB

..

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.