NAME
SNMPTRAPD-SENDTEST - SNMP Trap Tests
SYNOPSIS
snmptrapd-sendtest [options] [host] [...]
DESCRIPTION
Sends sample SNMP traps. The trap format is provided based on the user supplied SNMP version (v1 or v2c). The user has control over the values for the variable bindings. The following varbinds are always sent. The user can configure the values with the options.
VARBIND OID SNMP ASN.1 TYPE DEFAULT
----------- --------------- -------
1.3.6.1.4.1.50000.1.3 INTEGER 1
1.3.6.1.4.1.50000.1.4 OCTET_STRING String
1.3.6.1.4.1.50000.1.5 OCTET_STRING 0x0102030405060708
1.3.6.1.4.1.50000.1.6 OBJECT_IDENTIFIER 1.2.3.4.5.6.7.8.9
1.3.6.1.4.1.50000.1.7 IPADDRESS 10.10.10.1
1.3.6.1.4.1.50000.1.8 COUNTER32 32323232
1.3.6.1.4.1.50000.1.9 GAUGE32 42424242
1.3.6.1.4.1.50000.1.10 TIMETICKS [time()]
1.3.6.1.4.1.50000.1.11 OPAQUE opaque data
OPTIONS
host The host to send to.
DEFAULT: (or not specified) localhost.
-4 Force IPv4.
-6 Force IPv6 (overrides -4).
-A <IP_ADDR> SNMP IPADDRESS value.
--ip DEFAULT: (or not specified) 10.10.10.1
-C # SNMP COUNTER32 value.
--counter32 DEFAULT: (or not specified) 32323232
-co <string> SNMP community string.
--community DEFAULT: (or not specified) public
-g # SNMP GAUGE32 value.
--gauge32 DEFAULT: (or not specified) 42424242
-I Send SNMPv2 InformRequest instead of SNMPv2 Trap.
--inform Only valid with -v 2.
DEFAULT: (or not specified) [SNMPv1 trap]
-in # SNMP INTEGER value.
--integer DEFAULT: (or not specified) 1
-oi <OID> SNMP OBJECT_IDENTIFIER value.
--oid DEFAULT: (or not specified) 1.2.3.4.5.6.7.8.9
-q <string> SNMP OPAQUE value.
--opaque DEFAULT: (or not specified) opaque data
-s <string> SNMP OCTET_STRING value.
--string DEFAULT: (or not specified) String
-t # SNMP TIMETICKS value.
--timeticks DEFAULT: (or not specified) [time()]
-x <09af> SNMP OCTET_STRING consisting of hex data (non-
--hex printable ASCII).
DEFAULT: (or not specified) 0102030405060708
-v # SNMP Version (v1 or v2c). Use '1' or '2'.
--version DEFAULT: (or not specified) 1
LICENSE
This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.
AUTHOR
Copyright (C) Michael Vincent 2010
All rights reserved