•
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 42-3. MIB Objects for Copying Configuration Files via SNMP
MIB Object
copySrcFileType
copySrcFileLocation
copySrcFileName
copyDestFileType
copyDestFileLocation
copyDestFileName
copyServerAddress
OID
.1.3.6.1.4.1.6027.3.5.1.1.1.2
.1.3.6.1.4.1.6027.3.5.1.1.1.3
.1.3.6.1.4.1.6027.3.5.1.1.1.4
.1.3.6.1.4.1.6027.3.5.1.1.1.5
.1.3.6.1.4.1.6027.3.5.1.1.1.6
.1.3.6.1.4.1.6027.3.5.1.1.1.7
.1.3.6.1.4.1.6027.3.5.1.1.1.8
Object Values
Description
1 = FTOS file
Specifies the type of file to copy from.
2 = running-config
Valid values are:
3 = startup-config
•
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.
1 = flash
Specifies the location of source file.
2 = slot0
•
If the copySrcFileLocation is FTP or
3 = tftp
SCP, copyServerAddress,
copyUserName, and
4 = ftp
copyUserPassword must be specified.
5 = scp
Path (if file is not in
Specifies name of the file.
current directory)
•
If copySourceFileType is set to
and filename.
running-config or startup-config,
copySrcFileName is not required.
1 = FTOS file
Specifies the type of file to copy to.
2 = running-config
•
If the copySourceFileType is
3 = startup-config
running-config or startup-config, the
default copyDestFileLocation is flash.
•
If the copyDestFileType is a binary
the copyDestFileLocation and
copyDestFileName must be specified.
1 = flash
Specifies the location of destination file.
2 = slot0
•
If the copyDestFileLocation is FTP or
3 = tftp
SCP, copyServerAddress,
copyUserName, and
4 = ftp
copyUserPassword must be specified.
5 = scp
Path (if file is not in
Specifies the name of destination file.
default directory)
and filename.
IP Address of the
The IP address of the server.
server
•
If the copyServerAddress is specified
so must copyUserName, and
copyUserPassword.
Simple Network Management Protocol (SNMP) | 859