Retrieve OSPF State Information (QtooRtvOSPFDta) API


  Required Parameter Group:


  Service Program: QTOOOSPF1

  Threadsafe: Yes

The Retrieve Open Shortest Path First State Information (QtooRtvOSPFDta) API retrieves the Open Shortest Path First (OSPF) statistics from the OMPROUTED TCP server. The functions provided by this API is to retrieve statistics generated by the OSPF protocol, OSPF interfaces statistics, and OSPF Neighbor statistics using diferent formats. When the OMPROUTED server is not active this API will retrieve only the configuration information from the OSPF configuration file. This API has some similar functionalities of the Display OSPF (DSPOSPF) command.


Authorities and Locks

Service Program Authority
*USE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The reciever variable that recieves the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the lengh parameter correctly. As as result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. The length of the receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of the reciever variable parameter specified is larger than the allocated size of the reciever variable specified in the user program, the results are not predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the information returned. You must use the following format name:

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is ommited, diagnostic and escape messages are issued to the application.


SPFI0100 Format

Format SPFI0100 returns OSPF State information.

Field Descriptions

Attached areas. The number of areas in which this system has OSPF interfaces.

Bytes available. The number of bytes of data available to be returned to the user.

Bytes returned. The number of bytes that were returned to the user. This is the lesser of the number of bytes available to be returned or the length of the reciever variable.

Length of IPv4 OSPF area list entries. The length in bytes of each element in the list of IPv4 OSPF list entries. If there are no IPv4 OSPF areas, this value is zero.

Length of IPv4 OSPF interfaces list entries. The length in bytes of each element in the list of IPv4 OSPF interface list entries. If there are no IPv4 OSPF interfaces, this value is zero.

Length of IPv4 OSPF link state advertisement list entries. The length in bytes of each element in the list of IPv4 OSPF link state advertisement list entries. If there are no IPv4 OSPF link state advertisements, this value is zero.

Length of IPv4 OSPF neighbor list entries. The length in bytes of each element in the list of IPv4 OSPF neighbor list entries. If there are no IPv4 OSPF neighbors, this value is zero.

Length of IPv4 OSPF virtual link list entries. The length in bytes of each element in the list of IPv4 OSPF virtual link list entries. If there are no IPv4 OSPF virtual links, this value is zero.

Length of IPv6 OSPF area list entries. The length in bytes of each element in the list of IPv6 OSPF list entries. If there are no IPv6 OSPF areas, this value is zero.

Length of IPv6 OSPF interfaces list entries. The length in bytes of each element in the list of IPv6 OSPF interface list entries. If there are no IPv6 OSPF interfaces, this value is zero.

Length of IPv6 OSPF link state advertisement list entries. The length in bytes of each element in the list of IPv6 OSPF link state advertisement list entries. If there are no IPv6 OSPF link state advertisements, this value is zero.

Length of IPv6 OSPF neighbor list entries. The length in bytes of each element in the list of IPv6 OSPF neighbor list entries. If there are no IPv6 OSPF neighbors, this value is zero.

Length of IPv6 OSPF virtual link list entries. The length in bytes of each element in the list of IPv6 OSPF virtual link list entries. If there are no IPv6 OSPF virtual links, this value is zero.

Link state advertisements allocated. The number of link state advertisements that have been placed in the LSA database.

Number of dijkstra runs. The number of times that the SPF algorithm has run in OMPROUTED.

Number of IPv4 OSPF area list entries. The number of IPv4 OSPF area list entries. If there are no IPv4 OSPF area entries, this value is zero.

Number of IPv4 OSPF interfaces list entries. The number of IPv4 OSPF interfaces list entries. If there are no IPv4 OSPF interfaces list entries, this value is zero.

Number of IPv4 OSPF link state advertisement list entries. The number of IPv4 OSPF link state advertisement list entries. If there are no IPv4 OSPF link state advertisement list entries, this value is zero.

