nv-l
[Top] [All Lists]

Re: [nv-l] Snmptrap command

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Snmptrap command
From: James Shanks <jshanks@us.ibm.com>
Date: Fri, 3 Dec 2004 08:23:39 -0500
Delivery-date: Fri, 03 Dec 2004 13:24:16 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Sensitivity:
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