List Physical Interface Data (QtocLstPhyIfcDta) API

  Required Parameter Group:


  Service Program: QTOCNETSTS

  Threadsafe: Yes

The List Physical Interface Data (QtocLstPhyIfcDta) API returns a list of physical interfaces and detailed TCP/IP related data for each one. Depending on which output format is requested, IPv4 and also IPv6 information can be requested for each physical interface.

As of V6R1, TCP/IP stack must not necessarily be active for this API to be called, so TCP84C0 will no longer be issued. This API can be used to retrieve the information stored in the TCP/IP configuration files.


Authorities and Locks

User Space Library Authority
*EXECUTE
User Space Authority
*CHANGE
User Space Lock
*SHRNUP

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that receives the information, and the library in which it is located. The first 10 characters contain the user space name, and the second 10 characters contain the library name. You can use these special values for the library name:


Format name
INPUT; CHAR(8)

The format of the space information to be returned. The format names supported are:


Error Code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Physical Interface Lists

To request a list of TCP/IP data for all physical interfaces, use format IFCD0100. For detailed information about Filter and IPSec physical interface data in addition to the IFCD0100 format data, use format IFCD0200.

The physical interface description list consists of:

For details about the user area and generic header, see User spaces. For details about the remaining items, see the following sections.

When you retrieve list entry information from a user space, you must use the entry size returned in the generic header. The size of each entry may be padded at the end. If you do not use the entry size, the result may not be valid. For examples of how to process lists, see Examples: APIs and exit programs.

Input Parameter Section



Header Section



Format of Returned Connection Data

To retrieve basic Physical interface data, and IPv4 specific statistics about each physical interface, use format IFCD0100. To retrieve IPv4 Filter and IPSec statistics about each physical interface, in addition to format IFCD0100 information, use format IFCD0200. To retrieve IPv6 specific information and statistics about each physical interface, in addition to format IFCD0100 information, use format IFCD0300. To retrieve IPv6 Filter and IPSec statistics about each physical interface, in addition to format IFCD0100 information, use format IFCD0400.


IFCD0100 Format

The following data about a physical interface is returned for the IFCD0100 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Date - retrieved. Date when information is retrieved and valid. Format: YYYYMMDD, where:

Internet protocol version. The version of the Internet Protocol (IP) that is currently in use on this line.

Possible values are:

Start of changeIPv4 TCP established and then reset. The number of times IPv4 TCP connections have made a direct transition to the CLOSED state from either the ESTABLISHED state or the CLOSE-WAIT state.

IPv4 TCP retransmitted segments. The number of IPv4 TCP segments transmitted containing one or more previously transmitted octets.End of change

Length of additional information. The length in bytes of additional information returned that is not part of format IFCD0100.

Line description. Each TCP/IP interface is associated with a physical network. This field displays the name of the communications line description that identifies the physical network associated with an interface. In the case of a frame relay line, it displays the frame relay NWI name.

The following special values may also be displayed:

Line type. Type of line used by an interface. The following link protocols are supported:

Offset to additional information. The offset in bytes to the rest of the information if a format other than IFCD0100 is requested.

Packet rules.Indicates what kind of packet rules data is available for a particular line.

Physical address. The MAC address of the interface. Format: XX:XX:XX:XX:XX:XX, where 'X' is a hexadecimal digit.

Physical interface status. The current operational state of the physical interface (line).

Reserved. An ignored field.

Time - retrieved. Time when information is retrieved and valid. Format: HHMMSS, in 24 hour time, where:

Total bytes received. The total number of bytes received on the interface, including framing characters.

Total bytes sent. The total number of bytes transmitted out of the interface, including framing characters.

Total inbound packets discarded. The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space.

Total non-unicast packets received. The number of non-unicast (that is, broadcast or multicast) packets delivered to a higher-layer protocol.

Total non-unicast packets sent. The total number of packets that higher-level protocols requested be transmitted to a non-unicast (that is, broadcast or multicast) address, including those that were discarded or not sent.

Total outbound packets discarded. The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space.

