Watchdoc Tools - Watchdoc Command line (WCLI)
Presentation
WCLI (Watchdoc Command Line) is an on line command tool which enable you to launch recurring task in Watchdoc.
It especially enables to manage the Master configuration, to create an ASSETS database and to create external queues on a server, for example.
Access
The on line command tool is stored by default on the print server, in the Watchdoc folder: C:\Program Files\Doxense\Watchdoc\wcli.exe:
Using prerequisites
-
.NET Framework 4.0 must bien installed;
-
all the Watchdoc servers subjected to the WCLI commands mus have the same password;
-
the presented commands are case-sensitive.
Detail of the WCLI commands
-
The syntax to use is the following:
wcli.exe /serveur=DNSSRRV / password=PASSWORD NOMDELACOMMANDE
Syntax
-
Create : to create a server;
-
Remove : to remove a server;
-
Export : to move items (especially printing queues) from a server to an other;
-
Help : to access information.
-
Creation of a master server:
wcli.exe /master=DNSSRVMASTER /password=PASSWORD CREATEMASTER
-
Registration of a server in a domain:
wcli.exe /master=DNSSRVMASTER /slave=DNSSRVSLAVE /password=PASSWORD CREATESLAVE
-
Deletion of a master server:
wcli.exe /slave=DNSSRVMASTER /password=PASSWORD REMOVEMASTER
-
Remove a server from a domain:
wcli.exe /slave=DNSSRVSLAVE /password=PASSWORD REMOVESLAVE
-
Domain server printing queues adding on the master server:
wcli.exe /slave=DNSSRVMASTER /password=PASSWORD REMOVEMASTER
-
Controlled printing queues adding in a SQL ASSETS table or the SQL server (to execute on the WEB server):*
wcli.exe EXPORT
รจ This export collects the servers declared on the "websiteconfig" folder and inserts them in the master slave database thanks to the config.xmlfile.
If the master server is not installed on the IIS server, it will be necessary to copy its config.xml file in C:\temp and to enter the following command:wcli.exe /configPath= "c:\temp\config.xm" EXPORT
-
Password encryption activation (for a local server):
wcli.exe /server=dnsservername /password=maintenance_password /enabled=true /algorithm=aes
-
Password encryption activation (for all Watchdoc servers):
wcli.exe /master=masterdns /masterport=0 /password=maintenance_password /enabled=true /algorithm=aes /parallel=true
-
Information display:
wcli.exe HELP
Commands
The main commands are the following:
Main commands