RPMS Installation

= RPMS Installation Instructions = Written by Sam Habiel. I want to acknowledge Rick Pullen and Nancy Anthracite, who helped me put this together.

For development use; consult a Vista Cache expert for production system set-up. Optional steps marked with *.


 * 1) Install Cache or Ensemble (lastest versions); answer no to the question that asks whether to put the key in now if you have the key as a file.
 * 2) In the Mgr directory, copy the key and make sure it's named cache.key
 * 3) In the C:\Intersystems\[Cache or Ensemble]\mgr directory, make a subdirectory (let's call it rpms) for you database and place your RPMS cache.dat into that [rpms] directory.
 * 4) Log into the System Mangement Portal. Right-click on notification icon, choose that option, and if you set a password, log in
 * 5) Home > Configuration > Advanced Settings (newer Cache, different places, as below)
 * 6) IO (Configuration > Compatibility Settings)
 * 7) * Filemode = True
 * 8) * Openmode = 1 for Read/Write
 * 9) Memory (Can't find in newest version of Cache, 2010)
 * 10) * GenericHeapSize = 10000. More may be needed for shadowed systems.
 * 11) * ZFHEAP = 125000 (minimum). May require more depending on software running and OS platform.
 * 12) Miscellaneous (Configuration > Startup Settings)
 * 13) * WebServerPort = 57772 (default) This can be changed and is the port number that the System Management Portal uses.
 * 14) ObjectScript (Configuration > Compatibility Settings)
 * 15) * Set ZEOF = True
 * 16) Telnet (Configuration > Device Settings > Telnet Settings)
 * 17) * DNSLookup = True (if DNS server is available). Set to False if no DNS server available. Only affects Windows OS.
 * 18) *Home > Configuration > Memory and Startup
 * 19) * Routine Cache: Min 50MB
 * 20) * Database Cache (8 KB): Min 1500MB. Leave 2 KB Cache at 0.</tt>
 * 21) Create your database
 * 22) Configuration > Local Databases > Create New Database
 * 23) Give it the same name you gave the mgr subdirectory (perhaps rpms) earlier in the process and choose that directory. When you click next, Cache or Ensemble should find the Cache,dat you placed in the mgr subdirectory you creaated. Accept using it. The database size will be set automatically.
 * 24) Jounal: No
 * 25) Create a namespace
 * 26) Configuration > Namespaces > Create New Namespace
 * 27) Give it the same name as your DB created in #4
 * 28) Map it to your DB
 * 29) Don't copy any mappings
 * 30) Create the mappings (Namespaces, Global Mappings and Routine Mappings)
 * 31) Globals: (%Z*, %z*) to your namespace; (UTILITY, TMP, TEMP, XTMP) to CACHETEMP</tt>
 * 32) Routines: %DT*, %HOSTCMD, %INET, %RCR, %Serenj*, %XB*, %XU*, %ZI*, %ZO*, %ZT*, %ZU*, %ZV*, %ZDEBUG</tt>
 * 33) *Home > Security Management > Users
 * 34) Add accounts. Copy from SuperUser. Add Password. Set Namespace. If this is intended for general use, set the routine to be ^ZU, otherwise, leave it blank.
 * 35) *Home > Security Management > CSP Applications > Edit /csp/sys (this portal). Uncheck unauthenticed and check password to allow only authenticated users to use the system management portal.
 * 36) *Home > Security Management > Services > Edit %Service_Telnet. Enable it and choose appropriate authentication.
 * 37) *Home > Security Management > Resources > Edit %Development and enable it (only for systems on which development will be performed).
 * 38) *For databases migrated from Cache 5.0.x, recompile the routines and update database objects.
 * 39) * Enter Programmer Mode
 * 40) * Go to your namespace
 * 41) * Execute the following:
 * 42) ** D ^%RCOMPIL</tt>
 * 43) ** Routine(s): %*</tt>
 * 44) ** Routine(s): **</tt>
 * 45) ** ZN "%SYS"</tt>
 * 46) ** W $System.OBJ.UpgradeAll</tt>
 * 47) * Go back to your namespace
 * 48) ** D RebuildIndex^%R("","",1)</tt>
 * 49) In Programmer mode, D ^ZTMGRSET, choose OpenM for OS, and type your namespace on the three quetions, and rename fileman routines.
 * 50) Correct the Volume Set and Primary HFS Directory fields in the Kernel Systems Parameters file
 * 51) Correct the Volume in Volume Set file
 * 52) Taskman Site Parameters need to be XXX:CACHE or XXX:ENSEMBLE or XXX:<INSTANCE NAME>
 * 53) Check the Mailman Site Params file for the correct entry in the below field: CPU (UCI,VOL) FOR FILER TO RUN: XXX,XXX
 * 54) Before you proceed, fix the volume set field for devices |TRM| and |TNT| or otherwise you won't be able to use FileMan features.
 * 55) In Option Scheduling file, correct Volume field for tasks by stuffing the right one
 * 56) In Device File, correct Volume Set field also by stuffing
 * 57) Kill ^%ZTSK and ^%ZTSCH. Reindex the Option Scheduling file (all indices)
 * 58) Fix the RPMS Site file. Set OS to DOS
 * 59) In CIA LISTENER file, correct UCI.
 * 60) In XUP, go to CIANB MAIN MENU, edit the CIA broker package parameters and remove old UCI and put new one.
 * 61) Start the listener.
 * 62) In BMXMENU, edit all the ports to have a correct namespace, and then start all of them.
 * 63) In the portal, go to system services and enable telnet.
 * 64) Go to XUP, and add yourself as a user.
 * 65) Find your DUZ
 * 66) Give yourself the "@"
 * 67) Assign yourself all the keys in the universe by D ^AKMOSUSR
 * 68) Make a folder where your ehr client will reside. Share that folder with read access to all users.
 * 69) Find lastest major version of EHR (currently 1.1) and double click on the exe and extract the files to folder you just created.
 * 70) In the resulting dialog, put the UNC path of the shared folder in the first box; in the last box, add /trace to enable tracing by default (for developers).
 * 71) Install EHR 1.1 patch 1
 * 72) Install EHR 1.1 patch 4. It contains the last license (the permanent one).
 * 73) Edit the VueCentric Framework defaults. In XUP, choose CIAV MANAGER
 * 74) * Choose site parameter edit
 * 75) * Object source path is the UNC to your lib folder
 * 76) * You may choose to change the default VueCentric Template now or later

Stuff to do later... There is so much set-up you can work on. Here are some things that are needed:
 * 1) *Add Mailman Domain; Christen; have Kernel point to it.
 * 2) *Add Institution; Set-up Medical Center Division to point to it; have Kernel point to default division.
 * 3) *Setup Backup and Journalling in Cache/Ensemble.