how to run command line, if it generates an alert
Hi everybody,
I have a SCOM R2, but I need to send SCOM alerts to hp openview server, running this command
trapgen -d 10.255.255.13 -v 1.3.6.1.4.1.1824.1.0.0.1 STRING
"Menssage1" to foward the alert,
but I don't know how to do it, also I need to change
the word "Message1" for the variable corresponding to
the alert message.
Can Anybody help me????
September 10th, 2012 2:44pm
Sure, look into Notification Channels in SCOM. Create a command notification channel. In the channel definition you can pass the string1 as a parameter/variable to the script. Create a simple vb script which accepts this variable and builds the command
you want to execute and next execute that command.
Create a subscriber without any address which uses this channel. Create a subscrpition for which alerts you want to send to HP OVO and let it use the custom command channel to send "messages" to the subscriber you created. And it will start sending.Bob Cornelissen - BICTT (My Blog about SCOM) - MVP 2012 and Microsoft Community Contributor 2011 Recipient
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2012 2:59pm
Sure, look into Notification Channels in SCOM. Create a command notification channel. In the channel definition you can pass the string1 as a parameter/variable to the script. Create a simple vb script which accepts this variable and builds the command
you want to execute and next execute that command.
Create a subscriber without any address which uses this channel. Create a subscrpition for which alerts you want to send to HP OVO and let it use the custom command channel to send "messages" to the subscriber you created. And it will start sending.Bob Cornelissen - BICTT (My Blog about SCOM) - MVP 2012 and Microsoft Community Contributor 2011 Recipient
September 10th, 2012 3:05pm
Create a recovery task based on the severity of the alert generated. And recovery task will contain your command or script.
http://blogs.technet.com/b/kevinholman/archive/2008/03/26/using-a-recovery-in-opsmgr-basic.aspx
Regards
Chandan
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2012 9:32pm
Create a recovery task based on the severity of the alert generated. And recovery task will contain your command or script.
http://blogs.technet.com/b/kevinholman/archive/2008/03/26/using-a-recovery-in-opsmgr-basic.aspx
Regards
Chandan
September 10th, 2012 9:38pm
Just to add a couple of walktthroughs that support the option that Bob gives:
http://blogs.msdn.com/b/steverac/archive/2010/08/17/updating-custom-alert-fields-using-subscriptions-and-powershell.aspx
- you could run a script that fires trapgen and passes the Alert Description as a parameter.
Cheers
GrahamRegards Graham New System Center 2012 Blog! -
http://www.systemcentersolutions.co.uk
View OpsMgr tips and tricks at
http://systemcentersolutions.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
September 11th, 2012 10:14am
Just to add a couple of walktthroughs that support the option that Bob gives:
http://blogs.msdn.com/b/steverac/archive/2010/08/17/updating-custom-alert-fields-using-subscriptions-and-powershell.aspx
- you could run a script that fires trapgen and passes the Alert Description as a parameter.
Cheers
GrahamRegards Graham New System Center 2012 Blog! -
http://www.systemcentersolutions.co.uk
View OpsMgr tips and tricks at
http://systemcentersolutions.wordpress.com/
September 11th, 2012 10:16am