Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: KMPRSS

KMPRSS.m

Go to the documentation of this file.
  1. KMPRSS ;OAK/RAK - Resource Usage Monitor Status ;1/30/13 08:31
  1. ;;2.0;CAPACITY MANAGEMENT - RUM;**1,2**;May 28, 2003;Build 12
  1. ;
  1. STAT ;--display rum environment
  1. ;
  1. D DISPLAY^KMPDSS1("R^RUM")
  1. ;
  1. Q
  1. ;
  1. START ; Start Resource Usage Monitor collection
  1. N CHECK,DA,DIE,DIR,DR,X,Y
  1. ; check environment
  1. D ENVCHECK^KMPRUTL1(.CHECK,1)
  1. ; if RUM does not support this operating system then quit.
  1. I (+CHECK)=100 W !! D ENVOUTPT^KMPRUTL1(CHECK,1,1) H 1 Q
  1. I +$G(^%ZTSCH("LOGRSRC")) W !!,?10,"The Resource Usage Monitor is already running.",! H 1 Q
  1. W ! K DIR S DIR(0)="Y",DIR("B")="YES"
  1. S DIR("?")="Answer YES to start collecting Resource Usage Monitor data"
  1. S DIR("A")="Do you want to start Resource Usage Monitor collection"
  1. D ^DIR Q:$D(DTOUT)!$D(DUOUT)
  1. I Y D
  1. .S DIE=8989.3,DA=1,DR="300///YES" D ^DIE
  1. .W !!,?10,"Resource Usage Monitor collection is started.",!
  1. .D ENVCHECK^KMPRUTL1(.CHECK,1)
  1. .; if background driver not scheduled to run then start it up
  1. .D:(+CHECK=200) QUEBKG^KMPRUTL1
  1. E W !!,?10,"Resource Usage Monitor collection is NOT started.",!
  1. H 1
  1. Q
  1. ;
  1. STOP ; Stop Resource Usage Monitor collection
  1. N DA,DIE,DIR,DR,DTOUT,DUOUT,X,Y
  1. I '+$G(^%ZTSCH("LOGRSRC")) W !!,?10,"The Resource Usage Monitor is already stopped.",! H 1 Q
  1. W ! K DIR S DIR(0)="Y",DIR("B")="YES"
  1. S DIR("?")="Answer YES to stop collecting Resource Usage Monitor data"
  1. S DIR("A")="Do you want to stop Resource Usage Monitor collection"
  1. D ^DIR Q:$D(DTOUT)!$D(DUOUT)
  1. I Y D
  1. .S DIE=8989.3,DA=1,DR="300///NO" D ^DIE
  1. .W !!,?10,"Resource Usage Monitor collection is stopped.",!
  1. E W !!,?10,"Resource Usage Monitor collection is NOT stopped.",!
  1. H 1
  1. Q