Command Line Interface

The Command Line Interface (CLI) is a text-only mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks. It is a critical part of the deployment of the SRA Virtual Appliance, where basic networking needs to be configured from the console. The CLI is also supported on the SRA 4600, 4200, 1600, and 1200 appliances.

While the SRA physical appliance products have a default IP address and network configuration that requires a client’s network settings to be reconfigured to connect, the network settings in an existing VMware virtual environment might conflict with the SRA appliance defaults. The CLI utility remedies this by allowing basic configuration of the network settings when deploying the SRA Virtual Appliance.

Note The Dell SonicWALL SRA 6.0 CLI allows configuration of only the X0 interface on the SRA 4600/4200/1600/1200 or SRA Virtual Appliance.

For the SRA physical appliances, console access is achieved by connecting a computer to the serial port. Use the following settings:

• Baud: 115200

• Data Bits: 8

• Parity: None

• Stop Bits: 1

For the SRA Virtual Appliance, the following login prompt is displayed after the firmware has fully booted:

,,,,,,,,,,,,,,,

,,,mmbbbbbb11111111111111111111111bbbbbmm,,,

,,,b||PPPPPPP||''''''''''''''''|PPPPPPPPP111111111111bbm,,

'''''' '''''PPPP111111111bm,

'''PP1111111bm,

'PP111111b,

|111111:

.1111P|.

Copyright (c) 2010 SonicWALL, Inc. ,b1PP|'

,,||'''

SonicWALL SRA Virtual Appliance
sslvpn login:

 

In the following examples, user input is highlighted in bold to indicate text entered by the user.

To access the CLI, login as admin. The password is the same as the password for the admin account that is configured on the appliance. The default is password.

sslvpn login: admin
Password: password

If the incorrect password is entered, the login prompt is displayed again. If the correct password is entered, the CLI is launched.

For hardware and virtual appliances, basic system information and network settings are displayed along with the main menu, as in the example below:

System Information
Model: SRA 4200
Serial Number: 0017C54172D4
Version: SonicOS SSL-VPN 5.5.0.0-11sv
CPU (Utilization): l.8 GHz Via C7 Processor (2%)
Total Memory: 2 GB RAM, 1 GB Flash
System Time: 2011/08/18 13:39:51
Up Time: 0 Days 00:40:51
X0 IP Address: 192.168.200.1
X0 Subnet mask: 255.255.255.0
Default Gateway: 192.168.200.2
Primary DNS: 10.50.128.52
Secondary DNS: n/a
Hostname: sslvpn

 

Main Menu
1. Setup Wizard
2. Reboot
3. Restart SSL-VPN Services
4. Logout

 

Press <Ctrl-c> at any time to cancel changes and logout.
Select a number (1-4):

You can press Ctrl-C at any time to log out and exit the CLI, returning to the login prompt.

The main menu has four selections:

1. Setup Wizard – This option launches a simple wizard to change the basic network settings, starting with the X0 IP Address, X0 subnet mask, default gateway, primary and secondary DNS, and the hostname. The following CLI output illustrates an example where each field is changed:

X0 IP Address (default 192.168.200.1): 192.168.200.201
X0 Subnet Mask (default 255.255.255.0): 255.255.0.0
Default Gateway (default 192.168.200.2): 192.168.200.1
Primary DNS: 10.50.128.52
Secondary DNS (optional, enter "none" to disable): 4.2.2.2
Hostname (default sslvpn): SRA4200

 

New Network Settings:
X0 IP Address: 192.168.200.201
X0 Subnet mask: 255.255.0.0
Default Gateway: 192.168.200.1
Primary DNS: 10.50.128.52
Secondary DNS: 4.2.2.2
Hostname: SRA4200

 

Would you like to save these changes (y/n)?

If a field is not filled out, the prior value is retained, allowing you to change only a single field. After each field has been prompted, the new network settings are shown and a confirmation message is given for the user to review and verify the changes before applying them. The following shows the result when you save the changes:

Would you like to save these changes (y/n)? y
Saving changes...please wait....
Changes saved!
Press <Enter> to continue...

After saving the changes, press Enter to return to the original display of the System Information and Network Settings and verify that the changes have taken effect:

System Information
Model: SRA 4200
Serial Number: 0017C54172D4
Version: SonicOS SSL-VPN 5.5.0.0-11sv
CPU (Utilization): l.8 GHz Via C7 Processor (2%)
Total Memory: 2 GB RAM, 1 GB Flash
System Time: 2011/08/18 13:39:51
Up Time: 0 Days 00:40:51
X0 IP Address: 192.168.200.201
X0 Subnet mask: 255.255.0.0
Default Gateway: 192.168.200.1
Primary DNS: 10.50.128.52
Secondary DNS: 4.2.2.2
Hostname: SRA4200

 

Main Menu
1. Setup Wizard
2. Reboot
3. Restart SSL-VPN Services
4. Logout

 

Press <Ctrl-c> at any time to cancel changes and logout.
Select a number (1-4):

If no changes are saved, the following message is displayed and pressing Enter returns to the initial display of the System Information and Network Settings:

No changes have been made.
Press <Enter> to continue...

Note When applying settings that change the IP address, there may be a delay of up to 5 seconds as the interface settings are updated.

2. Reboot – Selecting this option displays a confirmation prompt and then reboots:

Reboot
Are you sure you want to reboot (y/n)?

3. Restart SSL-VPN Services – This option displays a confirmation prompt and then restarts the Web server and the related SRA daemon services. This command is equivalent to issuing the EasyAccessCtrl restart command.

Restart SSL-VPN Services
Are you sure you want to restart the SSL-VPN services (y/n)? y

 

Restarting SSL-VPN services...please wait.
Stopping SMM: [ OK ]
Stopping Firebase :[ OK ]
Stopping FTP Session:[ OK ]
Stopping HTTPD: [ OK ]
Cleaning Apache State: [ OK ]
Stopping Graphd :[ OK ]

 

Cleaning Temporary files........
Starting SMM: [ OK ]
Starting firebase: [ OK ]
Starting httpd: [ OK ]
Starting ftpsession: [ OK ]
Starting graphd: [ OK ]

 

Restart completed...returning to main menu...

 

4. Logout – The logout option ends the CLI session and returns to the login prompt.