ServerIron ADX Switch and Router Guide
12.0.00
June 10, 2009

Table of Contents Previous Next Print


Configuring OSPF > Displaying OSPF Information

Displaying OSPF Information
You can use CLI commands and Web management options to display the following OSPF information:
Displaying General OSPF Configuration Information
To display general OSPF configuration information, enter the following command at any CLI level:
Syntax: show ip ospf config
Displaying CPU Utilization Statistics
You can display CPU utilization statistics for OSPF and other IP protocols.
To display CPU utilization statistics for OSPF for the previous one-second, one-minute, five-minute, and fifteen-minute intervals, enter the following command at any level of the CLI:
If the software has been running less than 15 minutes (the maximum interval for utilization statistics), the command indicates how long the software has been running. Here is an example:
To display utilization statistics for a specific number of seconds, enter a command such as the following:
When you specify how many seconds’ worth of statistics you want to display, the software selects the sample that most closely matches the number of seconds you specified. In this example, statistics are requested for the previous two seconds. The closest sample available is actually for the previous 1 second plus 80 milliseconds.
Syntax: show process cpu [<num>]
The <num> parameter specifies the number of seconds and can be from 1 – 900. If you use this parameter, the command lists the usage statistics only for the specified number of seconds. If you do not use this parameter, the command lists the usage statistics for the previous one-second, one-minute, five-minute, and fifteen-minute intervals.
Displaying OSPF Area Information
To display OSPF area information, enter the following command at any CLI level:
Syntax: show ip ospf area [<area-id>] | [<num>]
The <area-id> parameter shows information for the specified area.
The <num> parameter displays the entry that corresponds to the entry number you enter. The entry number identifies the entry’s position in the area table.
This display shows the following information.
 
The checksum for the LSA packet. The checksum is based on all the fields in the packet except the age field. The Layer 3 Switch uses the checksum to verify that the packet is not corrupted.
Displaying OSPF Neighbor Information
To display OSPF neighbor information, enter the following command at any CLI level:
To display detailed OSPF neighbor information, enter the following command at any CLI level:
Syntax: show ip ospf neighbor [router-id <ip-addr>] | [<num>] | [detail]
The router-id <ip-addr> parameter displays only the neighbor entries for the specified router.
The <num> parameter displays only the entry in the specified index position in the neighbor table. For example, if you enter “1”, only the first entry in the table is displayed.
The detail parameter displays detailed information about the neighbor routers.
These displays show the following information.
 
