Troubleshooting Tools
Running Show Commands from a Remote Host
bstnA6k(cfg)# exit
bstnA6k# collect logs start-time 05/06/2007:09:30:00 end-time 05/06/2007:12:30:00
smtp://juser@wwmed.com/mornLogs.tgz
Collect diagnostic information? [yes/no] yes
% INFO: The copy command completed successfully.
bstnA6k# ...
Running Show Commands from a Remote Host
6-44
As with a full collection, the CLI prompts for confirmation before collecting the logs.
Answer yes to continue. The collection process can be time-consuming, depending on
system state and the options that you have chosen; allow at least one minute for the
CLI prompt to return.
For example, the following commands collect logs from a specific three-hour interval
(9:30AM to 12:30PM on May 6, 2007) and send them through E-mail:
You can use SSH (the Secure SHell command) from a remote machine to run any
command at an ARX. An earlier chapter described how to run a volume
show
through SSH; recall
"Running the Restore from a Remote Host" on page
the same ssh syntax to run
ssh admin-user@mip "show-command"
where
admin-user is the username for a valid administrative account at the ARX
(use
show users
Users" on page 2-14
mip is a management-IP address for the ARX (use
show the out-of-band management interface, or
all in-band management interfaces), and
show-command is a
quotation marks ("") if it contains any spaces.
The output of the
show
command sequence runs from a Unix machine named "mgmt17." The first command
runs
show processors
for processor 5.1:
show system tasks
commands:
show
to list all of them, as shown in
of the
CLI Network-Management
command to run remotely. Surround this with
show
command appears in the local shell. For example, this
on "bstnA6k," a remote ARX, and the second command runs
restore
2-8. You use
"Listing All Administrative
Guide),
show interface mgmt
to show
show interface vlan
CLI Maintenance Guide
to