How To Configure a Program Document to Run a Server Command in R5

Mindwatering Incorporated

Author: Tripp W Black

Created: 04/04/2001 at 11:41 PM

 

Category:
Domino Upgrades / Installations
Software (Re)Configuration

Title:How To Configure a Program Document to Run a Server Command in R5
Product Area:Domino Server
Product:Domino Server 5.x
Topic:Server \\ Platform \\ NT
Number:183305
Date:02/22/2001




Problem:


You would like to automatically run a server command periodically to capture information in the Notes log. Is it possible to schedule a Domino server command (ex: DBCACHE FLUSH) to run at a specific time in Domino Release 5.x?

Solution:


NOTE: The following information only applies to Release 5.x and will not allow Tell comands to work in R4.

You can create a Program document in the Public Address Book (NAB). To do this:

1. Open NAMES.NSF, then open Server, Programs.
2. Click "Add Program."
3. On the Basics tab, enter the following:

Program Name: nserver
Command Line: -c "server command" *
Server to run on: specify server

4. On the Schedule tab, enter the following:

Enabled/disabled: ENABLED
Run at times: specify range of times or one time
Repeat interval of: 0 if run only once, otherwise specify interval
Days of week: specify which days to run the program doc

* server commands, ex. sh server, sh task, sh sched, dbcache flush

Supporting Information:


This will send commands to the server console and to log.nsf.


Related Documents:


How to Send Commands to the Server's Console from the Command Line with R5
Document #: 178601


Problem:

Is there a way to send commands to the server console from a DOS command line, to execute different tasks or operations?

Solution:


In order to send a command to the Domino 5.x server console from a DOS prompt, go to the directory where the Notes executable files are installed and enter the following command:
    • for NT x86 nserver -c "show stat"
    • for NT Alpha aserver -c "show stat"
    • for UNIX server -c "show stat"
    • for Linux server -c "show stat"
    • for OS/2 iserver -c "show stat"

where "show stat" can be replaced with other Domino commands (i.e. "load http", "tell http quit", etc.). The command is sent to the Domino server console and processed as usual.

If the server is partitioned, you must first set the partition number you want to send the commands to using the environment variable NOTESPARTITION:
      set NOTESPARTITION=n
      where n is the partition number.


      previous page