Server Management - Systems Insight Manager
1833767 Members
2458 Online
110063 Solutions
New Discussion

help/suggestion from all scripters please

 
SOLVED
Go to solution
Sean Murray_1
Regular Advisor

help/suggestion from all scripters please

Hi. Here is the goal.
On a monitored Win server, there is a txt file that gets appended every night.
I need to have something search that file every night after being ran and if it finds the info in attached file, then send alert to SIM, which in turn can page people.
Is it possible? Any help on how would be greatly appreciated.
Thanks.
3 REPLIES 3
David Claypool
Honored Contributor
Solution

Re: help/suggestion from all scripters please

Break the problem up into 3 tasks: the script/logic to examine the file and determine if an action needs to be taken, signalling HP SIM, and having HP SIM distribute the tasks.

I'm sure you could accomplish the first one based on what you already know, although I would suggest if you were thinking batch file you might want to create it in VBscript or Perl rather. Your next step, calling an executable and passing information to it, will be easier to call from one of those.

There are a number of SNMP command line utilities that you can find in a Google search. You will have to either craft a MIB to decode the trap or hijack a trap already within HP SIM that you're unlikely to need (if you don't have any NetWare servers there are many NWALARM MIB items that you could use).

Finally, you can steal ideas about executing your script by examining the demonstration TDEFs posted at http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=680986
Sean Murray_1
Regular Advisor

Re: help/suggestion from all scripters please

Thanks for the info and will look into these ideas and the link.
Yes, a batch file for the first portion was my first idea.
The other two areas I was kind of in the dark, espeically since i Have not modifed or created a MIB yet. Although it is something I would like to be familiar with, so this is a good way to start.
Will, post my success or troubles I enounter for ideas or help.
David Claypool
Honored Contributor

Re: help/suggestion from all scripters please

Bumped to be above moved questions...