Switch Management Commands 1877
Example – Script Download
console#copy tftp://10.27.9.99/jmclendo/max-acl.scr script maxacl.scr
Example – USB copy operations
console#copy usb:/start-config startup-config
console#copy operational-log usb://olog.txt
console#copy usb://backup-config.txt backup-config
console#copy active usb://image1.stk
console#copy flash://crashlogs/crash.0 usb://crash.0
Example – Crash Log
This example copies the most recent crash log from stack unit 5 to the TFTP
server located at 10.27.9.99. The crash dump is transferred to the TFTP server
into subdirectory ~/jcm and is named crashlog.txt
console#copy core-dump 0 unit 5 tftp://10.27.9.99/jcm/crashlog.txt
Example – Application Install
Install a single application file named hiveagent_pr_s into the user-apps
directory:
console#copy tftp://172.25.122.22/hiveagent_pr_s application
Install an application package:
On the source device (a Linux workstation is shown here), perform the
following steps (aggregates hiveagent_pr hiveagent_pr_s into a compressed
tarball ha.tgz):
linux>tar czf ha.tgz hiveagent_pr hiveagent_pr_s
On the switch, issue the following command:
console#copy tftp://172.25.122.22/ha.tgz application
See what files are installed:
console#show application files
OpEN application process directory contents:
62 SupportAssist
53926 ah_ha.conf