beautypg.com

Clihistory - -showuser username, Clihistory - -showall, Clihistory - -help – Brocade Fabric OS Administrators Guide (Supporting Fabric OS v7.3.0) User Manual

Page 42: Notes

background image

cliHistory - -showuser username

Using the "- -showuser " argument displays the command line history of the named user.
This argument is available only to Root, Admin, Factory and Securityadmin RBAC roles.

Example of cliHistory command output showing username

switch:root> clihistory --showuser admin

CLI history

Date & Time Message

Thu Sep 27 10:14:41 2012 admin, 10.70.12.101, clihistory

Thu Sep 27 10:14:48 2012 admin, 10.70.12.101, clihistory --show

Thu Sep 27 10:15:00 2012 admin, 10.70.12.101, clihistory

cliHistory - -showall

Using the "- -showall" argument displays the command line history for all users. With this option,
admin/factory/securityadmin users can see the root user command history. This argument is available
only to Root, Admin, Factory and Securityadmin RBAC roles.

Example of cliHistory showing history of all users

switch:admin> clihistory --showall

CLI history

Date & Time Message

Thu Sep 27 04:58:00 2012 root, 10.70.12.101, firmwareshow -v

Thu Sep 27 04:58:19 2012 root, 10.70.12.101, telnet 127.1.10.1

Thu Sep 27 05:25:45 2012 root, 10.70.12.101, ipaddrshow]

Thu Sep 27 05:25:48 2012 root, 10.70.12.101, ipaddrshow

cliHistory - -help

Using the "- - help" argument displays a list of the available command arguments.

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 :

Displays the CLI History of the given user

clihistory --showall:

Displays 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.
• 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 CLI commands that require a password (Examples: firmwaredownload, configupload/download,

supportsave, and so on), only the command (no arguments) is stored (see below for an illustration).

sw0:FID128:root> 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

cliHistory - -showuser username

42

Fabric OS Administrators Guide

53-1003130-01