4-49
Parameters
process-id: OSPF process ID, in the range of 1 to 65535. If you do not specify a process ID, this
command applies to all current OSPF processes.
ifstatechange, virifstatechange, nbrstatechange, virnbrstatechange, ifcfgerror, virifcfgerror,
ifauthfail, virifauthfail, ifrxbadpkt, virifrxbadpkt, iftxretransmit, viriftxretransmit, originatelsa,
maxagelsa, lsdboverflow, lsdbapproachoverflow: Types of TRAP packets that the switch produces
in case of OSPF anomalies.
Description
Use the snmp-agent trap enable ospf command to enable the OSPF TRAP function.
Use the undo snmp-agent trap enable ospf command to disable the OSPF TRAP function.
This command does not apply to the OSPF processes that are started after the command is executed.
By default, the switch does not send TRAP packets in case of OSPF anomalies.
For detailed configuration of SNMP TRAP, refer to the SNMP-RMON part in this manual.
Examples
# Enable the TRAP function for OSPF process 100.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap enable ospf 100
spf-schedule-interval
Syntax
spf-schedule-interval interval
undo spf-schedule-interval
View
OSPF view
Parameters
interval: SPF calculation interval of OSPF, in seconds. It ranges from 1 to 10.
Description
Use the spf-schedule-interval command to configure the SPF calculation interval of OSPF.
Use the undo spf-schedule-interval command to restore the default.
By default, the SPF calculation interval of OSPF is 5 seconds.
According to the link state database (LSDB), the router running OSPF can calculate the shortest path
tree taking itself as the root and determine the next hop to the destination network according to the
shortest path tree. Adjusting SPF calculation interval restrains frequent network changes, which may
occupy too many bandwidth resources and router resources.
Examples
# Set the OSPF route calculation interval of Sysname to 6 seconds.