Cisco MDS-9124 Troubleshooting Guide - Page 44
Implementing Syslog with the CLI - service manual
View all Cisco MDS-9124 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
System Messages Chapter 1 Troubleshooting Overview Send documentation comments to [email protected] Note You should avoid using PCs that have IP addresses randomly assigned to them by DHCP. The switch continues to use the old IP address unless you manually change it; however the Device Manager prompts you if it does detect this situation. UNIX workstations have a built-in syslog server. You must have root access (or run the Cisco syslog server as setuid to root) to stop the built-in syslog daemon and start the Cisco syslog server. Implementing Syslog with the CLI To configure a syslog server using the CLI, follow these steps: Step 1 Step 2 Step 3 Configure the Cisco MDS switch: switch1# config terminal Enter configuration commands, one per line. End with CNTL/Z. switch1(config)# logging server 172.22.36.211 6 facility local1 To display the configuration: switch1# show logging server Logging server: enabled {172.22.36.211} server severity: notifications server facility: local1 Configure the syslog server: a. Modify /etc/syslog.conf to handle local1 messages. For Solaris, there needs to be at least one tab between the facility.severity and the action (/var/adm/MDS_logs). #Below is for the MDS 9000 logging local1.notice /var/adm/MDS_logs b. Create the log file. #touch /var/adm/MDS_logs c. Restart syslog. # /etc/init.d/syslog stop # /etc/init.d/syslog start syslog service starting. d. Verify syslog started. # ps -ef |grep syslogd root 23508 1 0 11:01:41 ? 0:00 /usr/sbin/syslogd Test the syslog server by creating an event on the Cisco MDS switch . In this case, port fc1/2 was bounced and the following was listed on the syslog server. Notice that the IP address of the switch is listed in brackets. # tail -f /var/adm/MDS_logs Sep 17 11:07:41 [172.22.36.142.2.2] : 2004 Sep 17 11:17:29 pacific: %PORT-5-IF_DOWN_INITIALIZING: %$VSAN 1%$ Interface fc1/2 is down (Initializing) Sep 17 11:07:49 [172.22.36.142.2.2] : 2004 Sep 17 11:17:36 pacific: %PORT-5-IF_UP: %$VSAN 1%$ Interface fc1/2 is up in mode TE Sep 17 11:07:51 [172.22.36.142.2.2] : 2004 Sep 17 11:17:39 pacific: %VSHD-5-VSHD_SYSLOG_CONFIG_I: Configuring console from pts/0 (dhcp-171-71-49-125.cisco.com) 1-12 Cisco MDS 9000 Family Troubleshooting Guide, Release 3.x OL-9285-05