ArubaOs-Switch : How To Enable Command Logging

MVP Expert
MVP Expert
Q:

Is there a way to enable "command logging" so I can keep track of the commands entered into the switch CLI?



A:

You can enable command logging on the ArubaOS-Switch to keep track of commands entered at the CLI.
 

To enable this feature, enter the following command at the switch CLI config prompt:
   logging command
To view the logged commands, enter the following command:
   show logging command
  
Example Output after the "logging command" was configured:​
Aruba-3810M# show logging command
 Keys: W=Warning I=Information
 M=Major D=Debug E=Error
 ---- Command Log listing: Events Since Boot ----
 I 01/07/19 15:52:42 03440 system: User:'admin':The command:'logging command' is
 executed.
 I 01/07/19 15:52:48 03440 system: User:'admin':The command:'interface 24
 disable' is executed.
 I 01/07/19 15:53:09 03440 system: User:'admin':The command:'interface 24' is
 executed.
 I 01/07/19 15:53:12 03440 system: User:'admin':The command:'no
 power-over-ethernet' is executed.
 I 01/07/19 15:53:41 03440 system: User:'admin':The command:'enable' is executed.
 I 01/07/19 15:53:44 03440 system: User:'admin':The command:'power-over-ethernet'
 is executed. 

This example shows the CLI commands that were entered after the user "admin" enabled the "logging command" feature and then disabled port 24, disabled PoE on port 24, then re-enabled the port and PoE.

 

If you would like to receive Syslog notifications when any configuration changes are made, you can enter the following commands:
  logging facility syslog
  logging <ip-of-Syslog-server>
  logging notify running-config-change
This will send all config change notifications to the specified syslog server.
Note:   The "logging notify running-config-change" only tells you that the config was changed and not how.  Use "show logging command" to view logged command output.

Version history
Revision #:
1 of 1
Last update:
‎01-28-2019 10:50 AM
Updated by:
 
Comments
Please consider a similar "syslog setup" article for AOS-CX. Even better if you include DEBUG config options.
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: