I am using the "snmptrap" command on a solaris 2.6 box to send test traps
to netview successfully. Maybe try using this.
example of user defined trap (for enterprise just change the idents:)
snmptrap <destination_host> public <enterprise_id> <source_host>
<generic_trap_no> <specific_trap_no> <time> <variables [enterprise_id type
value]>
for example, to send a trap to "nvwdev" from host "noagw" at time 17:53
with MIB variable number one saying "Testing", it looks like this (this is
a Novell GroupWise trap)....
snmptrap^nvwdev^public^1.3.6.1.4.1.23.2.3.39^noagw^6^3^1753^1.3.6.1.4.1.23.
2.39.3^OctetStringASCII^Testing
(where ^ is line space) Regards, Leonard Bocock
Scott Monroe <scott.monroe@LMCO.COM> on 22/09/98 09:59:34
Please respond to Discussion of IBM NetView and POLYCENTER Manager on
NetView et alia <NV-L@UCSBVM.UCSB.EDU>
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: Leonard I. Bocock/NZ/Unisys)
Subject: Re: Using Solaris SEA to send traps to netview
Well, I guess my question then is how do I track down the authentication
error?
I can run snmpwalk from the netview manager station on the Solaris system
with
no authentication problem so community name is correct. I notice in your
example that you are sending an MLM trap. I want to use the snmp_trapsend
utility in a shell or perl script from information in /var/adm/messages.
Am I
totally wrong in what to do here? Do I need to set up an MLM? I'm new to
snmp
issues so could be way off track.
Scott.
On Sep 21, 10:02am, Rick Barhydt wrote:
> Subject: Re: Using Solaris SEA to send traps to netview
> Scott,
> I am not having any problems sending traps using snmp_trapsend.
> Following is an example of sending a MLM threshold trap from a sun 2.6
box:
> snmp_trapsend -h mallard -g 6 -s 12 -a ".1.3.6.1.4.1.2.6.12.5.1.1.0
STRING
(This is a trap from rickb on Solaris 2.6)"
> The netview box receives and displays the trap just like any other. It
sounds
> like you need to track down the authentication error and resolve it
first.
> Then the snmp_trapsend should work fine.
>
> RickB
> > A utility snmp_trapsend is included with the Solaris SEA package. I've
been
> > trying to get it to send a trap to my netview manager on AIX specifying
an
> > enterprise-specific trap. The netview event window displays the trap
as an
> > authentication error. Has anyone figured out how to use snmp_trapsend
already?
> > Thanks,
> >
> > Scott Monroe
> > CDI/MIS at LMFS-Owego
|