Troubleshooting Tools
Running Show Commands from a Remote Host
6-44
CLI Maintenance Guide
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:
bstnA6k(cfg)#
exit
bstnA6k#
collect logs start-time 05/06/2007:09:30:00 end-time 05/06/2007:12:30:00
smtp://[email protected]/mornLogs.tgz
Collect diagnostic information? [yes/no]
yes
% INFO: The copy command completed successfully.
bstnA6k#
...
Running Show Commands from a Remote Host
You can use SSH (the Secure SHell command) from a remote machine to run any
show
command at an ARX. An earlier chapter described how to run a volume
restore
through SSH; recall
“Running the Restore from a Remote Host” on page 2-8
. You use
the same
ssh
syntax to run
show
commands:
ssh
admin-user
@
mip
“
show-command
”
where
admin-user
is the username for a valid administrative account at the ARX
(use
show users
to list all of them, as shown in
“Listing All Administrative
Users” on page 2-14
of the
CLI Network-Management Guide
),
mip
is a management-IP address for the ARX (use
show interface mgmt
to
show the out-of-band management interface, or
show interface vlan
to show
all in-band management interfaces), and
show-command
is a
show
command to run remotely. Surround this with
quotation marks (““) if it contains any spaces.
The output of the
show
command appears in the local shell. For example, this
command sequence runs from a Unix machine named “mgmt17.” The first command
runs
show processors
on “bstnA6k,” a remote ARX, and the second command runs
show system tasks
for processor 5.1:
Содержание Adaptive Resource Switch
Страница 12: ...2 xii CLI Maintenance Guide...
Страница 62: ...Backing Up the Running Configuration Restoring the Configuration 3 24 CLI Maintenance Guide...
Страница 128: ...Metadata Utilities nsck and sync Clearing All nsck Jobs 5 48 CLI Maintenance Guide...
Страница 206: ...Troubleshooting Network Connections Configuring Port Mirroring 7 32 CLI Maintenance Guide...
Страница 306: ...GUI Maintenance Restarting the GUI 10 4 CLI Maintenance Guide...
Страница 316: ...Powering Down the ARX Restoring Power 11 10 CLI Maintenance Guide...
Страница 318: ...Copyright 2 CLI Maintenance Guide...
Страница 324: ...Index 6 CLI Maintenance Guide...