
You can leave a response, or trackback from your own site.If you are not familiar with Trivial File Transfer Protocol (TFTP) click the following links to learn You can follow any responses to this entry through the RSS 2.0 feed. Experiment with changing the Access Control Lists and stopping the TFTP server to see how the table output changes. There’s still a fair bit of functionality that I’ve skipped over, you might be able to use something other than TFTP or generate an SNMP trap on completion. # snmptable -v 3 -l authPriv -a MD5 -A authsecret -x DES -X privsecret -u myuser 192.0.2.254 ccCopyTableĬISCO-CONFIG-COPY-MIB::ccCopyTable: No entries The row in the table will be automatically removed after a few minutes but you can also explicitly remove it:ĬISCO-CONFIG-COPY-MIB::ccCopyEntryRowStatus.23 = INTEGER: destroy(6) You can see the state column now reads successful so check the empty file you created under /tftpboot, it should now have the contents of the current configuration for your device. SNMP table CISCO-CONFIG-COPY-MIB::ccCopyTable, part 4 Index TimeCompleted FailCause EntryRowStatus ServerAddressType Index UserPassword NotificationOnCompletion State TimeStarted

# snmptable -v 3 -l authPriv -a MD5 -A authsecret -x DES -X authsecret -u myuser -Cb -Ci -Cw 80 192.0.2.254 ccCopyTable

This won’t initiate the operation until we set one more column to activate the table row: Index FailCause EntryRowStatus ServerAddressType ServerAddressRev1 SNMP table CISCO-CONFIG-COPY-MIB::ccCopyTable, part 3 Index UserPassword NotificationOnCompletion State TimeStarted TimeCompleted SNMP table CISCO-CONFIG-COPY-MIB::ccCopyTable, part 2 Index Protocol SourceFileType DestFileType ServerAddress FileName UserNameĢ3 tftp runningConfig networkFile 192.0.2.1 nf ? SNMP table: CISCO-CONFIG-COPY-MIB::ccCopyTable # snmptable -v 3 -l authPriv -a MD5 -A authsecret -x DES -X privsecret -u myuser -Cb -Ci -Cw 80 192.0.2.254 ccCopyTable Now if you re-run the snmptable command (with some extra flagsoup to help readability) you’ll see there’s now a row: > ccCopySourceFileType.23 i runningConfig \ĬISCO-CONFIG-COPY-MIB::ccCopyProtocol.23 = INTEGER: tftp(1)ĬISCO-CONFIG-COPY-MIB::ccCopySourceFileType.23 = INTEGER: runningConfig(4)ĬISCO-CONFIG-COPY-MIB::ccCopyDestFileType.23 = INTEGER: networkFile(1)ĬISCO-CONFIG-COPY-MIB::ccCopyServerAddress.23 = IpAddress: 192.0.2.1ĬISCO-CONFIG-COPY-MIB::ccCopyFileName.23 = STRING: nf # snmpset -v 3 -l authPriv -a MD5 -A authsecret -x DES -X privsecret -u myuser 192.0.2.254 \
