HP Cisco MDS 9216i Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2 - Page 498
logging logfile
View all HP Cisco MDS 9216i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 498 highlights
logging logfile Chapter 7 System Management Commands Send comments to [email protected] logging logfile Use the logging logfile command to configure the name of the log file used to store system messages and the minimum severity level to log. To disable logging to the log file, use the no form of this command. logging logfile logfile-name severity-level [size bytes] no logging logfile [logfile-name severity-level [size bytes]]] Syntax Description logfile-name severity-level size bytes Configure the name of the log file to be used to store system messages. The number of the desired severity level at which messages should be logged. Messages at or numerically lower than the specified level are logged. Severity levels are as follows: • 0-emergency: System unusable • 1-alert: Immediate action needed • 2-critical: Critical condition-default level • 3-error: Error condition • 4-warning: Warning condition • 5-notification: Normal but significant condition • 6-informational: Informational message only • 7-debugging: Appears during debugging only (Optional) Specifies a maximum file size. The default file size is 4194304 bytes and can be configured from 4096 to 4194304 bytes. Command Default None Command Modes Configuration mode Command History Release 4.0(0)N1(1a) Modification This command was introduced. Examples This example shows how to configure a log file called logfile to store system messages and set its severity level to 4: switch(config)# logging logfile logfile 4 7-12 Cisco Nexus 5000 Series Command Reference OL-16599-01