Carel plug-in User Manual Page 73

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 72
pCOWeb +030220471 – rel. 1.0 – 02.05.2007 73
20 <h1>pCOWeb ftp client System Configuration</h1>
21 <div style="color: #999999; font-size: 14px">pCOWeb Ntp client
configuration</div>
22
23 <form method="POST" action="">
24 <h4>Ntp client configuration parameters:</h4>
25 <table>
26 <tr>
27 <td><B>Ntp server Address: </B></td>
28 </tr>
29 <tr>
30 <td><%getdb('conf_users/ntp_client.conf','NTP_URL')%></td>
31 <td><a href=javascript:modify("ntp_url")> Modify </a></td>
32 <td><input id=ntp_url style="visibility: hidden" type="text"
name="?script:setdb('conf_users/ntp_client.conf','NTP_URL')"
value="<%getdb('conf_users/ftp_client.conf','NTP_URL')%>"></td>
33 </tr>
34 </table>
35 <p>
36 <input type="submit" value="Submit">
37 </form>
38 <br>
39 <a href="/config/scanplugins.cgi">Back to plugins page</a>
40 </html>
DESCRIPTION OF THE LINES
(also see
APPENDIX G on page 62)
1: Syntax that defines the text shown on the link on the “Configuration/Plugins” HTML page (
Figure 8.s on page 41); if not present, the text shown on the link is
the name of the HTML file.
IMPORTANT
This should not be confused with the pluginname file, located in the Plugin installation directory, which is only used during the installation
and uninstallation phase.
4: Syntax telling the pCOWeb to process the page and replace the CAREL tags with the corresponding values; this is required to be able to write and read the
configuration files.
23: The HTML form statement is used to send information from the html page to the pCOWeb; note that the method must always be POST.
30: The getdb tag is used to display the value of a setting in the configuration file specified. The example refers to the value associated with NTP_URL in the
ntp_client.conf file located in “/usr/local/root/flash/etc/sysconfig/conf_users/”; the full path does not need to be specified if the file is located in a
subdirectory of “/usr/local/root/flash/etc/sysconfig /”; another directory can be specified by correctly indicating the full path, starting from the root (“/”),
nonetheless it is recommended to use the suggested directory so as to maintain coherence in the structure of all the Plugins developed.
32: This HTML statement defines an input field used to display and modify the value associated with a parameter in a configuration file. The setdb statement can
be used to modify the value associated with the variable when the “Submit” button is
selected on the form.
36: Closing the page, the “Submit” button is displayed.
39: Link that, selecting the “Submit” button, refreshes the display of the pCOWeb Plugin
configuration page; Administrator authentication (see
8.2.1 on page 36) is required to
display the page.
The field displayed to change the value of the NTP_URL parameter is as shown in
Figure H.b.
EXECUTABLE FILES
These are ALL the files in the Plugin “bin_users” directory of the Plugin being installed.
They represent the executable files (binary files or bash scripts) that manage the functions of the Plugin.
During installation the executable files are installed in the “/usr/local/root/flash/bin_users/” directory,
which corresponds to the $BIN_USERS system variable; the path is included in the $PATH system
variable.
During installation, each of these files are attributed the permission to be executed as envisaged by the
Linux operating system, shown in
Figure H.c.
The following executable files are included in the NTP Plugin:
“ntpdate” (this handles communication with the NTP server and writes the time to the
system clock);
“ntp.sh” (this handles the management); the latter is described in detail below.
Figure H.b – Field used to set the address of the NTP server
Figure H.c – Linux permission for executing the “ntpdate” files
Page view 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 79 80

Comments to this Manuals

No comments