Read Managed Object Values - Dell Force10 C150 Configuration Manual

Ftos configuration guide ftos 8.4.2.7 e-series terascale, c-series, s-series (s50/s25)
Hide thumbs Also See for Force10 C150:
Table of Contents

Advertisement

Message 1 SNMP Enabled
22:31:23: %RPM1-P:CP %SNMP-6-SNMP_WARM_START: Agent Initialized - SNMP WARM_START.
View your SNMP configuration, using the command
mode, as shown in
Figure 48-1. Creating an SNMP Community
FTOS#snmp-server community my-snmp-community ro
22:31:23: %RPM1-P:CP %SNMP-6-SNMP_WARM_START: Agent Initialized - SNMP WARM_START.
FTOS#do show running-config snmp
!
snmp-server community mycommunity ro
FTOS#

Read 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.
There are several Unix SNMP commands that read data:
Task
Read the value of a single managed object,
as shown in
Figure
48-2.
Figure 48-2. 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,
> 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,
Read the value of the managed object
directly below the specified object, as
shown in
Figure
48-3.
Figure 48-3. Reading the Value of the Next Managed Object in the MIB
> 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:
Read the value of many objects at once, as
shown in
Figure
48-4.
Figure
48-1.
Command
snmpget -v version -c community agent-ip
descriptor.instance
snmpgetnext -v version -c community agent-ip
descriptor.instance
S50V_7.7
snmpwalk -v version -c community agent-ip
descriptor.instance
show running-config snmp
{
identifier.instance
}
19:15:26.16
19:16:09.32
}
}
Simple Network Management Protocol | 985
from EXEC Privilege
|
{
|
identifier.instance
{
|
identifier.instance

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents