Administrator Guide

agents and managers that are allowed to interact. Communities are necessary to secure communication between SNMP managers
and agents; SNMP agents do not respond to requests from management stations that are not part of the community.
The Dell Networking OS enables SNMP automatically when you create an SNMP community and displays the following message.
You must specify whether members of the community may retrieve values in Read-Only mode. Read-write access is not supported.
22:31:23: %RPM1-P:CP %SNMP-6-SNMP_WARM_START: Agent Initialized - SNMP WARM_START.
To create an SNMP community:
Choose a name for the community.
CONFIGURATION mode
snmp-server community name ro
Example of Creating an SNMP Community
To view your SNMP conguration, use the show running-config snmp command from EXEC Privilege mode.
Dell(conf)#snmp-server community my-snmp-community ro
22:31:23: %RPM1-P:CP %SNMP-6-SNMP_WARM_START: Agent Initialized - SNMP WARM_START.
Dell#show running-config snmp
!
snmp-server community mycommunity ro
Dell#
Reading Managed Object Values
You may only retrieve (read) managed object values if your management station is a member of the same community as the SNMP
agent.
Dell Networking supports RFC 4001, Textual Conventions for Internet Work Addresses that denes values representing a type of
internet address. These values display for ipAddressTable objects using the snmpwalk command.
There are several UNIX SNMP commands that read data.
Read the value of a single managed object.
snmpget -v version -c community agent-ip {identifier.instance | descriptor.instance}
Read the value of the managed object directly below the specied object.
snmpgetnext -v version -c community agent-ip {identifier.instance | descriptor.instance}
Read the value of many objects at once.
snmpwalk -v version -c community agent-ip {identifier.instance | descriptor.instance}
In the following example, the value “4” displays in the OID before the IP address for IPv4. For an IPv6 IP address, a value of “16”
displays.
Example of Reading the Value of a Managed Object
> snmpget -v 2c -c mycommunity 10.11.131.161 sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (32852616) 3 days, 19:15:26.16
> snmpget -v 2c -c mycommunity 10.11.131.161 .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (32856932) 3 days, 19:16:09.32
Example of Reading the Value of the Next Managed Object
> snmpgetnext -v 2c -c mycommunity 10.11.131.161 .1.3.6.1.2.1.1.3.0
SNMPv2-MIB::sysContact.0 = STRING:
> snmpgetnext -v 2c -c mycommunity 10.11.131.161 sysContact.0
SNMPv2-MIB::sysName.0 = STRING:
Example of Reading the Value of Many Managed Objects at Once
> snmpwalk -v 2c -c mycommunity 10.16.130.148 .1.3.6.1.2.1.1
SNMPv2-MIB::sysDescr.0 = STRING: Dell Networking OS
Simple Network Management Protocol (SNMP)
173