Total unicast packets received. The number of unicast packets delivered to a higher-layer protocol.

Total unicast packets sent. The total number of packets that higher-level protocols requested to be transmitted to a unicast address, including those that were discarded or not sent.

Virtual LAN identifier. The virtual LAN associated with the physical network according to IEEE standard 802.1Q. This field is only valid for Ethernet lines.

The following are possible returned values:


IFCD0200 Format

This format returns detailed IPv4 Filter and IPSec Physical interface data in addition to data about a physical interface from the IFCD0100 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Date - filter rules loaded or unloaded. Date when the filter rules were most recently successfully loaded on or unloaded from this interface. Format: YYYYMMDD, where:


The following is a special value:

Filter rules. Indicates whether filter rules exist on the system. The possible values are:

Inbound IPSec packets. Total inbound IPSec packets (AH or ESP) processed without error.

Inbound IPSec packets permitted. Total inbound packets permitted by pre-IPSec filters.

Inbound IPSec packets discarded - authentication error. Authentication error or failed.

Inbound IPSec packets discarded - no connection. Total inbound packets discarded because a VPN connection was not started.

Inbound IPSec packets discarded - no AH/ESP. Total inbound packets discarded because packet should have had a AH or ESP header, and did not.

Inbound IPSec packets discarded - ondemand. Total inbound packets discarded due to a starting on-demand VPN connection.

Inbound IPSec packets discarded - anti-replay fail. Total inbound packets discarded due to failed anti-replay audit.

Inbound IPSec packets discarded - mode mismatch. Total inbound packets discarded because the mode (tunnel or transport) of the packet did not match the mode of the VPN connection.

Inbound IPSec packets discarded - other. Total inbound packets discarded for other reasons, relating to IPSec.

Inbound IPSec packets discarded - selector mismatch. Total inbound packets discarded because the packet did not match the VPN connection (selectors).

Inbound IPSec packets discarded - VPN NAT. Total inbound packets that could not be NAT'd because an IP address was not available from a VPN NAT pool.

Inbound NAT packets. Total inbound packets processed by conventional NAT.

Inbound filter packets discarded. Total inbound packets discarded by filter action = DENY.

Inbound filter packets permitted. Total inbound packets permitted by filter action = PERMIT.

Inbound packets non-filtered. Total inbound packets not filtered (occurs only when no filters exist).

Inbound packets discarded - other. Total inbound packets discarded for some other reason.

Inbound packets discarded - rule exception. Total inbound packets discarded for exception reason.

IPSec rules. Indicates whether IPSec filter rules exist on the system. The possible values are:

NAT rules. Indicates whether NAT rules exist on the system. The possible values are:

Outbound filter packets discarded. Total outbound packets discarded by filter action = DENY.

Outbound filter packets permitted. Total outbound packets permitted by filter action = PERMIT.

Outbound packets non-filtered. Total outbound packets not filtered (occurs only when no filters exist).

Outbound IPSec packets. Total outbound IPSec packets (AH or ESP) processed without error.

Outbound IPSec packets discarded - no connection. Total outbound packets that could not be handled by IPSec because a VPN connection was not started.

Outbound IPSec packets discarded - ondemand. Total outbound packets discarded due to a starting on-demand VPN connection.

Outbound IPSec packets discarded - other. Total outbound packets that could not be handled for other reasons.

Outbound IPSec packets discarded - VPN NAT. Total outbound packets that could not be NAT'd because an IP address was not available from a VPN NAT pool.

Outbound NAT packets. Total outbound packets processed by conventional NAT.

Outbound NAT packets discarded. Total outbound packets that could not be handled by masquerade NAT due to lack of available conversation.

Outbound packets discarded - other. Total outbound packets discarded for some other reason.

Outbound packets discarded - rule exception. Total outbound packets discarded for exception reason.

Reserved. An ignored field.

Time - filter rules loaded or unloaded. Time when the filter rules were most recently successfully loaded on or unloaded from this interface. Format: HHMMSS, in 24 hour time, where:

The following is a special value:


IFCD0300 Format

