NAME
snmptrap, snmpinform - sends an SNMP notification to a manager
SYNOPSIS
snmptrap -v 1 [COMMON OPTIONS] AGENT enterprise-oid agent generic-trap specific-trap uptime [OID TYPE VALUE]... snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] AGENT uptime trap-oid [OID TYPE VALUE]... snmpinform -v [2c|3] [COMMON OPTIONS] AGENT uptime trap-oid [OID TYPE VALUE]...
DESCRIPTION
snmptrap is an SNMP application that uses the SNMP TRAP operation to send information to a network manager. 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 variables(5). When invoked as snmpinform, or when -Ci is added to the command line flags of snmptrap, it sends an INFORM-PDU, expecting a response from the trap receiver, retransmitting if required. Otherwise it sends an TRAP-PDU or TRAP2-PDU. If any of the required version 1 parameters, enterprise-oid, agent, and uptime are specified as empty, it defaults to 1.3.6.1.4.1.3.1.1 (enterprises.cmu.1.1), hostname, and host-uptime respectively. The TYPE is a single character, one of: i INTEGER u UNSIGNED c COUNTER32 s STRING x HEX STRING d DECIMAL STRING n NULLOBJ o OBJID t TIMETICKS a IPADDRESS b BITS which are handled in the same way as the snmpset command. For example: snmptrap -v 1 -c public manager enterprises.spider test-hub 3 0 '' interfaces.iftable.ifentry.ifindex.1 i 1 will send a generic linkUp trap to manager, for interface 1.
OPTIONS
snmptrap takes the common options described in the snmpcmd(1) manual page in addition to the -Ci option described above. Note that snmptrap REQUIRES an argument specifying the agent to query as described there.
SEE ALSO
snmpcmd(1), snmpset(1), variables(5).
More Linux Commands
manpages/error_message_count.3.html
error_message_count(3) - glibc error reporting functions....
error() is a general error-reporting function. It flushes stdout, and then outputs to stderr the program name, a colon and a space, the message specified by the
manpages/groupdel.8.html
groupdel(8) - delete a group entry - Linux manual page......
The groupdel command modifies the system account files, deleting all entries that refer to GROUP. The named group must exist. OPTIONS The options which apply to
manpages/ber_put_set.3.html
ber_put_set(3) - OpenLDAP LBER simplified Basic Encoding Rul
These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these routines support is
manpages/XML::Parser::Style::Subs.3pm.html
XML::Parser::Style::Subs(3pm) - (unknown subject) (ManPage)
Each time an element starts, a sub by that name in the package specified by the Pkg option is called with the same parameters that the Start handler gets called
manpages/XtIsSensitive.3.html
XtIsSensitive(3) - set and check a widget's sensitivity stat
The XtSetSensitive function first calls XtSetValues on the current widget with an argument list specifying that the sensitive field should change to the new val
manpages/Tk_DisplayName.3.html
Tk_DisplayName(3) - retrieve information from Tk's local dat
Tk_WindowId and the other names listed above are all macros that return fields from Tks local data structure for tkwin. None of these macros requires any intera
manpages/XkbFreeNames.3.html
XkbFreeNames(3) - Free symbolic names structures (Man Page)
Do not free symbolic names structures directly using free or XFree. Use XkbFreeNames instead. The which parameter is the bitwise inclusive OR of the valid names
manpages/mod-active.8.html
mod-active(8) - Batch processing of newsgroups creation and
mod-active is a Perl script that updates the active file based on its input lines of ctlinnd newgroup, rmgroup and changegroup commands. It pauses the server br
manpages/pamstretch-gen.1.html
pamstretch-gen(1) - use pamstretch and pamscale to scale by
This program is part of Netpbm(1) pamstretch-gen is a program which uses pamstretch(1) , pnmfile(1) , and pamscale(1) to smoothly scale up a PNM file by any rat
manpages/signalfd4.2.html
signalfd4(2) - create a file descriptor for accepting signal
signalfd() creates a file descriptor that can be used to accept signals targeted at the caller. This provides an alternative to the use of a signal handler or s
manpages/XShapeInputSelected.3.html
XShapeInputSelected(3) - X nonrectangular shape functions...
The X11 Nonrectangular Window Shape Extension adds nonrectangular windows to the X Window System. PREDEFINED VALUES Operations: ShapeSet ShapeUnion ShapeInterse
manpages/glShadeModel.3gl.html
glShadeModel(3gl) - select flat or smooth shading (ManPage)
GL primitives can have either flat or smooth shading. Smooth shading, the default, causes the computed colors of vertices to be interpolated as the primitive is
