System/Time This section describes parameters that can be configured for the time screen of the System tree. To get the firewall parameters list that needs to be configured on the firmware, it is necessary to query the back-end database. To configure the time screen, complete the following steps: 1 Open Query Analyzer, select sgmsdb database, then execute the following queries: • Select ID from screens with names like 'Time'. Output: 1003 • Query to get the details of the parameters. • Select prefs_file_name,independent,default_value from params_info where prefs_file_name in (Select param_name from sub_policy where screen_id = 1003) Table 110 provides the parameters returned from the previous query. Table 110. Query Parameters Prefs file name Independent Default value Min. value Max. value addCustomNTPServer 0 Null Null ntp_updateInterval 1 60 Null Null ntp_useDst 1 0 Null Null ntp_useNtp 1 0 Null Null ntp_utcLogs 1 0 Null Null timezone 1 28 Null Null useInternational 1 0 Null Null Grouping independent and array parameters from the previous query results in: • Independent Parameter list: ntp_updateInterval, ntp_useDst, ntp_useNtp, ntp_utcLogs, timezone, useInternational (Independent attribute value 0) • Array List: addCustomNTPServer (Independent attribute value 1) The following provides the XML used to configure the Array parameters in the time screen: <!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> xml_file The XML file that contains configuration instructions. Using the Command Line Interface 27 <!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=" addCustomNTPServer " addParamValue="10.0.0.1"/> </Task> </Configure> The following provides the XML to configure independent parameters for the time screen. <!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> xml_file The XML file that contains configuration instructions. Using the Command Line Interface 27 <!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 setParamName=" ntp_updateInterval " setParamValue="30"/> <AddParam setParamName= " ntp_useDst " setParamValue="1"/> <AddParam setParamName=" ntp_useNtp " setParamValue="1"/> <AddParam setParamName=" ntp_utcLogs " setParamValue="1"/> <AddParam setParamName=" timezone " setParamValue="829"/> <AddParam setParamName=" useInternational " setParamValue="1"/> </Task> </Configure>