Dell Open Manage Server Administrator (OMSA) alert setup - updated

| | Comments (1)

Further to this post on how to set up Dell Open Manage Server Administrator (OMSA) for alerts I have amended the configuration files required to correctly configure OMSA.
I discovered that Dell's documentation is incorrect and that running a batch file in an alert directly does not work - you need to call it with cmd.exe BUT you do not (normally) need to provide the path to cmd.exe - I have therefore changed the alert commands (shown in the extended entry).
I have also amended the dellalert.bat file as I also found that blat would not always work as there is no working blat profile when called from OMSA and there is no obvious way of setting a profile up. You could add the setup into dellalert.bat, trigger an alert and then remove the setup. Alternatively blat can have the mail server and the sender name provided in the dellalert.bat. This makes installation easier as all you need to do is copy the blat files to the windows directory. Again the updated dellalert.bat is in the extended entry.

Dellalert.bat should now contain the following lines.


@echo off
::Dell alert program
::v1.21
::Set variables below as appropriate
::needs blat downloaded (http://tinyurl.com/2qdxea) Put blat.exe in the system path
::No longer needs blat installed as configuration is set in the environment variables.

@echo on
setlocal
set log=c:\jobs\dell.txt
set pager=destinationpageraddress@company.com
set mail=destinationemailaddress@company.com
set company=Companyname
set server=%computername%
set mailserver=mailservername
set alertfrom=fromemailaddress@company.com

date /t >%log%
time /t >>%log%
echo %* >>%log%
if {%1}=={p} blat %log% -to %pager% -server %mailserver% -f %alertfrom% -subject "%company% %server% alert - %*"
if not {%1}=={} blat %log% -to %mail% -server %mailserver% -f %alertfrom% -subject "%company% %server% alert - %*"
endlocal

The commands to specify the call to dellalert.bat are below. Note that you need to specify cmd.exe and then the batch file. As the batch file has parameters with quotes, the quotes need to escaped with backslashes (as per the information below). I highly recommend you save these commands to a batch file called conf.bat and then run the batch file - a lot easier to manage, recall and implement on multiple servers. Each line starts with omconfig - you will probably find your web browser has wrapped the lines, but if you copy/paste the content into notepad your lines should be correct.


omconfig system alertaction event=batterywarn execappath="cmd /c \"c:\jobs\dellalert p battery probe warning\""
omconfig system alertaction event=batteryfail execappath="cmd /c \"c:\jobs\dellalert p battery probe failure\""
omconfig system alertaction event=fanwarn execappath="cmd /c \"c:\jobs\dellalert fan probe warning\""
omconfig system alertaction event=fanfail execappath="cmd /c \"c:\jobs\dellalert p fan probe failure\""
omconfig system alertaction event=hardwarelogwarn execappath="cmd /c \"c:\jobs\dellalert hardware log warning\""
omconfig system alertaction event=hardwarelogfull execappath="cmd /c \"c:\jobs\dellalert p hardware log failure\""
omconfig system alertaction event=intrusion execappath="cmd /c \"c:\jobs\dellalert chassis intrusion detected\""
omconfig system alertaction event=memprefail execappath="cmd /c \"c:\jobs\dellalert p memory prefailure\""
omconfig system alertaction event=memfail execappath="cmd /c \"c:\jobs\dellalert p memory failure\""
omconfig system alertaction event=systempowerwarn execappath="cmd /c \"c:\jobs\dellalert p system power warning\""
omconfig system alertaction event=systempowerfail execappath="cmd /c \"c:\jobs\dellalert p system power warning\""
omconfig system alertaction event=powersupply execappath="cmd /c \"c:\jobs\dellalert p psu critical\""
omconfig system alertaction event=powersupplywarn execappath="cmd /c \"c:\jobs\dellalert p psu warning\""
omconfig system alertaction event=processorwarn execappath="cmd /c \"c:\jobs\dellalert p processor warning\""
omconfig system alertaction event=processorfail execappath="cmd /c \"c:\jobs\dellalert p processor failure\""
omconfig system alertaction event=redundegrad execappath="cmd /c \"c:\jobs\dellalert p redundancy degraded\""
omconfig system alertaction event=redunlost execappath="cmd /c \"c:\jobs\dellalert p redundancy lost\""
omconfig system alertaction event=tempwarn execappath="cmd /c \"c:\jobs\dellalert p temp probe warning\""
omconfig system alertaction event=tempfail execappath="cmd /c \"c:\jobs\dellalert p temp probe failure\""
omconfig system alertaction event=voltwarn execappath="cmd /c \"c:\jobs\dellalert voltage probe warning\""
omconfig system alertaction event=voltfail execappath="cmd /c \"c:\jobs\dellalert p voltage probe failure\""
omconfig system alertaction event=watchdogasr execappath="cmd /c \"c:\jobs\dellalert Watchdog ASR\""
omconfig system alertaction event=storagesyswarn execappath="cmd /c \"c:\jobs\dellalert p storage system warning\""
omconfig system alertaction event=storagesysfail execappath="cmd /c \"c:\jobs\dellalert p storage system failure\""
omconfig system alertaction event=storagectrlwarn execappath="cmd /c \"c:\jobs\dellalert p storage controller warning\""
omconfig system alertaction event=storagectrlfail execappath="cmd /c \"c:\jobs\dellalert p storage controller failure\""
omconfig system alertaction event=pdiskwarn execappath="cmd /c \"c:\jobs\dellalert p physical disk warning\""
omconfig system alertaction event=pdiskfail execappath="cmd /c \"c:\jobs\dellalert p physical disk failure\""
omconfig system alertaction event=vdiskwarn execappath="cmd /c \"c:\jobs\dellalert p virtual disk warning\""
omconfig system alertaction event=vdiskfail execappath="cmd /c \"c:\jobs\dellalert p virtual disk failure\""
omconfig system alertaction event=enclosurewarn execappath="cmd /c \"c:\jobs\dellalert p enclosure warning\""
omconfig system alertaction event=enclosurefail execappath="cmd /c \"c:\jobs\dellalert p enclosure failure\""
omconfig system alertaction event=storagectrlbatterywarn execappath="cmd /c \"c:\jobs\dellalert p storage ctrl battery warning\""
omconfig system alertaction event=storagectrlbatteryfail execappath="cmd /c \"c:\jobs\dellalert p storage ctrl battery failure\""

So now the implementation steps are as follows.


  • Install OMSA on the server

  • Download blat, copy dellalert.bat and conf.bat from above.

  • Edit dellalert.bat to have your specific information. The variables are pretty obvious

  • Extract blat to your windows directory

  • Double click conf.bat to configure OMSA

  • Run Server administrator to check the settings have been implemented correctly (see previous post for examples)

  • Test - normally a safe way to do this is to unplug one of the redundant power supplies. I would recommend you also set up the alerts to display a popup for this event so you know the alert has been triggered. Then unplug the power. Wait about 20-30 seconds for the alert to popup on screen and then wait for your email/pager to activate.

Any updates will be posted to this blog and to the OMSA category - so check there if this page is old.

1 Comments

Thanks for this... I've been looking for exactly this solution. I really appreciate your helpful post. Next time you're in Seattle, I owe you a beer.

Categories

Pages

Powered by Movable Type 4.1

About this Entry

This page contains a single entry by published on November 7, 2008 4:01 PM.

I won a prize in the SMB Nation survey! was the previous entry in this blog.

SQL2008 installation failed to install with 0x84b30001 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.