snmp-agent trap enable ospf [ process-id ] [ ifstatechange | virifstatechange | nbrstatechange | virnbrstatechange | ifcfgerror | vifcfgerror | ifauthfail | vifauthfail | ifrxbadpkt | virifrxbadpkt | txretransmit | viriftxretransmit | originatelsa | maxagelsa | lsdboverflow | lsdbapproachoverflow | restartstatuschange | nbrrestarthelperchange | vnbrrestarthelperchange | nssatranslatorstatuschange ] *
| Parameter | Description | Value |
|---|---|---|
| process-id | Specifies the OSPF process ID. | The value is an integer ranging from 1 to 65535. |
| ifstatechange | Enables the traps of changes of the interface state. | - |
| virifstatechange | Enables the traps of changes of the virtual interface state. | - |
| nbrstatechange | Enables the traps of changes of the state of the neighbor. | - |
| virnbrstatechange | Enables the traps of changes of the state of the virtual neighbor. | - |
| ifcfgerror | Enables the traps of errors of the interface configuration. | - |
| vifcfgerror | Enables the traps of errors of the virtual interface configuration. | - |
| ifauthfail | Enables the traps of the failure of the interface authentication. | - |
| vifauthfail | Enables the traps of the failure of the virtual interface authentication. | - |
| ifrxbadpkt | Enables the traps of received bad packets. | - |
| virifrxbadpkt | Enables the traps of received bad packets on virtual interfaces. | - |
| txretransmit | Enables the traps of the retransmitting OSPF packets on the interface. | - |
| viriftxretransmit | Enables the traps of the retransmitting OSPF packets on the virtual interface. | - |
| originatelsa | Enables the traps of LSAs that are locally generated. | - |
| maxagelsa | Enables the traps of Max Age of LSA. | - |
| lsdboverflow | Enables the traps of LSDB overflow. | - |
| lsdbapproachoverflow | Enables the traps of LSDB is approaching Overflow. | - |
| restartstatuschange | Enables the traps of changes of the state of the restarter during GR. | - |
| nbrrestarthelperchange | Enables the traps of changes of the neighbor state during GR. | - |
| vnbrrestarthelperchange | Enables the traps of changes of the virtual neighbor state during GR. | - |
| nssatranslatorstatuschange | Enables the traps of the status change of the NSSA router converting Type7 LSAs to Type5 LSAs. | - |
This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.
After the upgrade, this command is no longer supported, and it is replaced by the snmp-agent trap enable feature-name ospf command.