lstcpip Command
Purpose
Displays the Virtual I/O Server TCP/IP settings and parameters.
Syntax
lstcpip [-num] [-routtable] [-routinfo] [-state]
[-arp]
lstcpip -stored
lstcpip -adapters
lstcpip [-sockets] [-family {inet | inet6 | unix}]
lstcpip -namesrv | [ -interfaces ] [ -fmt delimiter
lstcpip [ -state [ -field FieldName ...]
] | [ -routetable [ -field FieldName ... ]] [ -fmt delimter ]
lstcpip -hostname
Description
The lstcpip command displays the current and stored
TCP/IP setting such as IP address, routing table, sockets, name server settings,
and so forth.
Flags
| -adapters |
Lists Ethernet adapters on the system. |
| -arp |
Displays the current ARP table entries. |
| -famliy |
Specifies the INET, INET6, or UNIX® socket family. |
| -hostname |
Shows the system hostname |
| -namesrv |
Lists DNS name servers in search order and domain name. |
| -num |
Shows numeric output, rather than trying to resolve
host names. |
| -routtable |
Shows the routing tables. |
| -routinfo |
Shows the routing tables, including the user-configured
and current costs of each route. |
| -sockets |
Displays information about currently open sockets |
| -state |
Shows the current state of all configured interfaces |
| -stored |
Displays stored TCP/IP configuration, which will be
applied at boot time. It will list interfaces' IP addresses, any defined static
routes, hostname, DNS info. |
Examples
- To list the Virtual I/O Server TCP/IP configuration, type:
lstcpip -stored
- To list current routing table, type:
lstcpip -routtable
- To list open inet sockets, type:
lstcpip -sockets -family inet