nv-l
[Top] [All Lists]

RE: [nv-l] Cisco Trap Source

To: "Haibo Yang" <hbyang@sysway.com>, <nv-l@lists.tivoli.com>
Subject: RE: [nv-l] Cisco Trap Source
From: "Barr, Scott" <Scott_Barr@csgsystems.com>
Date: Thu, 25 Sep 2003 09:01:45 -0500
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Thu, 25 Sep 2003 15:03:05 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
List-help: <mailto:nv-l-help@lists.tivoli.com>
List-post: <mailto:nv-l@lists.tivoli.com>
List-subscribe: <mailto:nv-l-subscribe@lists.tivoli.com>
List-unsubscribe: <mailto:nv-l-unsubscribe@lists.tivoli.com>
Mailing-list: contact nv-l-help@lists.tivoli.com; run by ezmlm
Thread-index: AcODC6H6yRuqogfsSAm8fnjt4G75zQAYalIg
Thread-topic: [nv-l] Cisco Trap Source
I recommend setting up a loopback interface on the Cisco device and putting the 
address of the loop back interface in your DNS. Then tell the router to use the 
loop back interface as the trap source using this command:

snmp trap source loopback 0

Note that the loop back network needs to be routable. But this will guarantee 
that ALL traps from that device use the same source address and also that the 
trap can not be thrown away because an interface is down since the loop back 
interface is never down.

I hope that helps.

-----Original Message-----
From: Haibo Yang [mailto:hbyang@sysway.com]
Sent: Wednesday, September 24, 2003 9:25 PM
To: nv-l@lists.tivoli.com
Subject: [nv-l] Cisco Trap Source


Hi, List.


NV 7.1.3 + Win2000

I am now working on the nvmail.exe.  When a trap recieved by the console, a 
email will be sent to a  speific administrator.

I have configured the cisco router as follows:

snmp-server host 10.10.10.79
snmp-srever enable traps snmp
snmp-server enable traps isdn
snmp-server enable traps hsrp
snmp-server trap-source ethernet 0/1

The ipaddress for ethernet 0/1 is 10.10.10.133

>From the netview console->Option-> Trap Settings, I configured  to monitor 
>Cisco linkup trap and linkdown trap. 

"nvmail.exe -server sysway.com -recipient hbyang@sysway.com -subject "A 
Interface Has Down" -message "Cisco_Link_Down trap received from enterprise $E 
with $# arguments:  ifIndex=$1;  ifDescr=$2;  ifType=$3;  locIfReason=$4; $*""

When the cable for the ethernet 0/0, whose IP is 192.168.0.123, is unplugged, I 
can get email alter with the following information:

Return-Path: Administrator@bruce
Message-ID: <WWW67Z7oBLcZCp6OQpH00000cd7@sysway.com>
X-OriginalArrivalTime: 25 Sep 2003 02:11:05.0812 (UTC) 
FILETIME=[46DA2940:01C3830A]

Cisco_Link_Down trap received from enterprise cisco with 4 arguments:  
ifIndex=1;  ifDescr=Ethernet0_0;  ifType=6;  locIfReason=Keepalive failed;  [1] 
mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.1 (Integer): 1
 [2] mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.1 (OctetString): Ethernet0_0
 [3] mgmt.mib-2.interfaces.ifTable.ifEntry.ifType.1 (Integer): 6
 [4] local.linterfaces.lifTable.lifEntry.locIfReason.1 (OctetString): Keepalive 
failed



>From the above info, I don't know from which router the trap was sent. So it 
>is still time comsuming to allocate the trouble router.

My question is , How can I send a email alert with a source IP so that I can 
easily identify the malfunctional router?


Thanks

Cheers.

Bruce Yang

hbyang@sysway.com
bruceyoung@263.net
0086-755-26743243



---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web