Chapter 4: Using the Command Line Interface
156
Quitting Diagnostic Mode
To quit the diagnostic mode, use this command:
diag>
exit
The # or > prompt appears after pressing Enter, indicating that you have entered the administrator or user mode. See
Different CLI Modes and Prompts
Diagnostic Commands
The diagnostic command syntax varies from command to command.
Querying DNS Servers
This command syntax queries Internet domain name server (DNS) information of a network host.
diag>
nslookup <host>
Variables:
•
<host> is the name or IP address of the host whose DNS information you want to query.
Showing Network Connections
This command syntax displays network connections and/or status of ports.
diag>
netstat <option>
Variables:
•
<option> is one of the options:
ports
or
connections
.
Option
Description
ports
Shows TCP/UDP ports.
connections
Shows network connections.
Testing the Network Connectivity
This ping command sends the ICMP ECHO_REQUEST message to a network host for checking its network connectivity. If
the output shows the host is responding properly, the network connectivity is good. If not, either the host is shut down or it
is not being properly connected to the network.
diag>
ping <host>