mac
Commands for Show
570
Parameter: None.
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
59.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: Port mode
Default: Do not include the sequence-number.
Usage Guide: Use logging command to configure the loghost before this command is
set.
Example: Open the loghost sequence-number.
Switch(config)# logging loghost sequence-number
59.7 ping
Command: ping [[src <source-address> ] { <destination-address> | host
<hostname> }]
Function: Issue ICMP request to remote devices, check whether the remote device can
be reached by the switch.
Parameters: <source-address> is the source IP address where the ping command is
issued, with IP address in dotted decimal format. <destination-address> is the target IP
address of the ping command, with IP address in dotted decimal format. <hostname> is
the target host name of the ping command, which should not exceed 64 characters.
Default: 5 ICMP echo requests will be sent. The default packet size and time out is 56
bytes and 2 seconds.
Command Mode: Admin mode










