Simple Network Management Protocol (SNMP) | 957
Table 7 shows examples of using the command snmpset to copy a configuration. 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 or in the snmpset tool path.
3 On the server, use the command snmpset as shown:
snmpset -v snmp-version -c community-name -m mib_path/f10-copy-config.mib force10system-ip-address
mib-object.index
{i | a | s} object-value...
• Every specified object must have an object value, which must be preceded by the keyword i. See Table 6 for
ranges.
•
index must be unique to all previously executed snmpset commands. If an index value has been used
previously, a message like the one in Message 3 appears. In this case, increment the index value and enter the
command again.
• Use as many MIB Objects in the command as required by the MIB Object descriptions in Table 6 to complete
the command. See Table 7 or examples.
Note: You can use the entire OID rather than the object name. Use the form: OID.index i object-value, as shown in
Figure 57.
Message 2 snmpset Index Value Error
Error in packet.
Reason: notWritable (that object does not support modification)
Failed object: FTOS-COPY-CONFIG-MIB::copySrcFileType.101
Note: In UNIX, enter the command snmpset for help using this command. Place the file
f10-copy-config.mib in the directory from which you are executing the snmpset command or in the
snmpset tool path.
Note: Use the following options in the snmpset command to view additional information:
-c: View the community, either public or private
-m: View the MIB files for the SNMP command
-r: Number of retries using the option
-t: View the timeout
-v: View the SNMP version (either 1, 2, 2d or 3)
Table 46-4. Copying Configuration Files via SNMP
Task
Copy the running-config to the startup-config using the following command from the UNIX machine:
Step Task Command Syntax Command Mode