Appendices : Accessing the CLI

Preparing a Configuration File
Configuration files can be used to set, add, or delete parameters that are normally only accessible from the Dell SonicWALL GMS UI. Additional examples of XML files are found in the SGMS2/CLI directory. The following is the format of an XML configuration file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE Configure [
<!ELEMENT Configure (Task*)>
<!ELEMENT Task (SetParam*,DelParam*,AddParam*)>
<!ATTLIST Task
displayname CDATA #REQUIRED
viewname CDATA #REQUIRED
updatetype CDATA #REQUIRED
tasktype CDATA #REQUIRED
description CDATA #REQUIRED>
<!ELEMENT SetParam EMPTY>
<!ATTLIST SetParam
setParamName CDATA #REQUIRED
setParamValue CDATA #REQUIRED>
<!ELEMENT DelParam EMPTY>
<!ATTLIST DelParam
delParamName CDATA #REQUIRED
delParamValue CDATA #REQUIRED>
<!ELEMENT AddParam EMPTY>
<!ATTLIST AddParam
addParamName CDATA #REQUIRED
addParamValue CDATA #REQUIRED>
]>
<Configure>
<Task
displayname="firewall_parameters"
viewname="view_name"
updatetype="update_type"
tasktype="task_type"
description="description"
>
<AddParam addParamName="add_parameter_name" addParamValue="add_parameter_value"/>
<AddParam setParamName="set_parameter_name" setParamValue="set_parameter_value"/>
</Task>
</Configure>
 
Table 107. Parameters
set_parameter_name—specifies the name of the parameter.
set_parameter_value—specifies the new setting.
add_parameter_name—specifies the name of the parameter.
add_parameter_value—specifies the new parameter setting.
del_parameter_name—specifies the name of the parameter.
del_parameter_value—specifies the setting to delete.
set_parameter_name—specifies the name of the parameter.
set_parameter_value—specifies the action to execute.