Server Management - Systems Insight Manager
1833402 Members
3103 Online
110052 Solutions
New Discussion

Scheduled Notification in 4.2

 
SOLVED
Go to solution
CG_2
Frequent Advisor

Scheduled Notification in 4.2

In CIM7 I had e-mail notification tasks that used the Devices by Status queries and ran hourly. They would send “reminders” every hour about systems weren’t “normal”. This prevented a sick system from “slipping through the cracks” if I missed the status change event do to poor pager reception in any odd location.

How can I set this up in SIM? The imported tasks from the CIM7 DB don’t work as they used to, (yes I enabled them:).

Tha
3 REPLIES 3
David Claypool
Honored Contributor
Solution

Re: Scheduled Notification in 4.2

The notification subsystem was re-designed in HP SIM to make it easier to use. Human factors testing found it to be more intuitive to set up than IM7 was. Unfortunately, what you describe isn't easily accomplished.

It's not all bad news, though, because HP SIM is much more customizable than IM7 was. Using the command line mxquery command, you could have a script that asks for systems that are in a non-good status and using a command line mail client (do a google search -- there's a lot of them out there -- MS even has one; see the question "How can I send e-mail from a batch script?" on page http://www.microsoft.com/technet/prodtechnol/windows2000serv/support/faqw2kcp.mspx for more info) can send whatever message you want. This can be scheduled to run hourly with the 'at' command or the Control Panel scheduled tasks applet.

I created a custom list that I called "Non-Normal" and the way I would call it from the command line would be

%PROGRAMFILES%\hp\system~2\bin\mxquery -e "non-normal" >c:\non-normal.txt

(use dir /x in the %PROGRAMFILES%\hp directory to see if your system contracts to system~1 or system~2 - it depends on order of installation of things)

If there are no systems in your non-normal status query results, the file will have 0 bytes. Now you just have to test and compare the size of the file to make a decision. A clue to doing that can also be found on the MS site under the question "How can I count the number of lines in a file, and/or display the last n lines?" on page http://www.microsoft.com/technet/prodtechnol/windows2000serv/support/faqw2kcp.mspx

You could probably get fancier if you did some extra work in Perl or with the Windows Scripting Host, but this can be accomplished via a simple batch file.
CG_2
Frequent Advisor

Re: Scheduled Notification in 4.2

Thanks for the info David.

This is very disappointing for me. I was hoping to not have to add another moving part.

Being able to create scheduled reports that mail themselves (which is what that was essentially) is nice. Is there a "Feature Request" forum, or address I can send this to?
David Claypool
Honored Contributor

Re: Scheduled Notification in 4.2

Your request has been forwarded to the product manager.