Simple Network Management Protocol (SNMP) | 531
To obtain a value for any of the MIB Objects in Table 30-5, follow this step:
Figure 30-14 and Figure 30-15 are examples of using the
snmpget command to obtain a MIB object value.
These examples assume that:
• the server OS is Unix
• you are using SNMP version 2c
• the community name is public
• the file f10-copy-config.mib is in the current directory
Figure 30-14 shows the command syntax using MIB object names, and Figure 30-15 shows the same
command using the object OIDs. In both cases, the object is followed by same index number used in the
snmpset command.
Figure 30-14. Obtaining MIB Object Values for a Copy Operation using Object-name Syntax
Figure 30-15. Obtaining MIB Object Values for a Copy Operation using OID Syntax
Manage VLANs Using SNMP
The qBridgeMIB managed objects in the Q-BRIDGE-MIB, defined in RFC 2674, enable you to use SNMP
to manage VLANs.
Step Task
1 Get a copy-config MIB object value.
snmpset -v 2c -c public -m /f10-copy-config.mib force10system-ip-address [OID.index | mib-object.index
• index is the index value used in the snmpset command used to complete the copy operation.
Note: You can use the entire OID rather than the object name. Use the form: OID.index as shown in
Figure 30-15.
Note: In UNIX, enter the command snmpset for help using this command.
> snmpget -v 2c -c private -m ./f10-copy-config.mib 10.11.131.140 copyTimeCompleted.110
FORCE10-COPY-CONFIG-MIB::copyTimeCompleted.110 = Timeticks: (1179831) 3:16:38.31
> snmpget -v 2c -c private 10.11.131.140 .1.3.6.1.4.1.6027.3.5.1.1.1.1.13.110
SNMPv2-SMI::enterprises.6027.3.5.1.1.1.1.13.110 = Timeticks: (1179831) 3:16:38.31