Number of IPv4 OSPF neighbor list entries. The number of IPv4 OSPF neighbor list entries. If there are no IPv4 OSPF neighbor list entries, this value is zero.

Number of IPv4 OSPF virtual link list entries. The number of IPv4 OSPF virtual link list entries. If there are no IPv4 OSPF virtual link list entries, this value is zero.

Number of IPv6 OSPF area list entries. The number of IPv6 OSPF area list entries. If there are no IPv6 OSPF area entries, this value is zero.

Number of IPv6 OSPF interfaces list entries. The number of IPv6 OSPF interfaces list entries. If there are no IPv6 OSPF interfaces list entries, this value is zero.

Number of IPv6 OSPF link state advertisement list entries. The number of IPv6 OSPF link state advertisement list entries. If there are no IPv6 OSPF link state advertisement list entries, this value is zero.

Number of IPv6 OSPF neighbor list entries. The number of IPv6 OSPF neighbor list entries. If there are no IPv6 OSPF neighbor list entries, this value is zero.

Number of IPv6 OSPF virtual link list entries. The number of IPv6 OSPF virtual link list entries. If there are no IPv6 OSPF virtual link list entries, this value is zero.

Offset to IPv4 OSPF area list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv4 OSPF area information. If there is no IPv4 OSPF area, this value is zero.

Offset to IPv4 OSPF interface list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv4 OSPF interface information. If there is no IPv4 OSPF interface, this value is zero.

Offset to IPv4 OSPF link state advertisement list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv4 OSPF link state advertisement information.

Offset to IPv4 OSPF neighbor list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv4 OSPF neighbor information. If there is no IPv4 OSPF neighbor, this value is zero.

Offset to IPv4 OSPF virtual link list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv4 OSPF virtual link information. If there is no IPv4 OSPF virtual link, this value is zero.

Offset to IPv6 OSPF area list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv6 OSPF area information. If there is no IPv4 OSPF area, this value is zero.

Offset to IPv6 OSPF interface list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv6 OSPF interface information. If there is no IPv6 OSPF interface, this value is zero.

Offset to IPv6 OSPF link state advertisement list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv6 OSPF link state advertisement information.

Offset to IPv6 OSPF neighbor list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv6 OSPF neighbor information. If there is no IPv6 OSPF neighbor, this value is zero.

Offset to IPv6 OSPF virtual link list entries. The offset in bytes from the beginning of the receiver variable to the list of IPv6 OSPF virtual link information. If there is no IPv6 OSPF virtual link, this value is zero.

OSPF packets received. The number of packets that this system has received. The starting point for this will be when the OMPROUTED server has been started and one of the configured OSPF interfaces starts receiving OSPF packets.

Reserved. An ignored field.

Router identifier. The unique identifier for this system in OSPF routing domain. The router identifier is represented as IPv4 address in dotted-decimal format.


Field Descriptions for Each IPv4 OSPF Area Entry

Area border routers count. The total number of area border routers reachable within this area. This value is typically zero and is calculated in each SPF pass.

IPv4 OSPF area identifier. The unique identifier for an area in OSPF routing domain. The area identifier is represented as an IPv4 address in dotted-decimal format.

Reserved. An ignored field.

SPF runs. The number of times that the intra-area route table has been calculated using this area's link-state database. This is typically done by using the Dijkstra's algorithm.

Total number of link state advertisements in this area. The total number of link-state advertisements in this area's link-state database, excluding AS External LSA's.


Field Descriptions for Each IPv6 OSPF Area Entry

Area border routers count. The total number of Area border routers reachable within this area. This is typically zero and is calculated in each SPF pass.

IPv6 OSPF area identifier. The unique identifier for an area in OSPF routing domain. The area identifier is represented as an IPv4 address in dotted-decimal format.

Reserved. An ignored field.

SPF runs. The number of times that the intra-area route table has been calculated using this area's link-state database. This is typically done by using the Dijkstra's algorithm.

Total number of link state advertisements in this area. The total number of link-state advertisements in this area's link-state database, excluding AS External LSA's.


