snmp-server host
Configures one or more hosts to receive an SNMP trap. The no version removes the specified host from the list of recipients.
To specify the SNMP version, community, UDP port, trap category and trap severity:
snmp-server host ipAddress [ version ver ] securityString [ udp-port port ]
[ trapCategory ]* [ trapFilters trapFilter ]To specify the ping timeout and trap queue:
snmp-server host ipAddress pingTimeOut timeOutValue
[ trapQueue { drainRate queueDrainRate | full queueFull | size queueSize }
[ drainRate queueDrainRate | full queueFull | size queueSize ]*]snmp-server host ipAddress trapQueue
{ drainRate queueDrainRate | full queueFull | size queueSize }
[ drainRate queueDrainRate | full queueFull | size queueSize ]*
[ pingTimeOut timeOutValue ]no snmp-server host ipAddress { pingTimeOut | trapQueue { drainRate | full | size } }
- ipAddressIP address of the SNMP trap recipient
- verSNMP protocol version for traps sent to host; one of the following values: v1, v2c, or v3
- securityStringSNMP community string
- portUDP port number of SNMP trap recipient
- trapCategorySNMP trap category
- addrPoolLocal address pool traps
- atmPingE-series router proprietary ATM ping traps
- bfdmibBFD MIB traps
- bgpBGP state change traps
- bulkstatsBulkstats file full and nearly full traps
- cliSecurityAlertSecurity alerts traps
- dosProtectionPlatformDoS protection platform traps
- dvmrpDVMRP traps
- dvmrpUniE-series router proprietary DVMRP traps
- environmentPower/temperature/fan traps
- fileXferFile transfer status change traps
- inventoryRouter inventory/status traps
- ipInternet Protocol traps
- ldpLDP traps
- linkSNMP linkUp/linkDown traps
- logSystem log capacity traps
- mobileIpv4Mobile IPv4 traps
- mplsteMplste traps
- mrouterMrouter traps
- packetMirrorSecure packet mirroring traps; visible only if packet mirroring is enabled
- ospfOSPF traps
- pingPing operation traps (in disman remops MIB)
- radiusRADIUS traps
- snmpSNMP coldstart, warmstart, link, authenticationFailure traps
- tracerouteTraceroute operation traps (in disman remops MIB)
- *Indicates that one or more parameters can be repeated multiple times in a list in the command line
- trapFilterMinimum severity level for filtering traps sent to this host
- alertSeverity level 1
- criticalSeverity level 2
- debugSeverity level 7
- emergencySeverity level 0
- errorSeverity level 3
- informationalSeverity level 6
- noticeSeverity level 5
- warningSeverity level 4
- timeOutValuePing timeout in minutes, in the range 190; default value is 1
- trapQueueConfigures the SNMP trap queue for traps sent to this host
- queueDrainRateMaximum number of traps per second to be sent to the host, in the range 02147483647; default value is 0
- queueFullMethod used to drop traps when the trap queue is full
- dropFirstInDrops the oldest trap in the queue
- dropLastInDrops the most recent trap added to the queue
- queueSizeMaximum number of traps to be kept in the trap queue, in the range 32214748364; default value is 32
Global Configuration
Command introduced before JUNOSe Release 7.1.0.
ip keyword added in JUNOSe Release 7.1.0.
packetMirror keyword added in JUNOSe Release 7.2.0.