Alcatel OS6602-24 Getting Started Guide - Page 51

Command Logging, Enabling Command Logging, Note., command history, command-log, enable, flash

Page 51 highlights

Command Logging OmniSwitch 6600 Family switches provide command logging. This feature allows users to record up to 100 of the most recent commands entered via Telnet and console sessions. In addition to a list of commands entered, the results of each command entry are recorded. Results include information such as whether a command was executed successfully, or whether a syntax or configuration error occurred. Note. The command history feature differs from the command logging feature in that command history buffers up to 30 of the most recent commands. The command information is not written to a separate log file. Also, the command history feature includes only general keyword syntax (i.e., it does not record full syntax, date and time, session IP address, and entry results). For more information on command history, refer to page 44. Refer to the sections below for more information on configuring and using CLI command logging. For detailed information related to command logging commands, refer to the OmniSwitch CLI Reference Guide. Enabling Command Logging By default, command logging is disabled. To enable command logging on the switch, enter the following command: -> command-log enable When command logging is enabled via the command-log enable syntax, a file called command.log is automatically created in the switch's /flash directory. Once enabled, configuration commands entered on the command line will be recorded to this file until command logging is disabled. The command.log file has a 66402 byte capacity. This capacity allows up to 100 of the most recent commands to be recorded. Because all CLI command logging information is archived to the command.log file, command history information will be lost if the file is deleted. Note. The command.log file cannot be deleted while the command logging feature is enabled. Before attempting to remove the file, be sure to disable command logging. For detailed information on command logging, refer to the OmniSwitch 6600 Family Switch Management Guide. March 2005 CLI Basics 45

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76

March 2005
CLI Basics
45
Command Logging
OmniSwitch 6600 Family switches provide command logging.
This feature allows users to record up to 100 of the most recent
commands entered via Telnet and console sessions. In addi-
tion to a list of commands entered, the results of each
command entry are recorded. Results include information such
as whether a command was executed successfully, or whether
a syntax or configuration error occurred.
Note.
The
command history
feature differs from the
command logging
feature in that command history buff-
ers up to 30 of the most recent commands. The command
information is
not
written to a separate log file. Also, the
command history feature includes only general keyword
syntax (i.e., it does not record full syntax, date and time,
session IP address, and entry results). For more informa-
tion on command history, refer to
page 44
.
Refer to the sections below for more information on configur-
ing and using CLI command logging. For detailed information
related to command logging commands, refer to the
OmniSwitch CLI Reference Guide
.
Enabling Command Logging
By default, command logging is
disabled
. To enable command
logging on the switch, enter the following command:
-> command-log enable
When command logging is enabled via the
command-log
enable
syntax, a file called
command.log
is automatically
created in the switch’s
/flash
directory. Once enabled, configu-
ration commands entered on the command line will be
recorded to this file until command logging is disabled.
The
command.log
file has a 66402 byte capacity. This capac-
ity allows up to 100 of the most recent commands to be
recorded. Because all CLI command logging information is
archived to the
command.log
file, command history informa-
tion will be lost if the file is deleted.
Note.
The
command.log
file cannot be deleted while the
command logging feature is enabled. Before attempting to
remove the file, be sure to disable command logging.
For detailed information on command logging, refer to the
OmniSwitch 6600 Family Switch Management Guide
.