REFERENCE


Using the Sample Server.Load scripts
Many of these scripts were created using a specific template that may change from release to release, so take this into consideration when using or customizing any of these scripts.

To add documents to a view

This script adds documents to the default view All Document $all.


To documents to the Inbox folder

This script adds documents to the Inbox folder using the format -f foldername.


To add one document to the Inbox view

This script adds a single document to the Inbox view. In this example, the document Subject (length of summary item) is set to 30 bytes and the Body (length of non-summary item) is set to 10000 bytes.


To create a local database

This script creates a local database -- in this example, a Journal database. The NOTES.INI file contains the setting TemplateVersion=6. Text enclosed in asterisks (**) indicates comments.


**Populate the view with 10 documents**
**Open the view collection**
**Update the view index**
**Close the view collection**
To create multiple databases on a server

This script creates multiple databases on a specified server. In this example, a Journal database is created; the actual thread number is substituted for the "#" symbol; and the NOTES.INI file contains the setting TemplateVersion=6. Text enclosed in asterisks (**) indicates comments.

**Creation of multiple databases, based on the number of threads; all test databases will be placed in the journal directory**


To update a view collection

This script updates a view collection. In this example, Journal databases are created; the actual thread number is substituted for the "#" symbol; and the NOTES.INI file contains the setting TemplateVersion=6. Text enclosed in asterisks (**) indicates comments.


**Populate the $All view with 10 documents**
**Update the view index**
**Close the view collection**
To create and initialize mail files

This script creates and initializes one or more mail files The variable NumMailNotesPerUser is used to determine the number of documents in each mail file.


To issue remote console commands

This example uses the Console command to issue the Show Stat command remotely. You can substitute any server command for Show Stat.


Related topics