r***@cisco.com
2002-09-04 20:15:09 UTC
Could you pl tell mw how a v2c trap can be generated
using net-snmp snmptrap application?
The man page is quite confusing on this:
NAME
snmptrap, snmpinform - sends an SNMP trap to a manager
SYNOPSIS
snmptrap -v 1 [COMMON OPTIONS] [-Ci] enterprise-oid agent
generic-trap specific-trap uptime [OID TYPE VALUE]...
snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] uptime trap-oid
[OID TYPE VALUE]...
Clearly, there is no specification of the NMS address or the agent address.
Thanks,
Rk
x77309
bash$ cd netsnmp/bin
bash$ snmptrap -v 1 -c public 171.69.69.42 1.3.6.1.4.1.9.9.171.2.0.1 171.69.68.60 0 1 4567 1.3.6.1.4.1.9.9.171.1.2.1.1 i 1
$
(success)
bash$ snmptrap -v 2c -c public 171.69.69.42 1.3.6.1.4.1.9.9.171.2.0.1 171.69.68.60 0 1 4567 1.3.6.1.4.1.9.9.171.1.2.1.1 i 1
Segmentation Fault (core dumped)
$
bash$ snmptrap -v 2c -c public 4567 1.3.6.1.4.1.9.9.171.2.0.1 1.3.6.1.4.1.9.9.171.1.2.1.1 i 1
i: Missing type/value for variable
using net-snmp snmptrap application?
The man page is quite confusing on this:
NAME
snmptrap, snmpinform - sends an SNMP trap to a manager
SYNOPSIS
snmptrap -v 1 [COMMON OPTIONS] [-Ci] enterprise-oid agent
generic-trap specific-trap uptime [OID TYPE VALUE]...
snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] uptime trap-oid
[OID TYPE VALUE]...
Clearly, there is no specification of the NMS address or the agent address.
Thanks,
Rk
x77309
bash$ cd netsnmp/bin
bash$ snmptrap -v 1 -c public 171.69.69.42 1.3.6.1.4.1.9.9.171.2.0.1 171.69.68.60 0 1 4567 1.3.6.1.4.1.9.9.171.1.2.1.1 i 1
$
(success)
bash$ snmptrap -v 2c -c public 171.69.69.42 1.3.6.1.4.1.9.9.171.2.0.1 171.69.68.60 0 1 4567 1.3.6.1.4.1.9.9.171.1.2.1.1 i 1
Segmentation Fault (core dumped)
$
bash$ snmptrap -v 2c -c public 4567 1.3.6.1.4.1.9.9.171.2.0.1 1.3.6.1.4.1.9.9.171.1.2.1.1 i 1
i: Missing type/value for variable