Operating System - HP-UX
1833883 Members
1714 Online
110063 Solutions
New Discussion

Glance Plus Adviser Script

 
David Fosgate_1
Occasional Advisor

Glance Plus Adviser Script

I have all the tools installed and somewhat working, now for some customization. I'm reviewing the Adviser Syntax manual and wanted to test an example on page 20. I think the script will launch a window from an iconed session of gpm when the alarm conditions are meet.

Here's the paragraph and example from page 20:
ALARM Example: Using COMPOUND Statements
Use the following example to use a COMPOUND statement within the ALARM statement. This example shows you how to make the Adviser open a window when an event occurs and how to print a statement to your originating GlancePlus shell:

ALARM cpu_bottleneck > 90 FOR 1 MINUTE
START {
RED ALERT "Your CPU is bottlenecked."
GPM -rpt cpugraph
PRINT "CPU is running at: ", gbl_cpu_total_util
}
END
RESET ALERT "CPU crisis is over."


I make the changes and the script checker complains?

What am I missing?

Thanks in advance for the help!!
4 REPLIES 4
CHRIS_ANORUO
Honored Contributor

Re: Glance Plus Adviser Script

Remove the line "GPM -rpt cpugraph " and try again.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
David Fosgate_1
Occasional Advisor

Re: Glance Plus Adviser Script

Chris,

If I remove that line, will I get the gpm window as expected?
If I'm reading the example correctly, I can have the adviser alarm launch a window from an icon alerting me to the problem?

Thanks
Jim Welch
Respected Contributor

Re: Glance Plus Adviser Script

Are you modifying the gpm adviser syntax or writing an adviser script for glance? GPM is not a valid keyword in glance (per my advser syntax help), but it is in gpm.
Any sufficiently advanced technology is indistinguishable from Magic - Arthur C. Clarke
Wayne Hanner_1
New Member

Re: Glance Plus Adviser Script

do you know where i can find an advisor syntax manual on line?