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)
|