Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Monitoring</strong> Performance Using ^pButtons<br />
set ^zmgstat(+$h,1)=$$run^pButtons("day")<br />
• Output file — browse to the location of the output directory.<br />
2. Click Next. Then enter the following information in the specified fields:<br />
• How often ... — choose Weekly from the drop-down list.<br />
Select the Thursday check box.<br />
• Start Date — Enter the start date in the text box.<br />
3. Click Finish.<br />
Click Run once at this time: and enter 09:00:00 in the text box.<br />
Then create a task to run Collect^pButtons:<br />
1. From the [System] > [Task Manager] page of the System Management Portal, choose options The Schedule New Task<br />
option to start the Task Scheduler Wizard. Then enter the following information in the specified fields:<br />
• Task name — enter 24HourCollection.<br />
• Description — enter Generate 24-hour Report.<br />
• Namespace to run task in — choose %SYS from the drop-down list.<br />
• Task type — choose RunLegacyTask from the drop-down list.<br />
In the ExecuteCode textbox, enter the following code:<br />
set ^zmgstat(+$h-1,2)=$$Collect^pButtons($get(^zmgstat(+$h-1,1),1))<br />
• Output file — browse to the location of the output directory.<br />
2. Click Next. Then enter the following information in the specified fields:<br />
• How often ... — choose Weekly from the drop-down list.<br />
Select the Friday check box.<br />
• Start Date — Enter the start date in the text box.<br />
3. Click Finish.<br />
Click Run once at this time: and enter 11:00:00 in the text box.<br />
Example 2: Daily 2–Minute Run<br />
In this example, a task is created to schedule the ^pButtons utility to run a profile named 2mins (which collects performance<br />
data for two minutes) every day at 12:00, and Collect^pButtons to run every day at 12:30. To schedule these tasks use the<br />
procedure described in Schedule Task Manager in the “Managing <strong>Caché</strong>” chapter of <strong>Caché</strong> System Administration <strong>Guide</strong>.<br />
In this example, first create the task to run ^pButtons:<br />
1. From the [System] > [Task Manager] page of the System Management Portal, choose options The Schedule New Task<br />
option to start the Task Scheduler Wizard. Then enter the following information in the specified fields:<br />
• Task name — enter 2MinRun.<br />
• Description — enter Start 2-minute ^pButtons Run.<br />
• Namespace to run task in — choose %SYS from the drop-down list.<br />
• Task type — choose RunLegacyTask from the drop-down list.<br />
70 <strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong>