On Thu, 2005-05-26 at 08:15, Juwairia Zubair wrote:
> I..... successfully sent the snmptrap with the following command
> snmptrap ..... 134.202.84.204 42 coldStart.0
You shouldn't add a '.0' here - the OID of the coldStart
notification is
.1.3.6.1.6.3.1.1.5.1
not
.1.3.6.1.6.3.1.1.5.1.0
Notifications aren't the same thing as scalar objects.
> Now I want to send parameters, so I used the command
> snmptrap ..... 134.202.84.204 69 systemScalars.name.0 s trap
You need to send the parameters in *addition* to the trap - not
instead of it.
> but I get s:Missing type/value for variable
It's interpreting 'systemScalars.name.0' as the trap to send,
's' as the name of the first varbind, 'trap' as the type
of this varbind, and is complaining because there isn't
a value.
Try
snmptrap -e 0x0102030405 -v 3 -u myuser
-a MD5 -A mypassword -l authNoPriv
134.202.84.204 69
coldStart systemScalars.name.0 s trap
Dave
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders