Reformatted narrower for clarity...
Arthur, this is from a script that I use to generate the real
rearm trap for data collection for testing purposes. You should
be able to model yours on this. In this case, CCINOC_03 is the
netview server, and ATLNOCATT is the node the event is about.
Note that this is the netview enterprise, and the first variable
is the 'source' as in N or A, and the second variable ($2) is
treated as the source node. I figured this out from the man page
for snmptrap. You will need continuation characters,of course.
/usr/OV/bin/snmptrap CCINOC_03 .1.3.6.1.4.1.2.6.3 ATLNOCATT 6 58720264 1
.1.3.6.1.4.1.2.6.3.1.1.2 Integer 14
.1.3.6.1.4.1.2.6.3.1.1.3 OctetString ATLNOCATT
.1.3.6.1.4.1.2.6.3.1.1.4 OctetString "avgBusy5 0 threshold rearmed
..."
.1.3.6.1.4.1.2.6.3.1.1.5 OctetString ".1.3.6.1.4.1.9.2.1.5"
.1.3.6.1.4.1.2.6.3.1.1.6 OctetString "0"
There is an outside chance that you might have trouble with the specific
number you have chosen. It used to be documented (in V3) that specific
trap ids 1000-1999 are reserved for your use. I don't know if that means
it mishandles other numbers.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
=================================================================
"Boulieris, Arthur" <Arthur.Boulieris@nz.unisys.com>@tkg.com on 03/22/2000
05:41:35 PM
To: "'NV-L@UCSBVM.UCSB.EDU'" <NV-L@UCSBVM.ucsb.edu>
cc:
Subject: [NV-L] snmptrap command
Hello,
I am having trouble using the snmptrap command on Netview 5.1.2 on Solaris
2.6. I have configured a test trap under the netview enterprise
1.3.6.1.4.1.2.6.3 generic 6 and specific 60000001.
The command I am using is:
snmptrap unwnnvw01 .1.3.6.1.4.1.2.6.3 10.10.10.10 6 60000001 0.
This appears to send a trap but nothing is recieved by trapd.log
If I remove the preceeding . from the enterprise id it sends a trap with no
fornat in the trapd.conf.
It preceeds the enterprise ID with a
.mgmnt.mib2.system.sysuptime.6.1.4.1.2.6.3. Rather confusing.
I also can not find any documnentation on exactly what and how the
variables
work, hoe for example should I send the event description in my command, I
can send an octetstring but its not an event description.
Can any one out there please explain to me how traps work.
thankyou Arthur
Arthur Boulieris
Implementation & Support Specialist
Systems Management
<<...>>
Ph: 64-4-462 2787
Mobile: 025 543 529
Arthur.Boulieris@Unisys.com
_________________________________________________________________________
NV-L List information (unsubscribing, policies, posting, digest version,
searchable archives): http://www.tkg.com/nv-l
_________________________________________________________________________
NV-L List information (unsubscribing, policies, posting, digest version,
searchable archives): http://www.tkg.com/nv-l
|