NETSTAT_INTERFACE_INFO view
The NETSTAT_INTERFACE_INFO view returns information about IPv4 and IPv6 interfaces.
The values returned for the columns in the view are closely related to the values returned by List Network Interfaces API.
Authorization: The caller must have *IOSYSCFG special authority or be
authorized to the QIBM_IOSYSCFG_VIEW function usage identifier.
The following table describes the columns in the view. The system name is NS_INTER. The schema is QSYS2.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
CONNECTION_TYPE | CONN_TYPE | CHAR(4) | The type of connection.
|
INTERNET_ADDRESS | INT_ADDR | VARCHAR(45) | The internet address of the interface. For
IPv4:
For IPv6:
|
NETWORK_ADDRESS | NET_ADDR | VARCHAR(45) | The internet address of the IP network
or subnetwork to which the interface is attached. For IPv4:
For IPv6:
|
SUBNET_MASK | SUBNET_MSK | VARCHAR(15) Nullable
|
The subnet mask for the network,
subnet, and host address fields of the internet address that defines
the subnetwork for an interface. Contains null if this is an IPv6 connection. |
PREFIX_LENGTH | PRE_LEN | INTEGER Nullable
|
The prefix length defines how many
bits of the IPv6 internet address are in the prefix. It specifies
how many of the left-most bits of the address make up the prefix.
The prefix length is used to generate network and host addresses. Contains null if this is an IPv4 connection. |
LINE_DESCRIPTION | LINE_DES | VARCHAR(10) | The name of the communications line description that identifies
the physical network associated with an interface. Can contain the following special values:
For IPv4, the following additional value can be returned.
|
INTERFACE_LINE_TYPE | LINE_TYPE | VARCHAR(6) | The type of line used by the interface. Only
supported line types are listed here; obsolete values could be returned for inactive
configurations.
Can also contain one of the following special values:
|
INTERFACE_STATUS | STATUS | VARCHAR(12) | The current status of the logical interface.
For IPv4, the following additional value can be returned.
For IPv6, the following additional value can be returned.
|
INTERFACE_SOURCE | SOURCE | VARCHAR(9) Nullable
|
Specifies how this interface was
added to the protocol stack.
Contains null if this is an IPv4 connection. |
SERVICE_TYPE | SRVC_TYPE | VARCHAR(9) Nullable
|
The type of service that defines
how the internet hosts and routers should make trade-offs between
throughput, delay, reliability, and cost.
Contains null if this is an IPv6 connection. |
VIRTUAL_LAN_ID | LAN_ID | VARCHAR(4) | The virtual LAN to which this interface
belongs according to IEEE standard 802.1Q. Can also contain the following
special value:
|
MAXIMUM_TRANSMISSION_
UNIT |
MTU | VARCHAR(10) | The maximum transmission unit (MTU)
value specified for this interface. Either an integer value or this
special value:
For IPv4, the following additional value can be returned.
|
CONFIGURED_MAXIMUM_
TRANSMISSION_UNIT |
CFG_MTU | VARCHAR(10) | The configured maximum transmission
unit value specified for this interface. Either an integer value or
this special value:
|
AUTOSTART | AUTOSTART | VARCHAR(3) | Specifies whether the interface
is automatically started when the protocol stack is activated.
|
DAD_MAX_TRANSMITS | DAD_MAX | BIGINT Nullable
|
The maximum number of duplicate
address detection (DAD) transmissions the protocol stack will send
out on this interface. Contains null if this is an IPv4 connection. |
HOST_ADDRESS | HOST_ADDR | VARCHAR(45) | Host portion of the internet address. For
IPv4:
For IPv6:
|
DIRECTED_BROADCAST_
ADDRESS |
DIRBRDADR | VARCHAR(15) Nullable
|
The Internet address, in dotted
decimal notation, used to broadcast to all systems attached to the
same network or subnetwork as this interface. Contains null if this is an IPv6 connection or if interface is attached to a network that does not support a broadcast operation. |
ASSOCIATED_LOCAL_
INTERFACE |
ASCLCLINT | VARCHAR(15) Nullable
|
The Internet address, in dotted
decimal notation, of the local interface that has been associated
with this interface. Contains null if this is an IPv6 connection or if no association has been made between this interface and another local interface. |
CHANGE_STATUS | CHGSTS | VARCHAR(6) Nullable
|
The status of the most recent change
to this interface in the dynamic tables used by the TCP/IP protocol
stack.
Contains null if this is an IPv6 connection. |
PACKET_RULES | PKT_RULES | VARCHAR(17) Nullable
|
The kind of packet rules data available
for this line.
Contains null if packet rules data is unknown. |
INTERFACE_TYPE | TYPE | VARCHAR(12) Nullable
|
The interface type:
Contains null if this is an IPv6 connection. |
NETWORK_FULL_NAME | NET_FNAME | VARCHAR(24) Nullable
|
The complete name of the network
that this interface is a part of. Contains null if this is an IPv6 connection or if there is no network name. |
INTERFACE_FULL_NAME | FNAME | VARCHAR(24) Nullable
|
The complete interface name. Contains null if this is an IPv6 connection or if there is no interface name. |
ALIAS_NAME | ALIAS_NAME | VARGRAPHIC(50) CCSID 1200 Nullable
|
Name given to the interface to
use as an alternate to the IP address. Contains null if there is no alias name. |
INTERFACE_TEXT | LABEL | VARGRAPHIC(50) CCSID 1200 Nullable
|
Description of the interface. Contains null if there is no interface description. |
DHCP_CREATED | DHCPCRT | VARCHAR(3) Nullable
|
Specifies whether this interface
was created using Dynamic Host Configuration Protocol (DHCP).
Contains null if this is an IPv6 connection. |
DHCP_DYNAMIC_DNS_
UPDATES |
DHCPDYNDNS | VARCHAR(3) Nullable
|
Specifies whether dynamic updates
to Domain Name System (DNS) tables are enabled or not.
Contains null if this is an IPv6 connection or if interface was not created by DHCP. |
DHCP_LEASE_EXPIRATION | DHCPLEXP | TIMESTAMP(0) Nullable
|
The timestamp when the DHCP lease
will expire. Contains null if this is an IPv6 connection or if interface was not created by DHCP. |
DHCP_LEASE_OBTAINED | DHCPLOBT | TIMESTAMP(0) Nullable
|
The timestamp when the DHCP lease
was obtained or renewed. Contains null if interface was not created by DHCP. |
DHCP_USE_UNIQUE_ID | DHCPUSEUID | VARCHAR(3) Nullable
|
Whether the DHCP unique identifier
(DUID) is used as the client identification for the Dynamic Host Configuration
Protocol (DHCP).
Contains null if interface was not created by DHCP. |
DHCP_SERVER_UNIQUE_ID | DHCPSRVUID | VARCHAR(30) Nullable
|
Specifies the DHCP unique identifier
(DUID) of the DHCP server from which the IP address was obtained. Contains null if this is an IPv4 connection or if interface was not created by DHCP. |
DHCP_SERVER_ADDRESS | DHCPSRVADD | VARCHAR(15) Nullable
|
The Internet address, in dotted
decimal notation, of the DHCP server from which the DHCP lease was
obtained or renewed. Contains null if this is an IPv6 connection or if interface was not created by DHCP. |
PREFERRED_INTERFACE_
DEFAULT_ROUTE |
PREFDFTRTE | VARCHAR(3) Nullable
|
This field describes whether the
preferred proxy interfaces are based on the system's default route.
Contains null if this is an IPv6 connection. |
PREFERRED_INTERFACE_LIST | PREFIFCLST | VARCHAR(159) Nullable
|
A list of up to 10 preferred interface
internet addresses. Each internet address within the preferred interface
list is given in dotted decimal notation. When there is more than
one internet address, a single blank separates the addresses. Contains null if this is an IPv6 connection or if a preferred interface list is not being used. |
PREFERRED_PHYSICAL_LINE_
LIST |
PREFLINLST | VARCHAR(159) Nullable
|
A list of up to 10 preferred physical
line list entries. Each entry in the list is formatted as LINE_DESCRIPTION:VIRTUAL_LAN_ID.
The line description can be up to 10 characters long. The virtual
LAN ID can be up to 4 characters long. When there is more than one
preferred physical line, a single blank separates entries. Contains null if this is an IPv4 connection. |
ADDRESS_TYPE | ADDR_TYPE | VARCHAR(9) Nullable
|
The type of IPv6 address that is
assigned to this network interface.
Contains null if this is an IPv4 connection. |
ADDRESS_CLASS | ADDR_CLASS | VARCHAR(9) Nullable
|
The class of IPv6 address that
is assigned to this network interface.
Contains null if this is an IPv4 connection. |
ADDRESS_PREFERRED_LIFETIME | ADDPLIFE | BIGINT Nullable
|
The length of time that a "valid" address is preferred, in
seconds. A negative value indicates that the address preferred lifetime expired that number of
seconds ago. Contains null if this is an IPv4 connection or if this address has an infinite preferred lifetime. |
ADDRESS_VALID_LIFETIME | ADDVLIFE | BIGINT Nullable
|
The length of time, in seconds, that an address remains in a
"valid" state. A negative value indicates that the address valid lifetime expired that number of
seconds ago. Contains null if this is an IPv4 connection or if this address has an infinite valid lifetime. |
ADDRESS_PREFERRED_
LIFETIME_EXPIRATION |
ADDPFRLE | TIMESTAMP(0) Nullable
|
The timestamp when this address will no longer be in the
preferred state. If the timestamp is in the future, the address is still preferred. If the timestamp
is in the past, then this address is no longer preferred. Contains null if this is an IPv4 connection or if this address has an infinite preferred lifetime which never expires. |
ADDRESS_VALID_LIFETIME_
EXPIRATION |
ADDVLDLE | TIMESTAMP(0) Nullable
|
The timestamp when this address will expire or did expire. If the
timestamp is in the future, the address has not expired yet. If the timestamp is in the past, then
this address has expired and is still being returned for a short period of time to indicate that the
interface ceased to function because its valid lifetime expired. Contains null if this is an IPv4 connection or if this address has an infinite valid lifetime which never expires. |
ON_LINK | ON_LINK | VARCHAR(3) Nullable
|
Whether or not this interface and
all IPv6 addresses with the same prefix are on the same link.
Contains null if this is an IPv4 connection or if INTERNET_ADDRESS is *IP6SAC |
PROXY_ARP_ENABLED | PRXARPENB | VARCHAR(3) Nullable
|
Indicates whether Proxy ARP is currently active for this interface.
Contains null if this is an IPv6 connection. |
PROXY_ARP_ALLOWED | PRXARPALW | VARCHAR(3) Nullable
|
Indicates whether Proxy ARP has been configured to be allowed or
not allowed.
Contains null if this is an IPv6 connection or if interface is not Virtual Ethernet. |
CURRENT_PROXY_AGENT_LINE | PRXAGT | VARCHAR(10) Nullable
|
Name of the communication line
description that is used with the IPv6 interface for virtual IP address
(VIPA) proxy Neighbor Discovery. Contains null if this is an IPv4 connection or if no association has been made between this interface and another physical interface. |
CURRENT_PROXY_AGENT_
LINE_VIRTUAL_LAN_ID |
PRXAGTLAN | VARCHAR(4) Nullable
|
The virtual LAN to which the proxy
agent line belongs according to IEEE standard 802.1Q. Can also contain
the following special value:
Contains null if this is an IPv4 connection or if no association has been made between this interface and another physical interface. |
LAST_CHANGE_TIMESTAMP | LASTCHG | TIMESTAMP(0) Nullable
|
The timestamp of the most recent
change to this interface in the dynamic tables used by the protocol
stack. Contains null if the interface has never been changed. |
Example
Return information about all interfaces which are using Virtual Ethernet protocol..
SELECT * FROM QSYS2.NETSTAT_INTERFACE_INFO
WHERE INTERFACE_LINE_TYPE = 'VETH'