Appendices : Accessing the CLI

Adding SonicWALL Appliances
To add one or more SonicWALL appliances to Dell SonicWALL GMS using the CLI, use the addunit command.
sgms> addunit xml_file
Syntax
Table 87. Syntax
Usage Guidelines
The XML file should contain the following:
<?xml version ="1.0" ?>
<sgmscommand>
: <command>addUnit</command>
: <FirewallList>
: <FirewallInfo>
: <SonicwallName>sonicwall_name</sonicwallName>
: <SonicwallPassword>password</sonicwallPassword>
: <IpAddress>ip_address</ipAddress>
: <retainManual>1</retainManual>
: <userName>username</userName>
: <SerialNumber>serial_number</serialNumber>
: <SAencryptionKey>encrypt_key</SAencryptionKey>
: <SAAuthKey>auth_key</SAAuthKey>
: <AntivirusPassword>av_password</antivirusPassword>
: <SchedulerIPAddress>scheduler_ip</schedulerIPAddress>
: <StandbySchedulerIP>standby_ip</standbySchedulerIP>
: <UseVPN>use_vpn</useVPN>
: <supportRavlin>ravlin_bit</supportRavlin>
: <snmpRead>read_string</snmpRead>
: <snmpWrite>write_string</snmpWrite>
: <httpsMgmt>https_bit</httpsMgmt>
: <managedOnLanIP>managedon_lanip</managedOnLanIP>
: <StandbyManagedAtWan>standbymanaged_atwan</standbyManagedAtWan>
: <CustomInfo>
: <Customfield01>field_01</Customfield01>
: <Customfield02>field_02</Customfield02>
: ...
: <Customfield10>field_10</Customfield10>
: </CustomInfo>
: <userList>
: <user>user_01</user>
: <user>user_02</user>
: ...
: </userList>
: </FirewallInfo>
: <FirewallInfo>
: (SonicWALL Configuration Information)
: </FirewallInfo>
: <FirewallInfo>
: (SonicWALL Configuration Information)
: </FirewallInfo>
: </FirewallList>
</sgmscommand>
 
Optional. This will retain Manual Mode and the specified IP address will not be overwritten. Enter 1 in this field to enable the feature. An IP Address has to be specified for the tag “ipAddress” when using this feature.
Example
In the following example, two new SonicWALL appliances are added to the GMS. The first appliance is determining the IP address automatically, and being managed by the administrator. The second appliance is using a manually enter IP address that is set to be sticky (retained), and management permissions are given to the gmsuser.
sgms> addunit new_sonicwall.xml
The following is the content of new_sonicwall.xml.
<?xml version ="1.0" ?>
<sgmscommand>
: <command>addUnit</command>
: <FirewallList>
: <FirewallInfo>
: <sonicwallName>ABC14</sonicwallName>
: <sonicwallPassword>abc</sonicwallPassword>
: <ipAddress></ipAddress>
: <userName>admin</userName>
: <serialNumber>00F12211F114</serialNumber>
: <SAencryptionKey>1234567812345678</SAencryptionKey>
: <SAuthKey>12345678123456781234567812345678</SAuthKey>
: <antivirusPassword>avpass</antivirusPassword>
: <schedulerIPAddress>192.168.168.168</schedulerIPAddress>
: <useVPN>1</useVPN>
: <standbyManagedAtWan>1</standbyManagedAtWan>
: <standbySchedulerIP>192.168.168.23</standbySchedulerIP>
: <supportRavlin>1</supportRavlin>
: <snmpRead>abcdef12</snmpRead>
: <snmpWrite>abcdef12</snmpWrite>
: <httpsMgmt>0</httpsMgmt>
: <manageOnLanIP>0</manageOnLanIP>
: <CustomInfo>
: <Company>SonicWAll</Company>
: <Country>China</Country>
: <State>California</State>
: <Department>Engineering</Department>
: </CustomInfo>
: <userList>
: <user>billb</user>
: <user>dana</user>
: </userList>
: </FirewallInfo>
: <FirewallInfo>
: <sonicwallName>XYZ26</sonicwallName>
: <sonicwallPassword>abc</sonicwallPassword>
: <ipAddress>10.10.10.100</ipAddress>
: <retainManual>1</retainManual>
: <userName>gmsuser</userName>
: <serialNumber>00F1434CE265</serialNumber>
: <SAencryptionKey>1234567812345678</SAencryptionKey>
: <SAuthKey>123456781234567812345678abcdef89</SAuthKey>
: <antivirusPassword></antivirusPassword>
: <schedulerIPAddress>192.168.168.168</schedulerIPAddress>
: <useVPN>1</useVPN>
: <standbyManagedAtWan>1</standbyManagedAtWan>
: <standbySchedulerIP>192.168.168.23</standbySchedulerIP>
: <httpsMgmt>0</httpsMgmt>
: <manageOnLanIP>0</manageOnLanIP>
: <CustomInfo>
: <Company>SonicWAll</Company>
: <Country>China</Country>
: <State>California</State>
: <Department>Engineering</Department>
: </CustomInfo>
: </FirewallInfo>
: </FirewallList>
</sgmscommand>