BMC Communities Banner

This Question is Answered

1 "helpful" answer available (5 pts)
10 Replies Last post: Dec 9, 2009 6:21 AM by Ganesh Suresh  
Ganesh Suresh HotShot 119 posts since
Jul 2, 2009
Currently Being Moderated

Oct 1, 2009 11:51 AM

Restaring the service using BEM

Hello All,

 

Am using Portal and BEM for infrastructure monitoring.

 

Problem is with the RSMs. Some times RSMs utilizes more memory and stops collecting the data from managed nodes.

 

If i restart the RSM services when it uses more memory. Again it will start collecting data with out any issue.

 

My idea is to automate this restarting the RSM service using BEM, by adding script.

 

Any suggestions on this...? will this work..? Any body tried this.. any scripts available with the rule written on BEM?

 

 

Thanks,

Ganesh

gotonz Enthusiast 53 posts since
Apr 24, 2008
Currently Being Moderated
1. Nov 4, 2009 7:33 AM in response to: Ganesh Suresh
Re: Restaring the service using BEM

Hi Ganesh,

 

You can create specific selector for the event of Memory Usage or available of the RSM, then create Remote action policy. in this case you need to create your own script inside BEM for controling service in your RSM machine.

I have .net script (.net 2.0) for controling service on windows using .net remoting method. but of course if you have BEM on windows machine.

 

Rgds,

Sony

gotonz Enthusiast 53 posts since
Apr 24, 2008
Currently Being Moderated
3. Nov 5, 2009 5:13 AM in response to: Ganesh Suresh
Re: Restaring the service using BEM

I'll give an update about the script on monday. because I left my disk at home.

 

Rgds,

gotonz Enthusiast 53 posts since
Apr 24, 2008
Currently Being Moderated
5. Nov 19, 2009 11:38 PM in response to: Ganesh Suresh
Re: Restaring the service using BEM

Hi Ganesh,

 

I don't have enough time to looking for the script at home.

I'll do it this weekend, and email you a.s.a.p

 

Thanks n regards,

Sony

gnagarka Enthusiast 64 posts since
Jan 14, 2008
Currently Being Moderated
6. Nov 20, 2009 9:57 AM in response to: gotonz
Re: Restaring the service using BEM

You can create a remote execution action in BEM/IAS and which internally fires a command on remote windows box using psexec.

So simple command like "net start <service name>" will work.

Then automate it using the remote execution policy.

 

Regards

GG

gotonz Enthusiast 53 posts since
Apr 24, 2008
Currently Being Moderated
7. Nov 25, 2009 12:19 PM in response to: gnagarka
Re: Restaring the service using BEM

I think, GG also give a good solution to solve this issue. and it will be more simple to use.

 

rgds,

Mahfooz ali Enthusiast 32 posts since
Dec 2, 2008
Currently Being Moderated
8. Dec 8, 2009 12:02 PM in response to: Ganesh Suresh
Re: Restaring the service using BEM

Hello Ganesh,

 

i can provide you with the script. let me know tomo when you in office

 

now dont forget to give brownie points

Mahfooz ali Enthusiast 32 posts since
Dec 2, 2008
Currently Being Moderated
9. Dec 9, 2009 6:21 AM in response to: Ganesh Suresh
Re: Restaring the service using BEM

under
C:\Program Files\BMC Software\Impact\server\etc\ash1\kb\bin.rule.mrl

 


execute Event_Status :EVENT ($EV)
when $EV.status: equals OPEN
{
execute ($EV, run ,[] ,NO) ;
}
when $EV.severity: equals WARNING
{
$EV.msg = abc ;
}

 

END

 


under w4 folder:

 

@echo %PATH% >> c:\A.TXT

 

@echo off

 

PsTools\psexec.exe \\inblr-sureshg -u eu\sureshg -p password -c C:\batch.bat

 

netstat -nob >> C:\abc.txt

Advertisement

More Like This

  • Retrieving data ...