Down – The initial state of a neighbor conversation. This value indicates that there has been no recent information received from the neighbor.
Attempt – This state is only valid for neighbors attached to non-broadcast networks. It indicates that no recent information has been received from the neighbor.
Init – A Hello packet has recently been seen from the neighbor. However, bidirectional communication has not yet been established with the neighbor. (The router itself did not appear in the neighbor's Hello packet.) All neighbors in this state (or higher) are listed in the Hello packets sent from the associated interface.
2-Way – Communication between the two routers is bidirectional. This is the most advanced state before beginning adjacency establishment. The Designated Router and Backup Designated Router are selected from the set of neighbors in the 2-Way state or greater.
ExStart – The first step in creating an adjacency between the two neighboring routers. The goal of this step is to decide which router is the master, and to decide upon the initial Database Description (DD) sequence number. Neighbor conversations in this state or greater are called adjacencies.
Exchange – The router is describing its entire link state database by sending Database Description packets to the neighbor. Each Database Description packet has a DD sequence number, and is explicitly acknowledged. Only one Database Description packet can be outstanding at any time. In this state, Link State Request packets can also be sent asking for the neighbor's more recent advertisements. All adjacencies in Exchange state or greater are used by the flooding procedure. In fact, these adjacencies are fully capable of transmitting and receiving all types of OSPF routing protocol packets.
Loading – Link State Request packets are sent to the neighbor asking for the more recent advertisements that have been discovered (but not yet received) in the Exchange state.
Full – The neighboring routers are fully adjacent. These adjacencies will now appear in router links and network link advertisements.
If the Pri field is "1", this value is the IP address of the neighbor router’s interface.
If the Pri field is "3", this is the subnet IP address of the neighbor router’s interface.
The sum of the option bits in the Options field of the Hello packet. This information is used by Brocade technical support. See Section A.2 in RFC 2178 for information about the Options field in Hello packets.
Displaying OSPF Interface Information
To display OSPF interface information, enter the following command at any CLI level:
Syntax: show ip ospf interface [<ip-addr>]
The <ip-addr> parameter displays the OSPF interface information for the specified IP address.
The following table defines the highlighted fields shown in the above example output of the show ip ospf interface command.
 
Table 11.3: Output of the show ip ospf interface command
Displaying OSPF Route Information
To display OSPF route information, enter the following command at any CLI level:
Syntax: show ip ospf routes [<ip-addr>]
The <ip-addr> parameter specifies a destination IP address. If you use this parameter, only the route entries for that destination are shown.
This display shows the following information.
 
The cost of this route path. (A route can have multiple paths. Each path represents a different exit port for the Layer 3 Switch.)
Inter – The path to the destination passes into another area.
Intra – The path to the destination is entirely within the local area.
External1 – The path to the destination is a type 1 external route.
External2 – The path to the destination is a type 2 external route.
ABR – Area Border Router
ASBR – Autonomous System Boundary Router
Network – the network
Displaying the Routes that Have Been Redistributed into OSPF
You can display the routes that have been redistributed into OSPF. To display the redistributed routes, enter the following command at any level of the CLI:
ServerIron# show ip ospf redistribute route
4.3.0.0 255.255.0.0 static
3.1.0.0 255.255.0.0 static
10.11.61.0 255.255.255.0 connected
4.1.0.0 255.255.0.0 static
In this example, four routes have been redistributed. Three of the routes were redistributed from static IP routes and one route was redistributed from a directly connected IP route.
Syntax: show ip ospf redistribute route [<ip-addr> <ip-mask>]
The <ip-addr> <ip-mask> parameter specifies a network prefix and network mask. Here is an example:
Displaying OSPF External Link State Information
To display external link state information, enter the following command at any CLI level:
Syntax: show ip ospf database external-link-state [advertise <num>] | [extensive] | [link-state-id <ip-addr>] | [router-id <ip-addr>] | [sequence-number <num(Hex)>] | [status <num>]
The advertise <num> parameter displays the hexadecimal data in the specified LSA packet. The <num> parameter identifies the LSA packet by its position in the router’s External LSA table. To determine an LSA packet’s position in the table, enter the show ip ospf external-link-state command to display the table. See “Displaying the Data in an LSA” for an example.
The extensive option displays the LSAs in decrypted format.
NOTE: You cannot use the extensive option in combination with other display options. The entire database is displayed.
The link-state-id <ip-addr> parameter displays the External LSAs for the LSA source specified by <IP-addr>.
The router-id <ip-addr> parameter shows the External LSAs for the specified OSPF router.
The sequence-number <num(Hex)> parameter displays the External LSA entries for the specified hexadecimal LSA sequence number.
The status <num> option shows status information.
This display shows the following information.
 
The sequence number of the LSA. The OSPF neighbor that sent the LSA stamps it with a sequence number to enable the Layer 3 Switch and other OSPF routers to determine which LSA for a given route is the most recent.
A checksum for the LSA packet. The checksum is based on all the fields in the packet except the age field. The Layer 3 Switch uses the checksum to verify that the packet is not corrupted.
Displaying OSPF Link State Information
To display link state information, enter the following command at any CLI level:
ServerIron> show ip ospf database link-state
Syntax: show ip ospf database link-state [advertise <num>] | [asbr] | [extensive] | [link-state-id <ip-addr>] | [network] | [nssa] | [opaque-area] | [router] | [router-id <ip-addr>] | [sequence-number <num(Hex)>] | [status <num>] | [summary]
The advertise <num> parameter displays the hexadecimal data in the specified LSA packet. The <num> parameter identifies the LSA packet by its position in the router’s External LSA table. To determine an LSA packet’s position in the table, enter the show ip ospf external-link-state command to display the table. See “Displaying the Data in an LSA” for an example.
The asbr option shows ASBR information.
The extensive option displays the LSAs in decrypted format.
NOTE: You cannot use the extensive option in combination with other display options. The entire database is displayed.
The link-state-id <ip-addr> parameter displays the External LSAs for the LSA source specified by <IP-addr>.
The network option shows network information.
The nssa option shows network information.
The opaque-area option shows information for opaque areas.
The router-id <ip-addr> parameter shows the External LSAs for the specified OSPF router.
The sequence-number <num(Hex)> parameter displays the External LSA entries for the specified hexadecimal LSA sequence number.
The status <num> option shows status information.
The summary option shows summary information.
Displaying the Data in an LSA
You can use the CLI to display the data the Layer 3 Switch received in a specific External LSA packet or other type of LSA packet. For example, to display the LSA data in entry 3 in the External LSA table, enter the following command:
Syntax: show ip ospf database external-link-state [advertise <num>] | [link-state-id <ip-addr>] | [router-id <ip-addr>] | [sequence-number <num(Hex)>] | [status <num>]
To determine an external LSA's or other type of LSA’s index number, enter one of the following commands to display the appropriate LSA table:
show ip ospf database link-state advertise <num> – This command displays the data in the packet for the specified LSA.
show ip ospf database external-link-state advertise <num> – This command displays the data in the packet for the specified external LSA.
For example, to determine an external LSA's index number, enter the following command:
Displaying OSPF Virtual Neighbor Information
To display OSPF virtual neighbor information, enter the following command at any CLI level:
ServerIron> show ip ospf virtual-neighbor
Syntax: show ip ospf virtual-neighbor [<num>]
The <num> parameter displays the table beginning at the specified entry number.
Displaying OSPF Virtual Link Information
To display OSPF virtual link information for the router, use one of the following methods.
ServerIron> show ip ospf virtual-link
Syntax: show ip ospf virtual-link [<num>]
The <num> parameter displays the table beginning at the specified entry number.
Displaying OSPF ABR and ASBR Information
To display OSPF ABR and ASBR information, enter the following command at any CLI level:
ServerIron> show ip ospf border-routers
Syntax: show ip ospf border-routers [<ip-addr>]
The <ip-addr> parameter displays the ABR and ASBR entries for the specified IP address.
Displaying OSPF Trap Status
All traps are enabled by default when you enable OSPF. To disable or re-enable an OSPF trap, see “Modify OSPF Traps Generated”.
To display the state of each OSPF trap, enter the following command at any CLI level:
Syntax: show ip ospf trap
 

Configuring OSPF > Displaying OSPF Information

Table of Contents Previous Next Print
Copyright © 2009 Brocade Communications Systems, Inc.