# Configuring OSPF Traps

You can use the traps command to specify OSPF traps. This command enables you to specify all or any number of the following trap settings:

- virtIfStateChange—To indicate any state change on an OSPF virtual interface
- nbrStateChange—To indicate any state change on a nonvirtual OSPF neighbor
- virtNbrStateChange—To indicate any state change on a virtual OSPF neighbor
- ifConfigErro—To indicate any configuration mismatch with a nonvirtual neighbor
- virtIfConfigError—To indicate any configuration mismatch with a virtual neighbor
- ifAuthFailure—To indicate any authentication failure on a nonvirtual interface
- virtIfAuthFailure—To indicate any authentication failure on a virtual interface
- ifRxBadPkt—To indicate the receipt of a packet that the router cannot parse
- virtIfRxBadPkt—To indicate the receipt of a packet on a virtual interface that the router cannot parse
- txRetransmit—To indicate the retransmittal of a packet on a nonvirtual interface
- virtTxRetransmit—To indicate the retransmittal of a packet on a virtual interface
- originateLsa—To indicate the origination of a new LSA by this router
- maxAgeLsa—To indicate that an LSA in this router LSDB has reached its maximum age value
- ifStateChange—To indicate a state change on an OSPF interface

traps

- Use to specify traps for OSPF.
- Example
  host1(config-router-rn)#traps all
- Use the no version to delete the specified trap, group of traps, or all traps.
- See traps