Configuring Taskman, Mailman and RPC Broker
From the GTM prompt Enter "D ^ZTMCHK" to check if TaskMan's environment is OK. This will display two screens with information on TaskMan's environment.
GTM> D ^ZTMCHK
Checking Task Manager's Environment.
Checking Taskman's globals... ^%ZTSCH is defined! ^%ZTSK is defined! ^%ZTSK(-1) is defined! ^%ZIS(14.5,0) is defined! ^%ZIS(14.6,0) is defined! ^%ZIS(14.7,0) is defined!
Checking the ^%ZOSF nodes required by Taskman... All ^%ZOSF nodes required by Taskman are defined!
Checking the links to the required volume sets... There are no volume sets whose links are required!
Checks completed...Taskman's environment is okay!
Press RETURN to continue or '^' to exit:
Here is the information that Taskman has: Operating System: GT.M (Unix) Volume Set: ROU Cpu-volume Pair: ROU:bonez TaskMan Files UCI and Volume Set: ROU,ROU
Log Tasks? Default Task Priority: Submanager Retention Time: 0 Min Submanager Count: Taskman Hang Between New Jobs: 0 TaskMan running as a type: GENERAL
Logons Inhibited?: N Taskman Job Limit: 9999 Max sign-ons: 1000 Current number of active jobs:
End of listing. Press RETURN to continue:
If TaskMan's environment is OK, start TaskMan. Go back to the GTM prompt and type "D ^ZTMB" to start TASKMAN.
You will probably not see any output from this command.
To monitor TaskMan, enter "D ^ZTMON" from the GTM prompt. Enter "^" at the UPDATE// prompt to exit the monitor or enter a "?" to see what the other options are.
GTM> D ^ZTMON
Checking Taskman. Current $H=59991,54440 (Apr 01, 2005@15:07:20)
RUN NODE=59991,54432 (Apr 01, 2005@15:07:12)
Taskman is current..
Checking the Status List:
Node weight status time $J
ROU:bonez RUN T@15:07:12 5933 Main Loop
Checking the Schedule List: Taskman has no tasks scheduled.
Checking the IO Lists: There are no tasks waiting for devices.
Checking the Job List: There are no tasks waiting for partitions. For VISTA:NTA there are 0 tasks. Out Of Service For VISTA:NTB there are 0 tasks. Out Of Service
Checking the Task List: There are 2 tasks currently running. On node ROU:bonez there is 1 free Sub-Manager(s). Status: Run
Enter monitor action: UPDATE//^
Now send a message using Postmaster to your DUZ number.
From the GTM prompt type "S DUZ=.5 then D ^XUP".
You will get the response SETTING UP PROGRAMMER ENVIROMENT then TERMINAL TYPE SET TO: (your default) and Select OPTION NAME: Respond: "XMUSER". At Select Mailman Menu Option: type "S" (for send). At Subject: enter your subject, such as Test, and then hit enter.
You will then be prompted You may enter the text of the message and you will be offered the line number 1> where you can type your message, such as the infamous Hello world. Next will be line 2> and if you are done, just hit enter and at EDIT Option: you can do the same.
At Send mail to: POSTMASTER// enter the initials you used for your DUZ which were probably SM for System Manager.
You will then be told when MailMan was last used, which is probably NEVER. Hit enter at And Send to: and you should receive the message Select Message option: Transmit now// at which you hit enter and will hopefully receive the message Sending [1] Sent. Type "^" to exit.
GTM>S DUZ=.5
GTM>D ^XUP
Setting up programmer environment This is a TEST account.
Terminal Type set to: C-VT100
Select OPTION NAME: XMUSER MailMan Menu
VA MailMan 8.0 service for POSTMASTER@BONEZ.OSWIZARDS.COM You last used MailMan: 01/18/05@15:11 You have no new messages.
Select MailMan Menu Option: S Send a Message Subject: TESTING You may enter the text of the message... 1>Hello, this is a test of the Emergency Broadcast System 2> EDIT Option: Send mail to: POSTMASTER// SA ADMINISTRATOR,SYSTEM IRM Last used MailMan: 04/01/05@14:23 And Send to: MHS STREET,MARK H IRM Last used MailMan: Never And Send to: Select Message option: Transmit now// Sending [1]... Sent Select MailMan Menu Option:
Now see if you received your mail.
Log on using "D ^ZU". At the Systems Manager prompt, type "MAIL". Then at the Select MailMan Menu Option: type "NEW" Messages and Responses. Read the mail.
GTM>D ^ZU
Volume set: ROU:bonez UCI: VAH Device: /dev/pts/1 ACCESS CODE: ******** VERIFY CODE: ******** Good afternoon root You last signed on today at 15:18
Select Systems Manager Menu Option: MAILMan Menu VA MailMan 8.0 service for ADMINISTRATOR.SYSTEM@BONEZ.OSWIZARDS.COM You last used MailMan: 04/01/05@15:19 You have 1 new messages.
Select MailMan Menu Option: NEW
Subj: TESTING [#1] 04/01/05@15:13 1 line From: POSTMASTER In 'IN' basket. Page 1
Hello, this is a test of the Emergency Broadcast System
Enter message action (in IN basket): Ignore//
Start and test the RPC Broker.
The RPC Broker is VistA's Client/Server software and is needed by VistA's GUI client. Type "D STRT^XWBTCP(port)" at the GTM prompt. The system status should now show the broker listener (XWBTCPL) running. GTM>D STRT^XWBTCP(9200) Start TCP Listener... Checking if TCP Listener has started... TCP Listener started successfully. GTM>
A quick overview of starting and stopping TaskMan, HL Filer Monitor and RPC Broker Listener components is in order.
1. To start TaskMan; GTM>D ^ZTMB
2. To start Background Filers GTM>D ^XUP
Setting up programmer environment Access Code:
Terminal Type set to: C-VT100
Select OPTION NAME: START BACKGROUND FILER XMMGR-START-BACKGROUND-FILER STA RT background filer START background filer
<< Background Filers will start soon. >>
3. To start HL Filer Monitor
GTM>D ^XUP
Setting up programmer environment Terminal Type set to: C-VT100
Select OPTION NAME: HL FILER MONITOR
Task Number of Asked Incoming Filer To Stop Last Known Date/Time Time Difference
- No incoming filers are running **
Task Number of Asked
Outgoing Filer To Stop Last Known Date/Time Time Difference
- No outgoing filers are running **
(+I) Start incoming filer (-I) Stop incoming filer (*I) Delete incoming filer (+O) Start outgoing filer (-O) Stop outgoing filer (*O) Delete outgoing filer
(N) Next 4 lines in list (B) Back 4 lines in list (Q) Quit
Type selection:Q
4. Start the RPC Broker Listener, pick a port you want to run the listener on. ex. 9210
GTM>D STRT^XWBTCP(9210)
5. To Stop RPC Broker Listener.
GTM>D STOP^XWBTCP(9210)
6. To stop Mailman Background Filers
GTM>D ^XUP
Setting up programmer environment Access Code:
Terminal Type set to: C-VT100
Select OPTION NAME: STOP BACKGROUND FILER
7. To stop HL FILER MONITOR run the exact same command as above and pick the proper selection from the menu at the bottom of the monitor.
GTM>D ^XUP
Setting up programmer environment Terminal Type set to: C-VT100
Select OPTION NAME: HL FILER MONITOR
Task Number of Asked Incoming Filer To Stop Last Known Date/Time Time Difference
- No incoming filers are running **
Task Number of Asked
Outgoing Filer To Stop Last Known Date/Time Time Difference
- No outgoing filers are running **
(+I) Start incoming filer (-I) Stop incoming filer (*I) Delete incoming filer (+O) Start outgoing filer (-O) Stop outgoing filer (*O) Delete outgoing filer
(N) Next 4 lines in list (B) Back 4 lines in list (Q) Quit
Type selection:-I
8. To stop TaskMan
GTM>D STOP^ZTMKU
Are you sure you want to stop TaskMan? NO//Y
Shutting down TaskMan
Should active submanagers shut down after finishing their current tasks? NO//Y
Okay!
9. Rundown the database, from the vista user's shell prompt you can choose the alias or you can run the mupip command
vista$ rundown
or
mupip rundown -r "*"