5 logging executed-commands, 6 logging loghost sequence-number, Logging executed – PLANET XGS3-24042 User Manual

Page 1150: Commands, Logging loghost sequence, Number

Advertising
background image

72-6

Switch(config)# logging 100.100.100.5 facility local1 level warnings

Example 2:

Send the log information with a severity level equal to or higher than informational to the log server

with an IPv6 address of 3ffe:506:1:2::3, and save to the log recording equipment local5.

Switch(config)# logging 3ffe:506:1:2::3 facility local1 level informational

72.5 logging executed-commands

Command:

logging executed-commands {enable | disable}

Function:

Enable or disable the logging executed-commands.

Command Mode:

Global mode.

Default:

Disable state.

Usage Guide:

After enable this command, the commands executed by user at the console, telnet or ssh terminal

will record the log, so it should be used with the logging LOGHOST command.

Example:

Enable the command and send the commands executed by user into log host (10.1.1.1)

Switch(Config)#logging 10.1.1.1

Switch(Config)#logging executed-commands enable

72.6 logging loghost sequence-number

Command:

logging loghost sequence-number

no logging loghost sequence-number

Function:

Add the loghost sequence-number for the log; the no command does not include the loghost

sequence-number.

Command Mode:

Advertising