Operating System - Linux
1819928 Members
3031 Online
109607 Solutions
New Discussion юеВ

"snmptrap" command format

 
Ian Dennison_1
Honored Contributor

"snmptrap" command format

OK, am trying to fake traps to test OVOW monitoring on RedHat Ent 3 Managed Node.

SNMP Trap command will not accept variables, instead complains of "Bad variable type".

Full command and displayed errors below

Share and Enjoy! Ian

snmptrap -v 1 ukdcsitms02.corpdcs.net public 1.3.6.1.4.1.111.15.2 dcslnx03.dcsit.net 0 1 3h \
1.3.6.1.4.1.111.15.1.1.1.2.1 s "IT_LIVE" \
1.3.6.1.4.1.111.15.1.1.1.3.1 s Database \
1.3.6.1.4.1.111.15.1.1.1.4.1 s "vp_es_live.dcsit.net" \
1.3.6.1.4.1.111.15.1.1.1.5.1 s "Buffer Cache Hit (%)" \
1.3.6.1.4.1.111.15.1.1.1.6.1 s "KEY_VALUE" \
1.3.6.1.4.1.111.15.1.1.1.7.1 s "" \
1.3.6.1.4.1.111.15.1.1.1.8.1 s "18-Feb-2005 11:45:04 o'clock GMT" \
1.3.6.1.4.1.111.15.1.1.1.9.1 s "Critical" \
1.3.6.1.4.1.111.15.1.1.1.10.1 s "Buffer cache hit ratio is 98.67%." \
1.3.6.1.4.1.111.15.1.1.1.11.1 s "IAN_D" \
1.3.6.1.4.1.111.15.1.1.1.12.1 s "SYSMAN"

# ./x
1.3.6.1.4.1.111.15.1.1.1.2.1: Bad variable type (Type of attribute is Timeticks, not OCTET STRING)
#
Building a dumber user
2 REPLIES 2
Peter Godron
Honored Contributor

Re: "snmptrap" command format

Ian,
can you please try with a "." before the 1.3.6?
Thanks
Ian Dennison_1
Honored Contributor

Re: "snmptrap" command format

Peter

Thanks for the suggestion, however it did not work.

I did manage to get around this by entering "private.enterprises" at the start of each OID of each variable. Strange but true!

Share and Enjoy! Ian
Building a dumber user