cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1157
Views
3
Helpful
11
Replies

CISCO-4506 Syslog not able to set

hiruannaofit
Level 1
Level 1

CISCO 4506 Switch with supervisory engine,Release 12.1(19)EW is not able to logging Messages to a UNIX (SUN Server) Syslog Daemon.

I would like to set message logging level "7" (i.e.Debugging)

I have tried "set" command, which is not working at all. I have refered the following link:

http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/12120ea2/3550scg/swlog.htm

Experimented the same but still this issue is open.

I have downloaded "CISCO NETWORK ASSISTANT" software and tried to set IP Address of my switch and access through the cisco network assistant software but not working.....even I am not able to set IP of my switch

Pls. do the needful and suggest me some appropriate steps.

Hiren Mehta

AFRICA

11 Replies 11

Prashanth Krishnappa
Cisco Employee
Cisco Employee

For the syslog issue, can you post the relevant config(sh run | include logging)

For the CNA issue, you will need to upgrade IOS on your 4506 to 12.2(20)EWA(this is the first release in which CNA is supported)

http://www.cisco.com/en/US/products/ps5931/prod_release_note09186a00802b92f5.html#wp691771

Pls. find the following config. of my 4506 switch:

Building configuration...

Current configuration : 2341 bytes

!

version 12.1

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

service compress-config

!

hostname cisco4506_2

!

boot system flash bootflash:cat4000-i9s-mz.121-19.EW1.bin

logging console emergencies

!

vtp mode transparent

ip subnet-zero

!

spanning-tree extend system-id

!

!

interface GigabitEthernet1/1

!

interface GigabitEthernet3/1

duplex half

speed 100

!

interface Vlan1

no ip address

!

ip classless

ip http server

!

logging trap debugging

logging source-interface GigabitEthernet3/15

logging 172.16.29.105

!

line con 0

stopbits 1

line vty 0 4

login

!

end

My SUN-NMS server ip address is 172.16.29.105 255.255.255.0

#Syslog.conf is set in etc. Pls. find the following config:

ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */

#

# Copyright (c) 1991-1998 by Sun Microsystems, Inc.

# All rights reserved.

#

# syslog configuration file.

#

# This file is processed by m4 so be careful to quote (`') names

# that match m4 reserved words. Also, within ifdef's, arguments

# containing commas must be quoted.

#

*.err;kern.notice;auth.notice /dev/sysmsg

*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages

*.alert;kern.err;daemon.err operator

*.alert root

*.emerg *

local7.debug /var/log/cisco.log

user.debug /var/log/cisco.log

# if a non-loghost machine chooses to have authentication messages

# sent to the loghost machine, un-comment out the following line:

#auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)

#

# non-loghost machines will use the following lines to cause "user"

# log messages to be logged locally.

#

ifdef(`LOGHOST', ,

user.err /dev/sysmsg

user.err /var/adm/messages

user.alert `root, operator'

user.emerg *

)

I hope this information is worth finding solution.

Hope to see u soon.

Regards,

Hiren Mehta.

What is gig 3/15? Is it a switch port or a routed interface. You might want to give a VLAN interface as a routed port.

Yes. All gig 3/15 (Slot 3..15 is a no. of port) are switch ports and one of them like gig 3/47 is the last one which can be set a routed port for the identity of switch IP.

Pls. help step by step.

Which VLAN is 172.16.29.105 in? I would configure an interface VLAN x and configure an IP address under it from this subnet and make it the source interface for syslogging.

We haven't yet configured VLAN on switch u can see the config. I sent in my earlier reply.

Just my gigabitethernet 3/15 port of switch is connected to my syslog server.It's a SUN server OS 8.0 and it's IP address is 172.16.29.105

U can view /etc/syslog.conf contents of my syslog server in my earlier reply.

Pls. suggest me the basic neccesity steps syntaxwise to be done on cisco 4506 switch.

Regards,

Hiren Mehta.

You will need a source IP address on the switch for the this. Make gig3/15 a routed port by assigning it a free IP address to it from same network as 172.16.29.105. Here is how you can do it(say 172.16.29.106 is the free IP address)

conf t

interface gig3/15

no switchport

ip address 172.16.29.106 xxx.xxx.xxx.xxx <<--subnet mask

no shut

end

wr mem

I have set IP on my switch port as suggested.

What's next...??

Hiren.

dear prkrishn,

I have set on cisco 4506 as suggested. I observed that no error messages written in /var/log/cisco.log

Pls. suggest some more. Any sun server user rights related problem or what?

That is all you need from the switch side.. Install a sniffer software on your Sun Server or connect a sniffer and see if you are seeing the syslog messages coming in. If they are, I would think it has to do with some settings on your Sun server.

\

1. In 4K you have to enable clustering first with "cluster run" command.

2. In 4K unlike the stackable switches HTTP server is not enabled by default, you need to enable it to run CNA on 4K

Review Cisco Networking for a $25 gift card