nv-l
[Top] [All Lists]

RE: [nv-l] Snmptrap command

To: <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Snmptrap command
From: "Brian W Green" <brian.green@cgi.com>
Date: Fri, 3 Dec 2004 09:15:06 -0500
Delivery-date: Fri, 03 Dec 2004 14:16:00 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Importance: Normal
In-reply-to: <OFBCEED8BF.CF8C139A-ON87256F5F.004952D0-85256F5F.004AA050@us.ibm.com>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
James,

Tried this - it's a step in the right direction for me! But, I'm still
having issues.  When I edit this for the custom fields, I changed
'sailor.rtp.lab.tivoli.com' to the hostname of my netview server,
.1.3.6.1.4.1.9 to the Enterprise ID of the custom enterprise,
'ferrari.raleigh.tivoli.com' to an empty string, generic type 6,
specific 2 and changed the variables so that there are only two and they
are both OctetString,  this is what I am getting:

1102082938 2  Fri Dec 03 09:08:58 2004 hostname                  A Trap:
generic 6 specific 2 args (2):  [1] .2.11.0 (OctetString): TEST
1102082938 2  Fri Dec 03 09:08:58 2004  hostname                  A  [2]
.2.12.0 (OctetString): TEST2

(that's a snippet directly from trapd.log, with the hostname edited.)
So the Enterprise is still not being set correctly.

Any ideas?

Thanks,

Brian

Brian W. Green
IBM Certified Deployment Professional
CGI Information Systems and Management Consulting
275 Slater Street, 14th Floor
Ottawa, Ontario
K1P 5H9
(613) 234-2155
brian.green@cgi.com


-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com]
On Behalf Of James Shanks
Sent: Friday, December 03, 2004 8:24 AM
To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Snmptrap command


It sounds to me as though what you need most of all is a working example

you can modify.
Try this one:

#!/bin/ksh
# cisco.link.down.trap.sh
#
# sample shell script James Shanks 07/24/96 to send snmptrap
# for testing Cisco link down
#
#
# first hostname is recipient (NetView); second is sender
# hostnames must be valid in your network
#"generic  id "2" specific id " 0" indicates link down; 
# last number is dummy timestamp
#
# per Cisco the variables are
#    ifIndex       = $1
#    ifDesc        = $2
#    ifType        = $3
#    locIfReason   = $4
#
/usr/OV/bin/snmptrap  \
  'sailor.rtp.lab.tivoli.com'  .1.3.6.1.4.1.9  \
  'ferrari.raleigh.tivoli.com'  2 0 1 \
  .1.3.0  Integer  5  \
  .1.4.0  OctetStringascii  "Serial2" \
  .1.5.0  Integer  22  \
  .1.6.0  OctetStringascii  "standby mode"

Hope this helps. 

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group


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

Archive operated by Skills 1st Ltd

See also: The NetView Web