Reference Guide
The following example shows the output of the clihistory --help command.
swd77:admin> clihistory --help
clihistory usage:
clihistory:
Displays the CLI History of the current user
clihistory --show:
Displays the CLI History of the current user
clihistory --showuser <username>:
Displays the CLI History of the given user
clihistory --showall:
Displays the CLI History of all users
clihistory --clear:
Clears the CLI History of all users
clihistory --help:
Displays the command usage
Notes
∙ SSH login CLI logs are not recorded in the command line history. For example,
ssh user@Ipaddr switchshow
∙ The CLI command log will be collected as part of any supportSave operation. The command long record of such an operation
will be the equivalent of running cliHistory --showall.
∙ For commands that require a password (for example, the firmwaredownload, configupload, configdownload, and supportsave
commands), only the command (and no arguments) is stored (refer to the following example for an illustration).
sw0:FID128:admin> firmwaredownload -s -p scp 10.70.4.109,fvt,/dist,pray4green
Server IP: 10.70.4.109, Protocol IPv4
Checking system settings for firmwaredownload...
Failed to access scp://fvt:**********@10.70.4.109//dist/release.plist
sw0:FID128:root> clihistory
Date & Time Message
Wed May 23 03:39:37 2012 root, console, firmwaredownload
Using fosexec to run commands on remote switches or domains
The fosexec command allows you to run Fabric OS commands on remote switches or domains across the fabric. Both the local and
remote switches must be configured to send and receive remote command execution. You do not need to log in to the remote switch
locally. The outputs of the commands are displayed in the local switch. The commands that you run using fosexec are also captured in
the CLI history and audit logs of the remote switch.
The fosexec feature is a configurable feature. Using the configure command, you can configure the fosexec feature. The fosexec feature
is off by default. The fosexec feature must be on in both the sending and receiving switches or domains. The configuration is checked
when sending any fosexec request to a remote switch and also when receiving such a request from a remote switch. You can execute
this command on either a specific switch or domain or all the switches or domains in the fabric. For a specific domain or switch, you
must input the Domain ID (DID), which must be between 1 and 240.
The configure command has the following option under Configure CLI - Fabric Parameters section to enable or disable the remote
fosexec feature:
sw_85:admin> configure
Not all options will be available on an enabled switch.
To disable the switch, use the "switchDisable" command.
Configure...
Fabric parameters (yes, y, no, n): [no] y
Performing Basic Configuration Tasks
Brocade Fabric OS Administration Guide, 8.0.1
53-1004111-02 43