June 2018
390 Legrand PDU User Guide
Entering Diagnostic Mode
Diagnostic commands function in the diagnostic mode only.
To enter the diagnostic mode:
1. Enter either of the following modes:
Administrator mode: The # prompt is displayed.
User mode: The > prompt is displayed.
2. Type diag and press Enter. The diag# or diag> prompt appears, indicating that you have entered the
diagnostic mode.
3. Now you can type any diagnostic commands for troubleshooting.
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 (on page 271).
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.