Field Descriptions for Each IPv4 OSPF Interface Entry

Backup designated router. The IP address of the backup designated router.

Cost. The cost of this particular interface.

Designated router. The IP address of the designated router.

Designated router priority. The Priority of this interface.

Hello interval. The length of time, in seconds, between the Hello packets that the router sends on the interface.

Inactive router timeout. The number of seconds that Hello packets have not been seen before its neighbor declares the router down.

Interface OSPF area identifier. The unique identifier for an area represented as an IPv4 address in dotted-decimal format to which the interface is attached.

Interface state. The OSPF interface state. The valid state values are as follows:

Interface type. The OSPF interface type. The valid OSPF interface types are as follows:

IP address. The IP address of this OSPF interface.

Point-to-point connection profile. This profile indicates that this interface sends and receives OSPF packets over a point-to-point link.

Poll interval. The larger time interval, in seconds, between the Hello packets sent to an inactive nonbroadcast multi-access neighbor.

Reserved. An ignored field.

Retransmission interval. The number of seconds between link-state advertisement retransmissions.

Transmission delay. The estimated number of seconds it takes to transmit a link state update packet over this interface.


Field Descriptions for each IPv6 OSPF Interface Entry

Backup designated router. The IP address of the backup designated router.

Cost. The cost of this particular interface.

Designated router. The IP address of the designated router.

Designated router priority. The priority of this interface.

Hello interval. The length of time, in seconds, between the Hello packets that the router sends on the interface.

Inactive router timeout. The number of seconds that Hello packets have not been seen before its neighbor declares the router down.

Interface OSPF area identifier. The unique identifier for an area represented as an IPv4 address in dotted-decimal format to which the interface is attached.

Interface state. The OSPF interface state. The valid state values are as follows:

Interface type. The OSPF interface type. The valid OSPF interface types are as follows:

IPv6 address. The IPv6 address of this OSPF interface.

Poll interval. The larger time interval, in seconds, between the Hello packets sent to an inactive nonbroadcast multi-access neighbor.

Reserved. An ignored field.

Retransmission interval. The number of seconds between link-state advertisement retransmissions.

Transmission delay. The estimated number of seconds it takes to transmit a link state update packet over this interface.


Field Descriptions for Each IPv4 OSPF Neighbor Entry

Neighbor events. The number of times this neighbor relationship has changed the state.

Neighbor IP address. The IP address this neighbor is using in its IP Source Address.

Neighbor options. A bit mask corresponding to the neighbor's options field. In this OSPF implementation, 3 bits have been assigned to describe the neighbor options, and these bits reside in the first 8 bits of the first byte of this field.

E-bit: This is the bit 1 of the first 8 bits of the first byte. It describes the way Autonomous System-External-Link state advertisements are flooded, as described in sections 3.6, 9.5, 10.8 and 12.1.2 of the RFC 2328.

MC-bit: This is the bit 2 of the first 8 bits of the first byte. It describes whether IP multicast datagrams are forwarded.

DC-bit: This is the bit 1 of the first 8 bits of the first byte. It describes whether the attached neighbor router handles demand circuits.

Neighbor priority. The priority of this neighbor in the designated router election algorithm.

Neighbor router identifier. The unique identifier for the neighbor router represented as an IPv4 address in dotted-decimal format.

Neighbor state. The state of the relationship with this neighbor. The valid neighbor state values are as follows:

OSPF interface IP address. The IP address of the interface on which this neighboring router has been created a relationship.

Reserved. An ignored field.


Field Descriptions for Each IPv6 OSPF Neighbor Entry

Neighbor events. The number of times this neighbor relationship has changed the state.

Neighbor IP address. The IP address this neighbor is using in its IP Source Address.

Neighbor options. A bit mask corresponding to the neighbor's options field. In this OSPF implementation for IPv6, 3 bits have been assigned to describe the neighbor options, and these bits reside in the first 8 bits of the first byte of this field.

