1AGENTXTRAP(1) Net-SNMP AGENTXTRAP(1)
2
3
4
6 agentxtrap - send an AgentX NotifyPDU to an AgentX master agent
7
9 agentxtrap [OPTIONS] trap-oid [OID TYPE VALUE...]
10
12 agentxtrap issues an AgentX NotifyPDU to a master agent. One or more
13 object identifiers (OIDs) can be given as arguments on the command
14 line. A type and a value must accompany each object identifier. Each
15 variable name is given in the format specified in variables(5).
16
18 -c contextName
19 if the -c option is present then the notification is sent in the
20 nondefault name context.
21 -U uptime
22 if the -U option is present then that value, parsed as centisec‐
23 onds, is taken to be the sysUpTime field of the application.
24 -x ADDRESS
25 if the -x option is present then contact the AgentX master at
26 ADDRESS and not the default one.
27
28 Additionally all the options described in snmpcmd(1) under the MIB
29 PARSING OPTIONS, LOGGING OPTIONS and INPUT OPTIONS headers as well as
30 the -d, -D, -m and -M options are supported.
31
32 In OID TYPE VALUE the parsing of the VALUE field is controlled by the
33 TYPE field. The possible values for the TYPE field is one of the fol‐
34 lowing characters:
35 = Let OID decide how VALUE should be interpreted
36 i INTEGER
37 u Unsigned
38 c Counter32
39 s OCTET STRING of chaacters
40 x OCTET STRING, entered as a sequence of optionally space sepa‐
41 rated hexadecimal digit pairs
42 d OCTET STRING, entered as a sequence of space separated deci‐
43 mal digits in the range 0 - 255
44 n NULL
45 o OBJECT IDENTIFIER
46 t TimeTicks
47 a IpAddress
48 b BITS
49 which are handled in the same way as the snmpset command.
50
52 To send a generic linkUp trap to the manager for interface 1 the fol‐
53 lowing command can be used:
54
55 agentxtrap netSnmp.0.3 ifindex.1 i 1
56
58 snmpcmd(1), snmpset(1), variables(5), RFC 2741
59
60
61
62V5.8 20 Dec 2009 AGENTXTRAP(1)