# traps

#### Syntax

[ no ] traps { all | [ virtIfStateChange | nbrStateChange | virtNbrStateChange |
ifConfigError | virtIfConfigError | ifAuthFailure | virtIfAuthFailure | ifRxBadPkt |
virtIfRxBadPkt | txRetransmit | virtTxRetransmit | originateLsa | maxAgeLsa |
ifStateChange ]* }

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Specifies OSPF trap settings. The no version removes all OSPF trap settings or any specified traps.

#### Options

- all—Enables all OSPF traps
- virtIfStateChange—Sets a trap to indicate a state change on an OSPF virtual interface
- nbrStateChange—Sets a trap to indicate a state change on a nonvirtual OSPF neighbor
- virtNbrStateChange—Sets a trap to indicate a state change on a virtual OSPF neighbor
- ifConfigError—Sets a trap to indicate a configuration mismatch with a nonvirtual neighbor
- virtIfConfigError—Sets a trap to indicate a configuration mismatch with a virtual neighbor
- ifAuthFailure—Sets a trap to indicate an authentication failure on a nonvirtual interface
- virtIfAuthFailure—Sets a trap to indicate an authentication failure on a virtual interface
- ifRxBadPkt—Sets a trap to indicate that a packet has been received that cannot be parsed
- virtIfRxBadPkt—Sets a trap to indicate that a packet has been received on a virtual interface that cannot be parsed
- txRetransmit—Sets a trap to indicate that a packet has been retransmitted on a nonvirtual interface
- virtTxRetransmit—Sets a trap to indicate that a packet has been retransmitted on a virtual interface
- originateLsa—Sets a trap to indicate that a new LSA has been originated by this router
- maxAgeLsa—Sets a trap to indicate that an LSA in this router LSDB has reached MaxAge
- ifStateChange—Sets a trap to indicate a state change on an OSPF interface
- *—Indicates that one or more parameters can be repeated multiple times in a list in the command line

#### Mode

Router Configuration