nv-l
[Top] [All Lists]

Re: [nv-l] Cisco Trap Source

To: "Haibo Yang" <hbyang@sysway.com>
Subject: Re: [nv-l] Cisco Trap Source
From: "Geoffrey Cheng" <gcheng@ca.ibm.com>
Date: Thu, 25 Sep 2003 00:15:27 -0400
Cc: "nv-l@lists.tivoli.com" <nv-l@lists.tivoli.com>
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Thu, 25 Sep 2003 05:16:11 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Importance: Normal
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
Sensitivity:
Can you try "$A"? It display the trap agent-address using gethostbyaddr as
a string, If this fails, the program
uses inetoa to print as an IP address.

It can be found in NEtView for Windows NT Programmer's Reference (Version
7)

Best Regards,

Geoffrey Cheng
Certified I/T Specialist, CCNP, CCDP, NCC
Certified Tivoli Enterprise Consultant & Instructor
ITS, IBM Global Services
Prime Line: (416)-410-8874 Fax: (905)-316-4525
Email: gcheng@ca.ibm.com


"Haibo Yang" <hbyang@sysway.com> on 09/24/2003 10:24:34 PM

To:    "nv-l@lists.tivoli.com" <nv-l@lists.tivoli.com>
cc:
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