Appendix J. Using the Script of Dr.Web Enterprise Agent Initial Installation |
The installation routine of the Agents onto workstations by using the network installer (drwinst.exe) is set by install.script. These files reside in the products root folder in the repository. In standard distributions they are located in the 10-drwupgrade and 20-drwagntd catalogs and describe the default installation. If the .custom.install.script file is present in the folder, it is used instead of the standard installation routine.
The sequence of operations during the installation: 1.The network installer requests the Server for the installation of the following platforms: win-setup, common, win, win-nt and win-9x – this is the list of standard platforms in the default order. The order of use of the platforms can be changed by the -platforms=p1,p2,p3... switch when calling drwinst. The win-setup platform is not included into a standard distribution and is designed for creation of its own installation routines, if necessary. 2.The Server forms a list of files according to the list of platforms, viewing all products step by step in alphabetical order and lists of files set by the files{ } constructions for the given platform in the install.script installation routine (read below). At the same time, the summary script is created on the basis of the scripts{ } constructions. 3.The Server receives the general list of files and the summary script. 4.The Server sends the files and the script which will be executed by the network installer. Now we consider install.script by example of the 20-drwagntd folder.
The script contains a list of the platform{ } constructions and allows to include determinations from other files with the help of the include construction (include is admissible on the upper level only and is inadmissible inside platform{ }). If file.name in include does not contain paths, but a file name only, it is searched for in the same folder as the current one. The use of include constructions in the included files is allowed. The description of a platform begins with the name: XXX construction. Then, the pair of files{ } and scripts{ } lists follows; the order of these lists is inessential. The lists may contain any number of elements. The order of elements in the list is essential as it defines the order of files transferred to the station and the construction of the formed script. The order of the platform{ } constructions is also inessential. The variables of the installation scripts (the values for these variables can be specified from the command line of the network installer) with their default values are listed below: ◆spider.install = 'yes' ◆spiderml.install = 'yes' ◆scanner.install = 'yes' ◆install.home – installation folder ◆agent.logfile = install.home'\logs\drwagntd.log' ◆agent.loglevel = 'trace' ◆agent.logrotate = '10,10m' ◆agent.servers = install.servers ◆agent.serverkey = install.home'\drwcsd.pub' ◆agent.compression = 'possible' ◆agent.encryption = 'yes' ◆agent.findretry = '3' ◆agent.findtimeout = '5' ◆agent.spiderstatistics = '30' ◆agent.importantmsg = '2' ◆agent.discovery = 'udp/:2372' ◆agent.startmsg = '2' (or agent.startmsg = 'NONE') The agent.importantmsg parameter defines displaying the messages on the updating error, on the reboot request, etc. to a user. 0 — do not display, 1 — display a pop-up notification. Now we create a nonstandard installation scenario in which SpIDer Guard is not installed and maximum detailed logging is set: 1.Create a .win-setup.inst.rexx file in the 20-drwagntd folder and write to it
2.Create the .custom.install.script file in the 20-drwagntd folder and write to it
3.Reboot the Server or instruct to reboot the repository: ◆for UNIX OS: kill -USR1 cat `drwcsd.pid` ◆for Windows: drwcsd.exe rerepository
|