Reference Guide

Simple Network Management Protocol (SNMP) | 857
Copy startup-config ftp://... /abc.txt
Note: Where ‘ftp’ is indicated in the examples above, scp or TFTP can also be used.
A copy performed by CLI or SNMP can be differentiated by the trap string printed at the SNMP host. The
copyAlarmIndex sent to the host has a value of ‘-1’ for a copy done by CLI and a positive value when the copy is
done by SNMP.
The relevant MIBs for these functions are:
Table 43-3. MIB Objects for Copying Configuration Files via SNMP
MIB Object OID Object Values Description
copySrcFileType .1.3.6.1.4.1.6027.3.5.1.1.1.2 1 = FTOS file
2 = running-config
3 = startup-config
Specifies the type of file to copy from.
Valid values are:
If the copySrcFileType is
running-config or startup-config, the
default copySrcFileLocation is flash.
If the copySrcFileType is a binary file,
the copySrcFileLocation and
copySrcFileName must also be
specified.
copySrcFileLocation .1.3.6.1.4.1.6027.3.5.1.1.1.3 1 = flash
2 = slot0
3 = tftp
4 = ftp
5 = scp
Specifies the location of source file.
If the copySrcFileLocation is FTP or
SCP, copyServerAddress,
copyUserName, and
copyUserPassword must be specified.
copySrcFileName .1.3.6.1.4.1.6027.3.5.1.1.1.4 Path (if file is not in
current directory)
and filename.
Specifies name of the file.
If copySourceFileType is set to
running-config or startup-config,
copySrcFileName is not required.
copyDestFileType .1.3.6.1.4.1.6027.3.5.1.1.1.5 1 = FTOS file
2 = running-config
3 = startup-config
Specifies the type of file to copy to.
If the copySourceFileType is
running-config or startup-config, the
default copyDestFileLocation is flash.
If the copyDestFileType is a binary
the copyDestFileLocation and
copyDestFileName must be specified.
copyDestFileLocation .1.3.6.1.4.1.6027.3.5.1.1.1.6 1 = flash
2 = slot0
3 = tftp
4 = ftp
5 = scp
Specifies the location of destination file.
If the copyDestFileLocation is FTP or
SCP, copyServerAddress,
copyUserName, and
copyUserPassword must be specified.
copyDestFileName .1.3.6.1.4.1.6027.3.5.1.1.1.7 Path (if file is not in
default directory)
and filename.
Specifies the name of destination file.
copyServerAddress .1.3.6.1.4.1.6027.3.5.1.1.1.8 IP Address of the
server
The IP address of the server.
If the copyServerAddress is specified
so must copyUserName, and
copyUserPassword.