To complete the command, use as many MIB Objects in the command as required by the MIB
Object descriptions.
Error in packet.
Reason: notWritable (that object does not support modification)
Failed object: FTOS-COPY-CONFIG-MIB::copySrcFileType.101
NOTE: You can use the entire OID rather than the object name. Use the form: OID.index i
object-value.
To view more information, use the following options in the snmpset command.
-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).
The following examples show the snmpset command to copy a configuration. 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 or in the snmpset tool path
Copying Configuration Files via SNMP
To copy the running-config to the startup-config from the UNIX machine, use the following command.
Copy the running-config to the startup-config from the UNIX machine.
snmpset -v 2c -c public —m ./f10–copy-config.mif force10system-ip-address
copySrcFileType.index i 2 copyDestFileType.index i 3
Example of Copying Configuration Files (Using MIB Object Names)
Example of Copying Configuration Files (Using OIDs)
The following examples show the command syntax using MIB object names and the same command
using the object OIDs. In both cases, a unique index number follows the object.
> snmpset -v 2c -r 0 -t 60 -c public -m ./f10-copy-config.mib 10.10.10.10
copySrcFileType.101 i
2 copyDestFileType.101 i 3
FORCE10-COPY-CONFIG-MIB::copySrcFileType.101 = INTEGER: runningConfig(2)
FORCE10-COPY-CONFIG-MIB::copyDestFileType.101 = INTEGER: startupConfig(3)
> snmpset -v 2c -c public -m ./f10-copy-config.mib 10.10.10.10
.1.3.6.1.4.1.6027.3.5.1.1.1.1.2.100 i 2 .1.3.6.1.4.1.6027.3.5.1.1.1.1.5.100 i 3
FORCE10-COPY-CONFIG-MIB::copySrcFileType.100 = INTEGER: runningConfig(2)
FORCE10-COPY-CONFIG-MIB::copyDestFileType.100 = INTEGER: startupConfig(3)
Simple Network Management Protocol (SNMP) 865