Description:
A Document Repository is used to store Service Desk Attachments.
By default, the repositories are located on the primary server. No extra configuration is required to make them work. However, it may be desirable to store a repository on a secondary server for better efficiency or security.
To place the repository on a remote server requires installing a secondary server with a running repository daemon (rep_daemon) according to the following instructions.
Solution:
Prerequisites for the Remote Document Repository Server
The system requirements for remote Document Repository server are:
- Secondary server with repository daemon running, as the physical location of the remote document repository.
- Tomcat and Upload Servlet.
Instructions to Configure Repository Daemon on a Secondary Server
Warning: Incorrect use of the pdm_edit process can disable your system. Take a file system backup of all files that are replaced during the pdm_edit process prior to starting. This includes but is not limited to the /pdmconf directory, /www directory and NX.ENV files. A full list of files that may be updated by the process is produced upon exiting the pdm_edit process. These files require manual copying before they take effect, so there is time at this point to take a backup of the affected areas.
- Start the pdm_edit process.
From a command prompt on the primary server change to the Service Desk home directory and then the samples/pdmconf directory:
nxcd
cd samples/pdmconf
pdm_perl pdm_edit.pl
Answer the next two questions to come to the main pdm_edit menu. Both answers are typically "Yes" for a Windows system.
- Chose "r" to "Edit (R)epository Daemon."
- Edit (O)bject servers.
- Edit WEB (D)irectors.
- Edit (W)EB engines.
- Edit (T)NG Converters (NT_ONLY).
- Edit U(N)I Converters (UNIX_ONLY).
- Move Login (U)ser Validation.
- Edit (L)DAP Virtual DB.
- Edit (R)epository Daemon.
- Edit (C)hange Impact Analyzer.
- Edit (A)liases.
- Edit (K)nowledge Daemons.
- Help.
- Views.
- Quit NO SAVE.
- Save.
- Save and quit.
Please enter selection: r
Repository Daemons: primary
(A)dd, (D)elete, <CR> return
- (A)dd the name of the secondary server and <Enter> to return to the main menu.
Note: The name of the secondary server must match the NX_LOCAL_HOST on the secondary server and should maintain the same case.
- Choose "X" to Save and Exit. This produces a saved file called pdm_startup.rmt file.
This will be the replacement for $NX_ROOT/pdmconf/pdm_startup.tpl.
Note: All editing so far has taken place in the $NX_ROOT/pdmconf/samples directory. The live directory is just $NX_ROOT/pdmconf.
Take a copy of the instructions produced at this point and take any backups required if not already done.
- Rename the current $NX_ROOT/pdmconf/pdm_startup.tpl file.
- Copy the replacement $NX_ROOT/samples/pdm_startup.rmt file to $NX_ROOT/pdmconf/pdm_startup.tpl.
- Start the Secondary Server, which starts the proctor on the secondary server.
Note: On Windows NT the proctor is a service and on Linux it is pdm_proctor_nxd.
- Start the Primary Server and use pdm_status or slstat to see if the new repository daemon appears.
pdm_status | find "rep"
slstat | find "rep"
Sample slstat output:
rep_daemon:My2ndSrv 44 47 Mon Mar 02 15:49:04 2009
- Log in as a Service Desk Administrator and change the Server Name and the Upload path to point to the remote machine where the new repository daemon is running. Administration, Attachments Library, Repositories, right-click Repository, Edit.
- Log into the secondary server and test attachments against this new/updated repository.
See also the Service Desk r11 and r12 Administration Guides.