This format returns detailed IPv6 specific information and statistics for each Physical interface, in addition to data about a physical interface from the IFCD0100 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Accept redirects. Whether the system is currently accepting and using ICMPv6 Redirects that it receives on this physical interface.

Possible values are:

Accept router advertisements. Whether the system is currently accepting and using Router Advertisements that it receives on this physical interface.

Possible values are:

Autoconfig line status. Whether this physical interface is currently using, not using, or is configured for stateless autoconfig.

Possible values are:

Autostart. Specifies whether the physical interface is automatically started when the TCP/IP stack is activated by the Start TCP/IP (STRTCP) command.

Possible values are:

DHCP DNS updates. Specifies whether dynamic updates to Domain Name System (DNS) tables are enabled for the Dynamic Host Configuration Protocol or not.

Possible values are:

Disable global Stateless Address Auto-Configuration.Whether the Stateless Address Auto-Configuration (SAAC) is able to accept global addresses or not.

Possible values are:

Duplicate address detection max transmits. The maximum number of consecutive Neighbor Solicitation messages which will be sent using this physical interface when TCP/IPv6 performs Duplicate Address Detection (DAD) on a tentative address.

The following special value may be returned:

Hop limit - configured. The configured IPv6 Hop Limit value specified for this physical interface. The Hop limit field is the IPv6 replacement for the IPv4 Time to live (TTL) field. The Hop limit value specifies a relative limit on the number of hops across which an IPv6 datagram remains active. The Hop limit value is hop count that is decremented by each gateway to prevent Internet routing loops. The default Hop limit value is 64. Valid values range from 1 through 255 hops.

Hop limit - current. The IPv6 Hop Limit value currently in effect for this physical interface. The Hop Limit field is the IPv6 replacement for the IPv4 Time to live (TTL) field. The Hop Limit value specifies a relative limit on the number of hops across which an IPv6 datagram remains active. The Hop Limit value is hop count that is decremented by each gateway to prevent Internet routing loops. The default Hop Limit value is 64. If the current Hop Limit value differs from the configured Hop Limit value, then it has been set by a Hop Limit value received in a Router Advertisement packet. Valid values range from 1 through 255 hops.

IPv6 interface identifier. A 64-bit number which is combined with prefixes to create complete IPv6 addresses for the physical interface. By default it is based on the link layer (MAC) address, if one exists. The interface identifier is represented here in standard IPv6 address format notation. It does not include a leading "::" for the first 64 bits of a full IPv6 address. This field is NULL padded.

IPv6 interface identifier binary. Binary representation of the IPv6 interface identifier.

IPv6 interface identifier source. The source of the IPv6 identifier.

Possible values are:

Start of changeIPv6 TCP established and then reset. The number of times IPv6 TCP connections have made a direct transition to the CLOSED state from either the ESTABLISHED state or the CLOSE-WAIT state.

IPv6 TCP retransmitted segments. The number of IPv6 TCP segments transmitted containing one or more previously transmitted octets.End of change

Local tunnel endpoint IPv4 address. The IPv4 address of the local tunnel endpoint of this tunnel, returned in dotted decimal format. This field is NULL padded.

The following special value may be returned:

Local tunnel endpoint IPv4 address binary. Binary representation of the Local tunnel endpoint IPv4 address.

The following special value may be returned:

MTU - configured. The configured maximum transmission unit (MTU) value specified for this physical interface.

The following is a special value:

MTU - current. Maximum transmission unit (MTU) value currently in effect for this physical interface.

The following is a special value:

Neighbor discovery base reachable time - configured. The configured Neighbor Discovery (ND) Base Reachable Time value, in seconds, specified for this physical interface. The ND Base Reachable Time value is a base time value used for computing the random ND Reachable Time value. The default ND Base Reachable Time is 30 seconds. Valid values range from 10 through 100 seconds.

Note: As of V5R4, this field is always set to 30.

