Command | Parameters |
console# configure | Enter configuration mode. |
console(conf)# logging 192.168.1.1 |
Set IP address or hostname identifying the external syslog server to send log output. (Optional) UDP and TCP port designation |
Command | Parameters |
console# configure | Enter configuration mode. |
console(conf)# no logging on | Disable all logging except to the console. |
console(conf)# no logging buffer | Disable logging to the logging buffer. |
console(conf)# no logging monitor | Disable logging to terminal lines. |
console(conf)# no logging console | Disable console logging. |
Command | Parameters |
console# configure | Enter configuration mode. |
console(conf)# logging buffered <0-7> | Set logging severity level for buffer. (default = 7) alerts Immediate action needed (severity=1) critical Critical conditions (severity=2) debugging Debugging messages (severity=7) emergencies System is unusable (severity=0) errors Error conditions (severity=3) informational Informational messages (severity=6) notifications Normal but significant conditions (severity=5) warnings Warning conditions (severity=4) |
console(conf)# logging console <0-7> | Set logging level severity for console. (default = 7) alerts Immediate action needed (severity=1) critical Critical conditions (severity=2) debugging Debugging messages (severity=7) emergencies System is unusable (severity=0) errors Error conditions (severity=3) informational Informational messages (severity=6) notifications Normal but significant conditions (severity=5) warnings Warning conditions (severity=4) |
console(conf)# logging monitor <0-7> | Set logging level severity for monitor. (default = 7) alerts Immediate action needed (severity=1) critical Critical conditions (severity=2) debugging Debugging messages (severity=7) emergencies System is unusable (severity=0) errors Error conditions (severity=3) informational Informational messages (severity=6) notifications Normal but significant conditions (severity=5) warnings Warning conditions (severity=4) |
console(conf)# logging trap <0-7> | Set logging level severity for traps. (default = 6) alerts Immediate action needed (severity=1) critical Critical conditions (severity=2) debugging Debugging messages (severity=7) emergencies System is unusable (severity=0) errors Error conditions (severity=3) informational Informational messages (severity=6) notifications Normal but significant conditions (severity=5) warnings Warning conditions (severity=4) |
console(conf)# logging history <0-7> | Set logging level severity for history (default = 4) alerts Immediate action needed (severity=1) critical Critical conditions (severity=2) debugging Debugging messages (severity=7) emergencies System is unusable (severity=0) errors Error conditions (severity=3) informational Informational messages (severity=6) notifications Normal but significant conditions (severity=5) size Set history table size warnings Warning conditions (severity=4) |
console(conf)# logging buffered <40960-524288> | Set logging buffer size (default = 40960) |
console(conf)# logging history size <0-500> | Set logging history size. (default = 1) |
console(conf)# service timestamps log datetime localtime | Set the timestamp to match the time/timezone configured on the switch. Note: Post 9.14.1.5 firmware, this is the default configuration. Prior to 9.14.1.5 the timestamp will be in UTC unless configured with this command. |
console# show logging syslog logging: enabled Console logging: level Debugging Monitor logging: level Debugging Buffer logging: level Debugging, 40 Messages Logged, Size (40960 bytes) Trap logging: level Informational %IRC-6-IRC_COMMUP: Link to peer RPM is up %RAM-6-RAM_TASK: RPM1 is transitioning to Primary RPM. %RPM-2-MSG:CP1 %POLLMGR-2-MMC_STATE: External flash disk missing in 'slot0: '%CHMGR-5-CARDDETECTED: Line card 0 present%CHMGR-5-CARDDETECTED: Line card 2 present %CHMGR-5-CARDDETECTED: Line card 4 present %CHMGR-5-CARDDETECTED: Line card 5 present %CHMGR-5-CARDDETECTED: Line card 8 present %CHMGR-5-CARDDETECTED: Line card 10 present %CHMGR-5-CARDDETECTED: Line card 12 present %TSM-6-SFM_DISCOVERY: Found SFM 0 %TSM-6-SFM_DISCOVERY: Found SFM 1 %TSM-6-SFM_DISCOVERY: Found SFM 2 %TSM-6-SFM_DISCOVERY: Found SFM 3 %TSM-6-SFM_DISCOVERY: Found SFM 4%