Section: Net-SNMP (1)
Updated: 20 Dec 2009
agentxtrap - send an AgentX NotifyPDU to an AgentX master agent
[OID TYPE VALUE
issues an AgentX NotifyPDU to a master agent. One or more object
identifiers (OIDs) can be given as arguments on the command line.
A type and a value must accompany each object identifier.
Each variable name is given in the format specified in
- -c contextName
option is present then the notification is sent in the nondefault name context.
- -U uptime
option is present then that value, parsed as centiseconds, is taken to be the
sysUpTime field of the application.
- -x ADDRESS
option is present then contact the AgentX master at ADDRESS and not the default
Additionally all the options described in
MIB PARSING OPTIONS, LOGGING OPTIONS and INPUT OPTIONS
headers as well as the
-d, -D, -m and -M
options are supported.
OID TYPE VALUE
the parsing of the
field is controlled by the
field. The possible values for the
field is one of the following characters:
should be interpreted
OCTET STRING of chaacters
OCTET STRING, entered as a sequence of optionally space separated hexadecimal
OCTET STRING, entered as a sequence of space separated decimal digits in the
range 0 - 255
which are handled in the same way as the
To send a generic linkUp trap to the manager for interface 1 the following
command can be used:
agentxtrap netSnmp.0.3 ifindex.1 i 1
(5), RFC 2741