Neighbor discovery base reachable time - current. The Neighbor Discovery (ND) Base Reachable Time value, in seconds, currently in effect for this physical interface. The ND Base Reachable Time value is a base time value used for computing the random ND Reachable Time value. The default ND Base Reachable Time is 30 seconds. If the current ND Base Reachable Time value differs from the configured value, then it has been set by a ND Base Reachable Time value received in a Router Advertisement packet. Valid values range from 10 through 100 seconds.

Note: As of V5R4, this field is always set to 30.

Neighbor discovery reachable time. The current Neighbor Discovery (ND) Reachable Time value, in seconds, for this physical interface. The ND Reachable Time value is the amount of time, in seconds, that a neighbor is considered reachable after receiving a reachability confirmation. The ND Reachable Time value is randomly calculated, using the ND Base Reachable Time and a couple constants. This calculation is performed to prevent Neighbor Unreachability Detection (NUD) messages from synchronizing with each other.

Note: As of V5R4, this field is always set to 0.

Neighbor solicitation retransmit interval - configured. The configured Neighbor Solicitation (NS) Retransmit Interval value, in seconds, specified for this physical interface. The NS Retransmit Interval is the time, in seconds, between retransmissions of Neighbor Solicitation messages to a neighbor when resolving the link-layer address, or when probing the reachability of a neighbor. The default NS retransmit interval is 1 second. Valid values range from 1 through 10 seconds.

Note: As of V5R4, this field is always set to 1.

Neighbor solicitation retransmit interval - current. The Neighbor Solicitation (NS) Retransmit Interval value currently in effect for this physical interface. The NS Retransmit Interval is the time, in seconds, between retransmissions of Neighbor Solicitation messages to a neighbor when resolving the link-layer address, or when probing the reachability of a neighbor. The default NS Retransmit Interval is 1 second. If the current NS Retransmit Interval value differs from the configured value, then it has been set by a NS Retransmit Interval value received in a Router Advertisement packet. Valid values range from 1 through 10 seconds.

Note: As of V5R4, this field is always set to 1.

Packet rules - IPv6. Indicates what kind of IPv6 packet rules are loaded on a particular line.

Possible values are:

Reserved. An ignored field.

Text description. User added text description associated with the physical interface.

Text description CCSID. Coded character set ID for the text description.

Total inbound IPv6 packet errors. The number of inbound IPv6 packets which were chosen to be discarded due to errors found when they were being received.

Total inbound IPv6 unknown protocol. The number of inbound IPv6 packets which were chosen to be discarded because they were intended to an unknown higher-layer protocol.

Total inbound IPv6 packets discarded. The number of inbound IPv6 packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space.

Total IPv6 anycast packets received. The number of IPv6 anycast packets delivered to a higher-layer protocol.

Total IPv6 anycast packets sent. The number of IPv6 anycast packets that higher-level protocols requested be transmitted, including those that were discarded.

Total IPv6 bytes received. The total number of IPv6 bytes received on the interface, including framing characters.

Total IPv6 bytes sent. The total number of IPv6 bytes transmitted out of the interface, including framing characters.

Total IPv6 multicast packets received. The number of IPv6 multicast packets delivered to a higher-layer protocol.

Total IPv6 multicast packets sent. The number of IPv6 multcast packets that higher-level protocols requested be transmitted, including those that were discarded.

Total IPv6 unicast packets received. The number of IPv6 unicast packets delivered to a higher-layer protocol.

Total IPv6 unicast packets sent. The number of IPv6 unicast packets that higher-level protocols requested be transmitted, including those that were discarded.

Total outbound IPv6 packets errors. The number of outbound IPv6 packets which were chosen to be discarded due to errors found when they were being transmitted.

Total outbound IPv6 packets discarded. The number of outbound IPv6 packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space.

Use privacy extensions. Whether the TCP/IPv6 stack is using privacy extensions on this physical interface or not.

Possible values are:

Use other stateful configuration. Whether the TCP/IPv6 stack has been informed by a Router Advertisement to use non-address stateful (that is, DHCPv6) configuration information that it receives on this physical interface.

Possible values are:

Note: As of V5R4, this field is always set to 0.

