Alcatel OmniSwitch/Router Guía de usuario Pagina 181

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 346
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 180
Logging CLI Commands and Entry Results Using the CLI
page 6-17 OmniSwitch 6250/6450 Switch Management Guide May 2012
Logging CLI Commands and Entry Results
The switch provides command logging through the command-log command. This feature allows users to
record up to 100 of the most recent commands entered through Telnet, Secure Shell, 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 (that is, it does not record
full syntax, date and time, session IP address, and entry results). For more information on command
history, refer to page 6-15.
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 6250/6450 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 through the command-log enable syntax, a file called command.log
is automatically created in the flash directory of the switch. Once enabled, configuration commands
entered on the command line are 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 is 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. To disable command logging, refer to
the information below.
Disabling Command Logging
To disable the command logging, simply enter the following command:
-> command-log disable
Disabling command logging does not automatically remove the command.log file from the flash
directory. All commands logged before the command-log disable syntax was entered remains available
for viewing. For information on viewing logged commands, along with the command entry results, refer to
“Viewing Logged CLI Commands and Command Entry Results” on page 6-18.
Vista de pagina 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 345 346

Comentarios a estos manuales

Sin comentarios