Secure Mobile Access 10.2 User Guide

Using the NetExtender Command Line Interface

The NetExtender command line interface is only available on Windows platforms.

To launch the NetExtender CLI

  1. Launch the Windows Command Prompt by going to the Start menu, select Run, enter cmd, and click OK.
  2. Change directory to where NetExtender is installed. To do this, you first must move up to the root drive by entering the cd .. command. Repeat this command until you are at the root drive. Then enter cd Program Files\SonicWall\SSL-VPN\NetExtender.

    The specific command directory could be different on your computer. Use Windows Explorer to find the directory path where NetExtender is located.

The following table, NetExtender CLI commands and options describes the commands available in the NetExtender CLI and their options.

NetExtender CLI Commands and Options
CommandOptionDescription
NECLI addprofileCreates a NetExtender profile
-s serverThe IP address or hostname of the SMA server.
-u user-nameThe username for the account.
-p passwordThe password for the account.
-d domain-nameThe domain to connect to.
NECLI connectInitiates a NetExtender session.
-s serverThe IP address or hostname of the SMA server.
-u user-nameThe username for the account.
-p passwordThe password for the account.
-d domain-nameThe domain to connect to.
- clientcertificatethumb thumbThe SSL Client Certificate thumbprint value.
- clientcertificatename nameThe SSL Client Certificate name.
NECLI deleteprofileDeletes a saved NetExtender profile.
-s serverThe IP address or hostname of the SMA server.
-u user-nameThe username for the account.
-d domain-nameThe domain to connect to.
NECLI disconnectDisconnects
timeout(Optional) Timeout duration, after which the session is disconnected.
NECLI displayprofileDisplays all NetExtender profiles.
-s server(Optional) Displays only the profiles that are saved for the specified server.
-u user-name(Optional) Displays only the profiles that are saved for the specified user name.
-d domain-name(Optional) Displays only the profiles that are saved for the specified domain name.
NECLI queryproxyChecks the connect to the proxy server.
NECLI reconnectAttempts to reconnect to the server.
NECLI showstatusDisplays the status of the current NetExtender session.
NECLI setproxyConfigures proxy settings for NetExtender.
-t [0 |1 | 2 | 3]

There are three options for setting proxy settings:

0 – Disable proxy.
1 – Automatically detects proxy settings. The proxy server must support Web Proxy Auto Discovery Protocol (WPAD).

2 – Uses a proxy configuration script.
3 – Manually configure the proxy server.

-s proxy addressThe address of the proxy script or proxy server.
-o portThe port number.
-u user nameThe user name for the proxy server.
-p passwordThe password name for the proxy server.
-b bypass-proxyBypasses the previously configured proxy settings.
-saveSaves the proxy settings.
NECLI viewlogDisplays the NetExtender log.

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.