Use stateful address configuration. Whether the TCP/IPv6 stack has been informed by a Router Advertisement to use stateful (that is, DHCPv6) configuration information that it receives on this physical interface for the purpose of address autoconfiguration.

Possible values are:

Note: As of V5R4, this field is always set to 0.

Use stateless autoconfig. Whether the TCP/IPv6 stack performs stateless autoconfiguration on this physical interface or not.

Possible values are:



IFCD0400 Format

This format returns detailed IPv6 Filter and IPSec Physical interface data in addition to data about a physical interface from the IFCD0100 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Date - filter rules loaded or unloaded.

Date when the filter rules were most recently successfully loaded on or unloaded from this interface. Format: YYYYMMDD, where:


The following is a special value:

Filter rules. Indicates whether filter rules exist on the system. The possible values are:

Inbound IPSec packets. Total inbound IPSec packets (AH or ESP) processed without error.

Inbound IPSec packets permitted. Total inbound packets permitted by pre-IPSec filters.

Inbound IPSec packets discarded - authentication error. Authentication error or failed.

Inbound IPSec packets discarded - no AH/ESP. Total inbound packets discarded because packet should have had a AH or ESP header, and did not.

Inbound IPSec packets discarded - no connection. Total inbound packets discarded because a VPN connection was not started.

Inbound IPSec packets discarded - ondemand. Total inbound packets discarded due to a starting on-demand VPN connection.

Inbound IPSec packets discarded - anti-replay fail. Total inbound packets discarded due to failed anti-replay audit.

Inbound IPSec packets discarded - mode mismatch. Total inbound packets discarded because the mode (tunnel or transport) of the packet did not match the mode of the VPN connection.

Inbound IPSec packets discarded - other. Total inbound packets discarded for other reasons, relating to IPSec.

Inbound IPSec packets discarded - selector mismatch. Total inbound packets discarded because the packet did not match the VPN connection (selectors).

Inbound IPSec packets discarded - VPN NAT. Total inbound packets that could not be NAT'd because an IP address was not available from a VPN NAT pool.

Inbound NAT packets. Total inbound packets processed by conventional NAT.

Inbound filter packets discarded. Total inbound packets discarded by filter action = DENY.

Inbound filter packets permitted. Total inbound packets permitted by filter action = PERMIT.

Inbound packets non-filtered. Total inbound packets not filtered (occurs only when no filters exist).

Inbound packets discarded - other. Total inbound packets discarded for some other reason.

Inbound packets discarded - rule exception. Total inbound packets discarded for exception reason.

IPSec rules. Indicates whether IPSec filter rules exist on the system. The possible values are:

NAT rules. Indicates whether NAT rules exist on the system. The possible values are:

Outbound filter packets discarded. Total outbound packets discarded by filter action = DENY.

Outbound filter packets permitted. Total outbound packets permitted by filter action = PERMIT.

Outbound packets non-filtered. Total outbound packets not filtered (occurs only when no filters exist).

Outbound IPSec packets. Total outbound IPSec packets (AH or ESP) processed without error.

Outbound IPSec packets discarded - no connection. Total outbound packets that could not be handled by IPSec because a VPN connection was not started.

Outbound IPSec packets discarded - ondemand. Total outbound packets discarded due to a starting on-demand VPN connection.

Outbound IPSec packets discarded - other. Total outbound packets that could not be handled for other reasons.

Outbound IPSec packets discarded - VPN NAT. Total outbound packets that could not be NAT'd because an IP address was not available from a VPN NAT pool.

Outbound NAT packets. Total outbound packets processed by conventional NAT.

Outbound NAT packets discarded. Total outbound packets that could not be handled by masquerade NAT due to lack of available conversation.

Outbound packets discarded - other. Total outbound packets discarded for some other reason.

Outbound packets discarded - rule exception. Total outbound packets discarded for exception reason.

Reserved. An ignored field.

Time - filter rules loaded or unloaded. Time when the filter rules were most recently successfully loaded on or unloaded from this interface. Format: HHMMSS, in 24 hour time, where:

The following is a special value:



Error Messages



API introduced: V5R1