Reference Guide
Simple Network Management Protocol (SNMP) | 785
To obtain a value for any of the MIB Objects in Table 44-5:
Figure 44-13 and Figure 44-14 are examples of using the command
snmpget 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, and
• the file f10-copy-config.mib is in the current directory.
Figure 44-13 shows the command syntax using MIB object names, and Figure 44-14 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 44-13. Obtaining MIB Object Values for a Copy Operation using Object-name Syntax
Figure 44-14. 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
manage VLANs.
Create a VLAN
Use the dot1qVlanStaticRowStatus object to create a VLAN. The snmpset operation in Figure 44-15
creates VLAN 10 by specifying a value of 4 for instance 10 of the dot1qVlanStaticRowStatus object.
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 44-13.
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