V6-bit: This is the bit 0 of the first 8 bits of the first byte. If this bit is clear, the router/link should be excluded from IPv6 routing calculations. See section 3.6 of RFC 2740 for more details.

E-bit: This is the bit 1 of the first 8 bits of the first byte.This bit describes the way Autonomous System-external-link state advertisements are flooded, as described in sections 3.6, 9.5, 10.8 and 12.1.2 of RFC 2328.

MC-bit: This is the bit 2 of the first 8 bits of the first byte.This bit describes whether IP multicast datagrams are forwarded.

N-bit: This is the bit 3 of the first 8 bits of the first byte. This bit describes the handling of Type-7 Link State advertisement, as specified in RFC 2740.

R-bit: This is the bit 4 of the first 8 bits of the first byte. This bit called as the Router bit indicates whether the originator is an active router. If this bit is clear, routes that transit the advertising node cannot be computed.

Neighbor priority. The priority of this neighbor in the designated router election algorithm.

Neighbor router identifier. The unique identifier for the neighbor router represented as an IPv4 address in dotted-decimal format.

Neighbor state. The state of the relationship with this neighbor. The valid neighbor state values are as follows:

OSPF interface IP address. The IP address of the interface on which this neighboring router has been created a relationship.

Reserved. An ignored field.


Field Descriptions for Each IPv4 OSPF Virtual Link Entry

Reserved. An ignored field.

Router identifier. The indentifier represented as an IPv4 address in dotted-decimal of the router in the other end point in which the virtual link will be established.

Transit area identifier. The transit area that the virtual link transverses.

Virtual link hello interval. The length of time, in seconds, between the Hello packets that the router sends on the interface.

Virtual link retransmission interval. The number of seconds between link-state advertisement retransmissions.

Virtual link state. OSPF virtual link state. The valid state values are as follows:

Virtual transit delay. The estimated number of seconds it takes to transmit a link-state update packet over this interface.


Field Descriptions for Each IPv6 OSPF Virtual Link Entry

Reserved. An ignored field.

Router identifier. The indentifier represented as an IPv4 address in dotted-decimal of the router in the other end point in which the virtual link will be established.

Transit area identifier. The transit area that the virtual link transverses.

Virtual link hello interval. The length of time, in seconds, between the Hello packets that the router sends on the interface.

Virtual link retransmission interval. The number of seconds between link-state advertisement retransmissions.

Virtual link state. OSPF virtual link state. The valid state values are as follows:

Virtual transit delay. The estimated number of seconds it takes to transmit a link-state update packet over this interface.


Field Descriptions for Each IPv4 OSPF Link State Advertisement Entry

Link state advertisement age. This field is the age of the link state advertisement in seconds.

Link state advertisement checksum. This field is the checksum of the complete contents of the advertisement excepting age field.

Link state advertisement sequence. The sequence number field is a signed 32-bit integer.

Link state advertisement type. The type of the link state advertisement.

Link state identifier. The link state identifier is an LSA Type specific field containing either a router identifier or an IP address.

Link state router identifier. The identifier of the originating router represented as an IPv4 address in dotted-decimal format.

LSA area identifier. The area identifier represented as an IPv4 address in dotted-decimal format from which the LSA was received.

Reserved. An ignored field.


Field Descriptions for Each IPv6 OSPF Link State Advertisement Entry

Link state advertisement age. This field is the age of the link state advertisement in seconds.

Link state advertisement checksum. This field is the checksum of the complete contents of the advertisement excepting age field.

Link state advertisement sequence. The sequence number field is a signed 32-bit integer.

Link state advertisement type. The type of the link state advertisement.

Link state identifier. The link state identifier is an LSA Type specific field containing either a router identifier or an IP Address.

Link state router identifier. The identifier of the originating router represented as an IPv4 address in dotted-decimal format.

LSA area identifier. The area identifier represented as an IPv4 address in dotted-decimal format from which the LSA was received.

Reserved. An ignored field.



Error Messages




API introduced: V6R1

[ Back to top | Comunications APIs | APIs by category ]