Setting up email alerts from Dell Openmanage (OMSA)

Dell Openmanage Server Administrator is a really useful tool for configuring and monitoring server hardware but it lacks built in E-Mail alerting or notifications.

The software is capable of calling external programs or scripts when a server alert is triggered so I have written a simple script that provides E-Mail alert functionality.

There are a couple of scripts out there that do similar, but I wanted something self contained and capable of using SMTP Authentication with an external relay.

The other problem with OMSA is that you need to go into each individual alert to configure the settings which can be very time consuming, I wanted a way to add them all automatically as I am going to install the script on a number of servers.

Once you have downloaded and extracted the zip file you will need to edit the variables at the top of the script to make them appropriate for your environment:

The variables at the top define the e-mail settings and are hopefully self explanatory. If a remote SMTP server is not specified the local machine will be used to send the E-Mail.

Below these you can to decide what events you want to be notified of, just comment out any that you aren’t interested in, e.g:

AlertConfig(0)="powersupply|Power supply failure"
AlertConfig(1)="powersupplywarn|Power supply warning"
'AlertConfig(2)="tempwarn|Temperature warning"
'AlertConfig(3)="tempfail|Temperature failure"

I have included every alert available in OMSA 6.2 on a PE T710, some of these alerts won’t be available on older versions or machines.

After you have configured the script, I suggest you test that the E-Mail options by running:

cscript dellalert.vbs testemail

You should receive a test e-mail, if not something isn’t working properly.

When you have successfully tested e-mail, configure OMSA to send alerts by running:

cscript dellalert.vbs setup

You will then see the script go through and setup all the appropriate alerts as per your settings. This process can take a couple of minutes as the “omconfig” command takes a while. This step will not work if you do not have OMSA installed.

Once this is done you should be able to see that the script has been added into OMSA:

Now you need to generate some real alerts to test the script properly. How you do this will depend on the capabilities of your server, I was able to disconnect the redundant power supply and have an alert generated almost immediately. I think opening the case will also generate an event, but I am not sure as I didn’t test. Hopefully you should get something like this in your Inbox:

Update: There is a new version of this script which is written entirely in Powershell and will work with Windows Server Core etc.  Please visit :

Download both versions by following the PayPal link.

GBP 2.95 / Download

 Get these scripts for FREE!

 If you are an Office 365 user you can get this script for free by assigning me as your Office 365 Partner of Record.  If you would prefer to get the script for free please follow the instructions on this page:

Once you have made the change to your 365 subscription please send an email through this contact form and I will send you the scripts free of charge:

201 thoughts on “Setting up email alerts from Dell Openmanage (OMSA)

  1. Awesome tip Paulie, thanks! Can I bother you with a question? Can I add a 2nd email address to the EmailTo variable?

  2. Hi,

    This script is Awesome !!!! but is not working on Server Core (Hyper V Server r2)

    It’s say (french translation): C:\DellAlert.vbs(87, 3) Erreur d’exécution Microsoft VBScript: Un composant Acti
    veX ne peut pas créer un objet.: ‘CDO.Message’

    Thx 😉

  3. Done a few searches, reckon that it wont work in Server core because CDO isn’t included. Not sure of an easy way around this either. Part of the reason that I put the script together is so that it could work without any 3rd party components. But I think server core will need some external utility to make it work properly and then some reprogramming. I might have a look at it this weekend.

  4. Thanks, very nice work! We have had a need for this for quite some time. Quick question, I am receiving the emails when running the test but OMSA is not executing the script after an alert is generated.

    Like you, I pulled a power cable to trigger an alert for lost power redundancy but didn’t get the email. I checked OMSA and it is enabled to execute the application for both power critical and warning and has the following path to the app: C:\WINDOWS\system32\cscript.exe C:\Program Files (x86)\Dell\SysMgt\DellAlert\dellalert.vbs email 0

    Any ideas? Thanks in advance!

  5. Not sure, I would suggest running the same command OMSA is running to check if that works, from a command line just run the same command that you quoted:

    C:\WINDOWS\system32\cscript.exe C:\Program Files (x86)\Dell\SysMgt\DellAlert\dellalert.vbs email 0

    Could be due to the spaces in the path name. Will try to emulate the situation on my system….

    Try moving the script into a higher level directory like c:\dell\script, just as a test.

  6. You are correct about the space. It worked when I updated the app path with quotes.

    C:\WINDOWS\system32\cscript.exe “C:\Program Files (x86)\Dell\SysMgt\DellAlert\dellalert.vbs” email 0

    If I move the script to a path without spaces and re-run cscript dellalert.vbs setup will it update all the paths in OMSA?

    Again, thanks a lot for this script. This is great to have this feature without the cumbersome IT assistant.

  7. Yes it will automatically update all the paths if you run it with the “setup” argument again.

    I have just replciated the issue here. Am working on a fix right now which will hopefully make it work even with spaces in the pathname.

  8. Great, thanks for the help. I’m sure you could edit the script to have the setup process add the quotes automatically. Adding quotes will work even in the path doesn’t contain a space.

  9. Yes, I have just modified the script and retested it.

    It should now work even if the path has spaces. Try it out and let me know how you get on. I have just re-uploaded.

  10. Searched around all day for something like this. Best solution I’ve seen out there. Easy Setup– works fine on all my Dell Servers.


  11. Hi Paulie,

    This is a great little script! I just set it up and its working. I did a power supply test and it worked, however I received like 28 emails from the one alert. They all said “REDUNDANCY LOST” with the exception of one that said “POWER SUPPLY FAILURE” I was wondering if anyone knew why I received so many messages? They all came almost at the same exact time. I would only like a few to come through instead of a couple dozen.

    I was also wondering if there was a way to make the alerts a tad more descriptive?

    So silly the dell didn’t include email as an option, what were they thinking?!

  12. Just FYI, you have a type under the “memory pre-failure” it says “Nemory” instead of “Memory”

  13. Hi Chris,

    Glad you are finding the script useful. No idea why the alert is triggering so many times. But it must be OMSA doing it.

    You can make the alerts say anything you like really by editing the AlertConfig array after the pipe symbol. For example change:

    AlertConfig(1)=”powersupplywarn|Power supply warning”


    AlertConfig(1)=”powersupplywarn|Power supply warning – with a nice description”

    or were you referring to adding body text to the e-mail? I did think about that myself, but I couldn’t think of anything valuable to add to the body.

  14. Hi Paulie,

    Thanks! Not sure I would add a body of text but modding the the subject a tad would be useful. But just having the option to add a body is good to know.

  15. Hi Paulie, thanks for sharing this.

    I ran the script with the setup parameter and it finished ok. Now I don’t have access to OMSA, it’s down.

    Anyone with the same problem ? I can’t access via a browser and when I try to execute Server Administrator from the console nothing happens.

    Best regards,

  16. Weird, I have installed on about 20 servers and no problems. Loads of people have downloaded an no reported problems so far.

    Does the omconfig command work for you still?

  17. Hi Paulie, the omconfig command is available again after a server reboot… apparently it stops working after an alert is produced, very weird.

    Do you have any idea on how to “restart” omsa services without rebooting ?

    I checked omsa alert configuration and all is set correctly after running the script with the setup parameter.

    I tested the script manually and I get the alert email, the problem seems related to the moment when a real alert is generated.

    I’ll appreciate any help.

    thank you.

  18. No idea really, have you made sure you are using the latest version of OMSA? Sounds like one to put to Dell. Would be interested to hear what you come up with though.

  19. This seems to work if I run it manually, but anytime I try to initiate an alert by say, puling the power out of the supply, I do get a pop up on the server but no email. I run it manually and the email comes right out so the path is right. Also, it is set up correctly in OpenMange. An example would be C:\WINDOWS\system32\cscript.exe “C:\dellalert.vbs” email 0. If I run that, all is perfect, but if it is in OpenManage it is not automatically working. Any ideas??


  20. Maybe the account OMSA is running under does not have permission to access external network resources and therefore is unable to send the e-mail.

    I am clutching at straws though in honesty as every machine I have installed it on worked first time. You could add the following code:

    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.LogEvent 4, Subject

    Immediatley after:

    Sub SendAlert(Subject)

    This will add an event to the event log (application log) when the alert is triggered, then you will at least have an idea if it is running at all.

    Would be interested to hear how you get on.

  21. Paulie,

    Thanks for automating this for me. I was just wondering to a coworker this morning if we could setup alerts in OMSA to email when temperature spikes in server room. This was very timely and useful.

    IT Guy in TN.

  22. Great Solution! I am using something similar using blat on my 32 bit servers, but couldn’t port blat to Server 2008 R2. This works. Thanks.

  23. Just wanted to updated that I have rolled this out on all of our Dell servers and it is working very well. I have been getting notices from some of the different alerts telling me my firmware or drivers were out of date, which they are. That’s a nice tool to keep up on things. No weird issues like anyone else is having.

    Make sure you update to the latest Dell Open Manage software for best results. Cheers.

  24. Hi Paulie – I’m having an issue similar to Wes where if i launch the script manually it works perfectly but when i trigger an alert (for example chassis intrusion) i do not receive an email. I do receive the pop up message on the server. I added the extra code you suggested to Wes and i do see an event that shows up when the alert triggers but still no email. I’m running server 2003 standard R2 and exchange 2007. Any help would be appreciated. Thanks for providing the script.

  25. Strange, I’d like to get to the bottom of why that happens, if it is logging the event in the event log then it will certainly be trying (but obviously failing) to send the email.

    Are you using the local SMTP server or a remote one?
    Using SMTP auth or not?

  26. Thanks for the reply. I’m using a local SMTP server (Exchange 2007 on the same box as the OMSA). I’ve tried using authentication as well as leaving blank but the result is the same. Thanks again.

  27. I am at a bit of a loss as to what could be causing the problem.

    I suspect it is something to do with the account that OMSA is using to run the command not being able to create a network connections.

    I say this because if it works when you run it manually then permissions are a good candidate for being the cause of the problem.

  28. Danny,

    Are you able to run the script manually and get the email? If so then there should be no reason when a actual alert is triggered that you shouldn’t get a email. Unless of course something is up with the Open Manage. What’s strange is you say you get a pop up on the console? Because after I run Paulie’s script and I check the Alert Management it is not setup to do a console message and no console message pops up. What version of Open Manage are you using?

  29. Thanks for your replies guys. Regarding the console popup, i added that myself to test that the open manage is actually triggering the alerts, it is. I’m currently running the latest version of open manage available for my system (6.2.0). Chris, yes, if i run the script manually i do receive an email. My initial guess was that something was wrong with OMSA so I set up a different script i found which uses blat and tested the alerts, to my surprise it does work. So if OMSA is not the issue I guess maybe permissions…? I’m running the script as administrator and have tried it with authentication with no luck, strange that the other script works. Thanks for your help guys.

  30. Hi Paulie,
    Thanks for the awesome script. I have been looking for something like this for several months, and your script did the trick. Working perfectly on all of our servers……….except for 1. Our Exchange 2007 server. When I go through the command prompt and issue the command “cscript dellalert.vbs testemail” I get the test email without any problems. However, after I run the setup, and then test (by unplugging one of the power supplies) I never receive an email.
    Any thoughts?

    Thanks again 🙂

  31. Hi guys – I just wanted to thank Paul for all his help! With his guidance we figured out the problem and got the script to work. I really appreciate him taking time out of his day to troubleshoot the problem. Thanks again for your help and amazing script Paul!

  32. I second that Danny. Thanks again to Paul for all of the assistance he has provided in resolving this issue. Everything appears to be working perfectly now. Great job Paul! 🙂

  33. Danny/David,

    Appreciate your help and time getting to the bottom of this. Glad we found the solution, would have been bugging me if we didn’t get to the bottom of it.

  34. Thanks for your nice script. Saves me much trouble automating the email alert notification.

  35. Paulie/Danny/David,

    I was following the post you left, and it appears you figured out your problem but I didn’t see the resolution. I too am having the same issue. The script works fine manually, however, when I pull the power plug, an e-mail alert is never generated. Did you find out if it is a permissions issue or something to do with how OMSA is setup.

    I would appreciate any feedback.

  36. Hi Scott,

    Check out the last part of the post that says:

    “If you are using Exchange 2007…..”

    Solution is in that bit.

  37. Thanks for the quick reply. I guess I am at a loss then, because I am using Exchange 2003. If I run the script manually, using cscript dellalert.vbs email 0 or the option you provided to send a test e-mail, it works fine.

    However, if I attempt a failure by pulling the power plug, an alert is never generated. I am using version 6.20 of OpenManage, and it doesn’t appear to matter whether I use authentication for the mail server or not. I added the code you suggested for the event viewer, and I do see an entry in the log. I am not sure what else to check. Any ideas?

    Thanks for your help with this.

  38. By the way, I am also using Server 2008 (64bit) Not sure if that’s an issue.

  39. Do you get an alert on the console of the server, when you pull the power?

    (This open has to be selected in OMSA first)

  40. I went back into the alert and made sure it had both options selected. The first option to send a message to the console and the last option to execute an application.

    I pulled power and within 30 seconds an alert was displayed on the console, but I never received an email alert. This is really strange. It generates them without failure if I execute the script manually. The script is in the system32 folder, and I did verify that the path is correct.

    I am not sure what else to check..By the way, I appreciate your fast response and your assistance.

  41. Paulie,

    I was able to finally make it work. For whatever reason, it didn’t like having the script file in the C:\windows\system32 folder. I triple-checked having both the full path to cscript.exe as well as the location of the script itself, and couldn’t get it to work for nothing. I verified quotes and everything. Once I placed the file into a different folder, it worked fine. Not sure why, but it’s working now.

    Thanks again for your suggestions and creating this script file. It’s a shame they don’t support e-mail alerts as part of openmanage.

    Thanks again

  42. I downloaded your excellent script and tried using it to configure my OMSA but it failed to configure with the setup option. Upon investigation, I found an error with your nested quotes.

    You have:
    cmd=”omconfig system alertaction event=” & DellEvent & ” execappath=” & Chr(34) & WScript.FullName & ” ” & chr(34) & chr(34) & WScript.ScriptFullName & chr(34) & chr(34) & ” email ” & EventID & Chr(34)

    When executed looks like:
    omconfig system alertaction event=powersupply execappath=”C:\Windows\System32\cscript.exe “”C:\dell\script\DellAlert.vbs”” email 0″

    To escape quotes on a shell command, you must use the \ escape character.

    Modify line 105 to use “\” and it works like a dream.
    cmd=”omconfig system alertaction event=” & DellEvent & ” execappath=” & Chr(34) & WScript.FullName & ” ” & “\” & chr(34) & WScript.ScriptFullName & “\” & chr(34) & ” email ” & EventID & Chr(34)

    omconfig system alertaction event=powersupply execappath=”C:\Windows\System32\cscript.exe \”C:\dell\script\DellAlert.vbs\” email 0″

    Thanks for this wonderful script. You have saved me much time.

  43. Thank you, that is a neat improvment. I didn’t know how to escape characters on the Windows command line.

    I have updated the script, if you would retest it, I would appreciate it as I am not in a position to do so at the moment.

  44. Two things…

    Paulie, this is an awesome script, thank you so very much! Really appreciated.

    Chris/Paulie, it seems that anything under Openmanage 6 will spam emails instead of sending just one notification.
    Some of my older servers with Openmanage 5.4.0 will spam emails whereas all the 6.1 and 6.2 servers behave correctly and send just one notification email per event.

  45. UPDATE:

    Openmanage 5.5.0 fixes the spamming bug.
    On older Dell servers which are unable to be updated to Openmanage 6.x, you can use 5.5.0 and it works perfectly.

    Thanks again Paulie.

  46. What about the bigger question: Why will Dell not allow OMSA to send emails for alerts ? They allow it by clicking on the email button in the web page. This is a simple thing to do — why not just do it Dell ??

  47. Johnathan,

    My understanding is Dell designed OMSA to work with their IT Assistant (ITA) to perform the actual alerting. ITA would just collect/monitor the status of the server(s) and send out the alerts.

  48. Thanks for the tips !
    But i don’t see the url to download your .zip ?
    I’m stupid or i’m blind 😀
    And just another question. You need to have IT assistant installed ? or not ?

  49. First of all, many thanks for this script. Just got a quick question, works fine on internal mail but when performing a testmail using an external address I get the following error – 550 5.7.1 Unable to relay. I am using Exchange server 2007 on SBS 2008. Any pointers would be gratefully appreciated. Many thanks once again..

  50. Awesome script. Thank you so much for providing a solution that has been doing my head in.

    One thing, how can I get it to send to more than one email address?



  51. How can i use this script without authentication?

    I use a 3rd party email software called hmailserver, i have other vbs scripts that alert via email without auth but when i leave the fields blank it still says 530 auth needed???


  52. Hi, love the script and I’m just in testing phase. When I ran the test email script it worked perfectly. But I pulled a PS and I received 45 emails with a minute. Has anyone seen a multiple email issue for the same alert?

    Thanks, Scott

  53. Scott, yes, you need to update Openmanage to a newer version. The old OpenManage sends out a ton of emails. This has been fixed in OM 5.5 and 6.2.

  54. This is just what I need but unfortunately, it’s not working for me.

    I use both AuthSMTP and GoogleApps to no avail. Both are complaining about my sender address being rejected!? My sender address is however correct as well as the password – 100%! I used the same address and passwords in other application such as sending scanned docs as PDF from Ricoh copier/scanner to users via GoogleApps email. Since Richo (and this app does not support SSL required by GoogleApps) – I use Stunnel to interface with GoogleApps – Takes in plain text SMTP on port 25 then wrap it in SSL to GoogleApps.

    Why is this not working? Any insight? Thanks.

  55. It is kind of absurd that this capability isn’t included in OMSA, but it is what it is.

    I’m installing your script on a Server 2008 R2 system, and I can perform the test emails just fine. However, when I go to run /setup I get “c:\dellalert.vbs(107,2) (null): The system cannot find the file specified” I’m guessing this has something to do with pathing and the fact I’m running a 64-bit OS, so I’m hoping you could shed some light on this.

    Thanks for sharing your work!

  56. The script is trying to run omconfig at this point. It would be my guess that omconfig.exe is not in your systems PATH environment variable. You could edit the line to have the full path to the omconfig file. Normally omconfig is in the PATH environment variable though.

  57. Thanks Paulie.

    Turns out when I run ‘path’ from the default cmd prompt, the dell paths aren’t present. However, if I run the ‘path’ statement using the cmd.exe in the SysWOW64 directory, it is present.

    Ran setup using SysWOW64 CMD.exe and setup went fine.

    Did the secondary power supply test and received the emails.

    Thanks again for your fine work.

  58. Thanks for this script, very useful, you’re my hero today! There is a minor error in the zipped script in Sub SendAlert – the conditional reads “If RemoteSMTPUser “” Then…”, but the variable is just named “SMTPUser”, so authentication never happens. Fixed that and it’s working great for me.

  59. Thank you for this, I did change the variable names at one point and this must have got missed. This explains the problem that Lad Ola was having a few comments up. I have updated the script to fix this problem. Thank you once again for pointing this out.

  60. I’m trying to run this on a 2003 X64 server without any success. I’ve run the cscript dellalert.vbs testemail and it comes back with no errors but I don’t receive any email.

    I tested the smtp server settings and sender/recipient addresses by telneting to the smtp server on port 25 and manually sending an e-mail wich worked fine.

    Any ideas on what I need to do to resolve this. Our mail server is Exchange 2003.

  61. Have you tried looking into the Exchange 2003 message tracking log. Sounds as though it is being submitted without problems but not being delivered to you.

  62. That was the first thing I checked. I can see the message that I sent via telnet but no others.

  63. Hi Paulie,

    just want to say god work! Your script is doing a wunderfull job on my 4 Dell Servers.

    Thank you.


  64. Has anyone got something that will work on server core? I know one of the users at the top of the comments has the same issue and its because CDO is not supported in core.

    I’m running Hyper-V Server R2 for all my hosts and trying to set up email notification and it’s been a pain so far.

  65. Thanks so much Paulie. You saved me a ton of time writing this!

    And, to all you posters out there with Server Core, just replace the code inside of “Sub SendAlert” to something which uses blat (a free mailer program for Windows) instead of the cdo.dll (which is not available on SC).

  66. I ran the command cscript dellaler.vbs testemail

    i get an error, the transport failed to connect to the server?

  67. Jeff,

    Check to see if your antivirus program is blocking your email. Mine did the first time I ran it and I got that error.

    also, obviously, check the mailserver line, make sure its correct for your site.

  68. Hi Paulie,

    This script is excellent! I’ve just wasted 2 hours trying to find how to convert SNMP messages to email – and this is all I needed all along. Why dell have not build auto email into the open-manage application is beyond me.

    Thanks a million.


  69. Paulie,

    This was the frst script I have downloaded that worked as advertised with very easy setup.

    Thanks – working great on an R610 with Systems Management 6.3.0.


  70. I’d love to get this script working, but unfortunately I’m stuck with an error:

    DellAlert.vbs(90, 6) Microsoft VBScript runtime error: Error in loading DLL: ‘objMessage.Configuration.Fields’

    I’ve discovered this has something to do with CDO. I have MS Office XP Pro installed.

    Any ideas?

  71. Hey Paulie,

    Your script is awesome, but I do have one question. When I try to run cscript DellAlert.vbs setup in a command prompt, I get an error saying DellAlert.vbs(107, 2) (null): The system cannot find the file specified.

    Any idea? It works on half my servers and then doesn’t work on the other half because of this error.

    Any help would be awesome!

  72. It looks like it cant find the omconfig command. Are you sure openmanage is installed on those servers having the problem? If so, check the omconfig command is in the system PATH variable so that it can be easily found by the system.

  73. Explaination of environment variables is out of the scope of this post really and is covered in detail elsewhere.

    The script is trying to run the “omconfig” command and it is expecting your system to know where that program is. Normally the process of installing OMSA will update your system path environment variable to include the location of this command. In the case of the system that I am looking at right now, it has an entry like this:

    C:\Program Files\Dell\SysMgt\oma\bin

    If you go into a command prompt and just type in “omconfig” and find that the command is not found then this may be your problem.

    You can see how to change environment varibles here:

    Or you could change the script to have the full path to the omconfig command on your system, that would also solve the problem.

  74. I don’t understand how everyone uses this since it doesn’t support SSL? Even if you have a local Exchange server your still going to have SSL on the SMTP port.

  75. Hi,

    Please see below a perl version of script for linux users.

    more /opt/asx_scripts/
    ###### start #######
    $desc=`/opt/dell/srvadmin/bin/omreport system alertlog 2>/dev/null | grep “Description” | head -1 | cut -f2-9 -d: | sed ‘s/ //’`;
    $date=`/opt/dell/srvadmin/bin/omreport system alertlog 2>/dev/null | grep “Date and Time” | head -1 | cut -f2-9 -d: | sed ‘s/ //g’ | sed ‘s/://g’`;
    $host=`/opt/dell/srvadmin/bin/omreport system summary 2>/dev/null | grep “Host Name” | head -1 | cut -f2-9 -d: | sed ‘s/ //’`;
    $tag=`/opt/dell/srvadmin/bin/omreport system summary 2>/dev/null | grep “Chassis Service Tag” | head -1 | cut -f2-9 -d: | sed ‘s/ //’`;
    `/opt/dell/srvadmin/bin/omreport system alertlog > “$attach”`;
    $send=`/opt/asx_scripts/sendEmail -f “from@address” -t “to@address” -u “System Error: $host SvcTag: $tag Time: $date” -m “$host SvcTag: $tag Error: $desc Time: $date” -a “$a
    ttach” -s “mailgateway”`;
    ##### end ######

    you can configure the alerts by using following commands from console.

    omconfig system alertaction event=powersupply execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=powersupplywarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=tempwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=tempfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=fanwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=fanfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=voltwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=voltfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=intrusion execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=redundegrad execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=redunlost execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=memprefail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=memfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=hardwarelogwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=hardwarelogfull execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=processorwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=processorfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=watchdogasr execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=batterywarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=batteryfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=systempowerwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=systempowerfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=systempeakpower execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=removableflashmediapresent execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=removableflashmediaremoved execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=removableflashmediafail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=storagesyswarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=storagesysfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=storagectrlwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=storagectrlfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=pdiskwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=pdiskfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=vdiskwarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=vdiskfail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=enclosurewarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=enclosurefail execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=storagectrlbatterywarn execappath=”/opt/asx_scripts/”
    omconfig system alertaction event=storagectrlbatteryfail execappath=”/opt/asx_scripts/”



  76. Excellent. Easy to use, and worked at first try.
    -now to get it to work on all our (new and old) servers.

  77. hi!

    Just tryed your script but get an error using Gmail and Hotmail smtp servers.

    C:\dellalert.vbs(101, 3) CDO.Message.1: The transport failed to connect to the server.

    For hotmail :

    port 25 and 587 tryed
    username :

    no idea whats wrong ?

  78. Worked very well on my Dell PE2800 servers with Windows 2003. I wonder anyway to set up something similar on VMware box.


  79. Fantastic!! I’ve been thinking about writing something like this to make up for the MAJOR shortcoming on Dell’s part (what kind of modern monitoring service *doesn’t* allow email?!)

    You’ve just saved me a fair bit of work — thanks a ton!

  80. Hi Paulie,

    Thanks a lot for this post.
    Amazing that Dell does not include this functionnality in its software ! This script is very useful to achieve a good monitoring of dell servers.
    It works very well. Tested and adopted.

  81. A beautiful solution to a tedious problem! Thank you!

    To generalize it a bit, I also added:

    Set objNetwork = WScript.CreateObject(“WScript.Network”)

    And used:

    MailSubject = “Server ” & objNetwork.ComputerName & ” Alert – ”

    So I could use the same script for each server. Thanks, again.

  82. Hi,

    It doesn’t run on my 2008 R2 (x64) server. Disabled firewall, but i never receive the message. The smtp server is on local lan and no problem with it…

    Any idea?

  83. Ok problem is solved :

    The problem was that i’ve put the vbs in c:\windows\system32, if i move it to c:\ it works fine, there must be an acl or a security feature restricting vbs in system32 folder…

    Thanks for the script !

  84. Thank you!!! Very, very good and easy! It works fine and without problems on my Dell T710 with Windows 2008 SBS x64.

    Thanks! I’ll use it for all my servers.

  85. Great script! I’ve been looking for something like this for a while. I rolled it out to all my boxen, and it works great on all of them except one. I’m getting the following error when i run setup:

    C:\OpenManageEmailAlerts\DellAlert.vbs(107, 2) (null): The system cannot find the file specified.

    Any ideas?

  86. Hi,

    It cannot find the omconfig command required to let the script run. It sounds like you don’t have openmanage installed on the server with the problem, or that the PATH environment variable does not include the location to the omconfig command.


  87. Man! That’s what i call service! I double checked the path, and that was indeed the issue.

    Thanks again for the great script! You’re the man!

  88. This worked well for me.. Thanks for the help.

    I’m not crazy about the idea of SMTP authenication password being stored in a vbs script. I suppose if it’s stored in a secure admin folder it’s probably okay. c:\ won’t cover this. C:\Users\Administrator\dellalert.vbs seems okay though.

    Sure am surprised that Dell’s Open Manage doesn’t support email.

  89. Great job, can’t wait to do some tests but seems to be working correctly. Agreed storing SMTP pw in a script is not ideal. I avoided this by setting up an internal relay and just using IPsec to secure it. That way you just allow the server IP through and it does not require a pw but will not allow others to connect to your relay.

  90. Great script! But in Windows 2008 server core does not work. When I try to send email I get error message: ActiveX component can’t create object: CDO.Message
    with error code 800A01AD

  91. What an excellent script, thank you so much.

    Works perfectly, we are running Server 2008 Standard Edition 64 Bit.

    I can’t believe Dell doesn’t allow configurable email alerts through OMSA.

  92. Thank you SO MUCH. I agree that it’s absurd that Dell has not built in this functionality to OMSA.

    **A QUESTION** Is there a way to use an outgoing server that requires TLS or SSL? I would like to send through a gmail account from a clients location where no one knows the account info to use their ISP smtp server.

  93. Yes, it is possible and if you look through all the comments I think you will find that others have already done this.

    I am working on an updated version of this script which will offer than functionality in an easy to use format, plus some extra features.

  94. Hi, i have configured the script, just not sure how to test? do I type cscript dellalert.vbs testemail in to the run box?


  95. Rob,

    Not sure what problem you are having, but I am working on a newer version of the script with easier configuration and greater troubleshooting. Should be released this week….

    But you should be able to get this one working no problems.


  96. This script worked fine, but when I tested a failure, I recd’ approx 38 alerts for power failure. How can I receive just 1 alert for each failure ?

    Thanks in advance.

  97. Ok,
    Can I update it within Openmanage or do I have to uninstall the current version and install a newer version ? I see the most recent is 6.4, does it have email alerts built in ?

    Thanks in advance.

  98. Can i ask a dumb ass question?

    The execute application > absolute path, is that fine being a Windows path? Open Manage is installed on an vmware box for us, i get to it through a browser. The C:\applicationrahrahrahrah shouldn’t work as an absolute path should it?

  99. I think i just answered my own question… re read it and OMSA has to be installed on the machine its running from, which means no ESX 🙁

  100. What a great tool/script!
    Thank you very much!
    Is there anyway to adjust the time that Openmanage or the script sends the email alert? I set it on a slew of server and it works great but they start emailing me at 3:00 am and I cant find where to change it..
    Thanks Again!!

  101. For ESXi, free version, you need to install
    Download it from Dell and follow the instructions to install. Maybe there is a newer version by now.
    REMEMBER: the free version have SMTP disabled.
    You can not setup email alerts coming up from the host.
    Thank you VMWare!.

  102. There was a post from Abrahem (1/18/11) concerning CDO problems with the script when running on ServerCore. I have the same problem. Is there anything you can suggest to make it work? Thanks. BTW – excellent script – I have it running on about 10 servers.

  103. Great script, I did a tweak to the setup to allow omconfig to provide all the alert values to the script and set them up.

    But I’m running into the same problem as Abrahem and Davey on 2008 R2 x64 core systems, doesn’t want to create the CDO.Message object. I’ve tried installing the CDO objects, copying/registering CDOSYS.dll from a GUI build, running out of ideas.

  104. Sorry guys, I just dont have access to a machine running server core to try this out and find out what the issue is. Probably an easier method would be to change the script so that it does not use CDO anymore.

    If anyone wants to give me remote access to their server core machine, I will try and figure it out.

  105. I too kept getting errors of type…
    C:\dellalert.vbs(101, 3) CDO.Message.1: The transport failed to connect to the server.
    … regardless of which SMTP server (or combination of settings) I used.

    It turns out it was a Anti-Virus settings (thank you McAfee) that was blocking SMTP traffic to ‘Prevent Mass Mailing Worms’ from sending email.

    Added an exception and it’s working a treat!

  106. To use GMail, I simply added the following lines at the top:


    …and the following ‘if’ to the ‘SendAlert’ sub before the config update:

    ‘Use SSL for the connection (False or True)
    If SMTPUseSSL = “True” Then
    objMessage.Configuration.Fields.Item(“”) = True
    End If

  107. Anyone know of the steps in getting this to work on CentOS 5.6? Works beautifully on W2k3 Paulie, great job.

  108. @Douglas Morrison

    I’m running into the exact same problem and we run McAfee, what did you exclude specifically?


  109. I installed the script and unplugged one power cable to test the alerts, i got 168 emails “Dell Server Alert on XXX.XXX.XXX.XXX – Redundancy lost” and one mail “Dell Server Alert on XXX.XXX.XXX.XXX – Power supply failure”

    any idea why ? how i can config it to send only one mail


  110. you were right. i upgraded the open manage to 6.5.0 yesterday and it solved the multi-emails problem


  111. Hi,

    Thank you for this script en clear explanation of it.

    i would like to use the script on core systems and as far as i understand this is not possible. i’ll try to edit it so that it will work.

  112. I’ve got a solution for people who are using the core 2008 version of windows.

    you need 2 scripts.

    I use the powershell script to send the email because vbs can’t do because missing support for CDO.Message
    pay attention, if you just installed the Dell openmanage software, the path isn’t set. you have to log on and log off before the setup works!

    ‘ NAME: Dell Openmanage E-Mail Alerts

    ‘ AUTHOR: Paul Murana
    ‘ DATE : 11/03/2010

    ‘ The Script can be called with three different options:
    ‘ DellAlerts.vbs setup – Will automatically add alerts to OMSA
    ‘ DellAlerts.vbs testemail – Will send a test e-mail so you can check if mail config is correct.
    ‘ DellAlerts.vbs email X – Where X is a number that corresponds to a Dell alert, this is how OMSA will send its alert.

    Dim oShell, appCmd

    MailSubject = “Dell Server Alert on SERVERNAME – ”

    ‘Comment out any alerts that you are not interested in
    Dim AlertConfig(38)
    AlertConfig(0)=”powersupply|Power supply failure”
    AlertConfig(1)=”powersupplywarn|Power supply warning”
    AlertConfig(2)=”tempwarn|Temperature warning”
    AlertConfig(3)=”tempfail|Temperature failure”
    AlertConfig(4)=”fanwarn|Fan speed warning”
    AlertConfig(5)=”fanfail|Fan speed failure”
    AlertConfig(6)=”voltwarn|Voltage warning”
    AlertConfig(7)=”voltfail|Voltage failure”
    AlertConfig(8)=”intrusion|Chassis intrusion”
    AlertConfig(9)=”redundegrad|Redundancy degraded”
    AlertConfig(10)=”redunlost|Redundancy lost”
    AlertConfig(11)=”memprefail|Nemory pre-failure”
    AlertConfig(12)=”memfail|Memory failure”
    AlertConfig(13)=”hardwarelogwarn|Hardware log warning”
    AlertConfig(14)=”hardwarelogfull|Hardware log full”
    AlertConfig(15)=”processorwarn|Processor warning”
    AlertConfig(16)=”processorfail|Processor failure”
    AlertConfig(17)=”watchdogasr|Watchdog asr”
    AlertConfig(18)=”batterywarn|Battery warning”
    AlertConfig(19)=”batteryfail|Battery failure”
    AlertConfig(20)=”systempowerwarn|Power warning”
    AlertConfig(21)=”systempowerfail|Power failure”
    AlertConfig(22)=”systempeakpower|Peak power”
    AlertConfig(23)=”removableflashmediapresent|Removable flash media present”
    AlertConfig(24)=”removableflashmediaremoved|Removable flash media removed”
    AlertConfig(25)=”removableflashmediafail|Removable flash media failure”
    AlertConfig(26)=”storagesyswarn|Storage System warning”
    AlertConfig(27)=”storagesysfail|Storage System failure”
    AlertConfig(28)=”storagectrlwarn|Storage Controller warning”
    AlertConfig(29)=”storagectrlfail|Storage Controller failure”
    AlertConfig(30)=”pdiskwarn|Physical Disk warning”
    AlertConfig(31)=”pdiskfail|Physical Disk failure”
    AlertConfig(32)=”vdiskwarn|Virtual Disk warning”
    AlertConfig(33)=”vdiskfail|Virtual Disk failure”
    AlertConfig(34)=”enclosurewarn|Enclosure warning”
    AlertConfig(35)=”enclosurefail|Enclosure failure”
    AlertConfig(36)=”storagectrlbatterywarn|Storage Controller Battery warning”
    AlertConfig(37)=”storagectrlbatteryfail|Storage Controller Battery failure”

    If Args > 0 Then
    Action = trim(lcase(WScript.Arguments.Item(0)))
    Select Case Action
    Case “setup”
    For i = 0 To ubound(AlertConfig)
    If AlertConfig(i) “” then
    SetDellAlert AlertDetails(0), i
    End If
    Case “email”
    AlertDetails=Split(AlertConfig(WScript.Arguments.Item(1)), “|”)
    MailSubject = Mailsubject & AlertDetails(1)
    Case “testemail”
    MailSubject = Mailsubject & “Test Alert”
    End select
    End If

    Sub SendAlert
    Set oShell = CreateObject(“WScript.Shell”)
    appCmd = “powershell &'” & Replace(WScript.ScriptFullName, “.vbs”, “.ps1”) & “‘” & ” ‘” & (MailSubject) & “‘”
    oShell.Run appCmd, 4, false
    End Sub

    Sub SetDellAlert(DellEvent, EventID)
    cmd=”omconfig system alertaction event=” & DellEvent & ” execappath=” & Chr(34) & WScript.FullName & ” \” & chr(34) & WScript.ScriptFullName & “\” & chr(34) & ” email ” & EventID & Chr(34)
    Set WshShell = WScript.CreateObject(“WScript.Shell”) cmd,1,true
    End Sub

    param([string]$Param1 = 0)
    Write-Host $Param1

    $EmailFrom = “”
    $EmailTo = “”
    $EmailSubject = ($Param1)

    $SMTPServer = “”
    $SMTPAuthUsername = “”
    $SMTPAuthPassword = “na”

    function send_email {
    $mailmessage = New-Object
    $mailmessage.from = ($emailfrom)
    $mailmessage.Subject = $emailsubject
    $mailmessage.Body = $emailbody

    #$mailmessage.IsBodyHTML = $true
    $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 25)
    $SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“$SMTPAuthUsername”, “$SMTPAuthPassword”)


  113. Thank you so much for this and the person who included how to use SSL. I can’t believe the Open Manage does not have this capability built into this. This is a lifesaver.

  114. I just wanted to know if anyone has been able to test the functions? I have it working alongside with IT Assistant to do the email checks and email if any issues occur.

  115. I have converted the VBScript to pure Powershell. It can send the e-mails and can set up the alerts – but when I generate an alert, e.g. by pulling one of the powerleads out of a server that is set up by this, nothing happens. But when I execute a command line that is set up by my Powershell script, it works fine.

    An example of one of the command lines that is set up by my script is:

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\bin\domalerts.ps1 email 0

    The “email 0” are arguments to my Powershell script. This line e-mails me about a power supply failure, and my script also logs to a local text file.

    I am convinced that there is no problem with my script, because nothing appears in the local text file, either. I think DSM is just not executing the line at all.

    If I run omreport.exe system alertaction, I get:

    Execute Application : On

    as well as the line to execute.

    When I try to run the VisualBasic script, it does the setup all right, but won’t e-mail me – don’t know why and I don’t know enough about VBScript. The VBScript sets up similar stuff to Powershell, e.g.:

    Execute Application : On
    Absolute path to the application : C:\Windows\System32\WScript.exe “C:\bin\domalerts.vbs” email 0

    I really want to make this work as pure PowerShell. Anyone have any thoughts??


    PS – I also changed the action for the Powershell version to quote the PowerShell script path – no difference.

  116. Weird – I have also rewritten the script in pure powershell this week. The powershell version is so much nicer.

    My rewrite works OK so not sure why you are having a problem. I will be posting it very soon, maybe even today.

  117. Maximum Kudos and many thanks to the author of this script. I installed it on two servers:

    Dell PowerEdge 4600 running OMSA 5.5.0 Windows Server 2003 (32 bit)
    Dell PowerEdge R515 running OSMA 6.5.0 Windows Server 2008 R2 (64 Bit)

    I have tested both and they work perfectly. The script is elegant, transparent and hides no little nasties that will come back and bite you later.

    If I’d written this script, I’dbe well pleased with myself.


  118. I have installed this script on my server and it’s working great. It is possible to send alerts to multiple email addresses? What would the seperator be between addresses if there is one?

  119. Hi,

    I’ve never actually tried it, but I think that a semi-colon would work and that you should not have a problem sending to multiple addresses. Please try it and let me know.


  120. I’m not a Dell OpenManage expert, and I’m not speaking for Dell, but I’ll guess on an answer for why they didn’t include the e-mail functionality in OMSA.

    OMSA is the 1 to 1 server management software. It also works as an “agent” that talks to other systems management software, such as ITA, DMC, SCOM, etc.

    OMSA is installed on all servers. The central management point (let’s just say ITA as an example) is where you would discover and manage your servers from. It would be easier to manage e-mail alerts from one system than on all systems individually. If a change needs to be made in the alert type, or e-mail address that the alerts need to be sent to, you can make the change in one location (ITA) instead of changing each script.

    Just my 2 cents 🙂

  121. hello,

    i buy the script and use vbs version.
    All is ok (testemail, setup..) but when i tested alert by dos command c:\winodws\system32\cscript.exe “c:\windows\dellalert.vbs” email 10 p.ex the script work but no mail is received.

    i teste it on two server Dell One PE2900 Windows 2003 and other T610 Windows 2008.. it’s same.

    can you help me ?


  122. very strange….
    Since yesterday night i read all post but not find a solution.
    I add — Set WshShell = WScript.CreateObject(“WScript.Shell”)
    WshShell.LogEvent 4, Subject —
    just after Sub SendAlert(subject)
    I test the script with email 0 and 31 and check on windows event and i see the two Alerts but not mail received.
    If i comment — MailSubject = Mailsubject & AlertDetails(1) — in Case “email” and replace AlertDetails(1) by “test alert mail”, the mail is received…

  123. Dear Paulie,
    i buy the script and i actually test it on a PowerEdge 2850 server with OMSA 6.5 installed with VBS script. Now i placed a bad disk, to simulate a disk failure and i receive a lot of email !!! One every 5 minutes !!
    Last August you wrote “You just need to upgrade to a more recent version of open manage. That fixes the problem.”….. I have the LAST version of OMSA….WHY ? 🙂
    Thanks. Ciao

  124. Hi,

    Just bought and installed your script. Test email works very well. Unfortunately I am getting the following error when running the setup command. What could be wrong? We are running open manage in a virtualized environment and it works well.

    The term ‘omconfig’ is not recognized as the name of a cmdlet, function, s
    elling of the name, or if a path was included, verify that the path is cor
    At line:1 char:9
    + omconfig <<<< system alertaction event=powersupply execappath="C:\Windo
    .exe -executionpolicy unrestricted C:\scripts\POWERS~1\DELLAL~1.PS1 email
    + CategoryInfo : ObjectNotFound: (omconfig:String) [], Comman
    + FullyQualifiedErrorId : CommandNotFoundException

  125. It sounds like you don’t have Openmanage installed. Are you running the script on a Windows guest within a virtual environment or running OpenManage on the parent itself?

    If you are running Hyper-V then you will need to be running this script on the Hyper-V server. If you are running VMWare and trying to run this script on a Windows VM within, then it will not work.

    What is your setup?

  126. Thank you for getting back to me. We have ESXi 4.1 installed with the OpenManage VIB installed on the hyper visor itself. OpenManage works very well. Do you think your script will work with this set up?


  127. I would like to embed a link to OMSA in the body of the alert email. Can somebody share some insight on how to do that in powershell & also in VBScript? Thanks in advance!!

  128. If I want to uninstall the script from OMSA do I have to do anything besides delete the dellalert.vbs file?

  129. Received from Paul and what a fantastic script this is, worked as explained in the instructions on a Hyper-v setup. Thank you 🙂

  130. I have 2 questions regarding this script

    1. Can I setup the priority of the email to High?

    2. The Alerts only seem to run if a account is logged on or the workstation is locked, If no one is logged on the alerts dont run.

    Can you advise how I resolve these?

  131. Worked great on my T710 Microsoft server 2008 32bit.

    Couple minor points:

    The script I downloaded says commands are,
    DellAlerts.vbs setup
    DellAlerts.vbs testemail
    DellAlerts.vbs email

    It should say,
    the actual script file name has no “s”

    You can run the email test on any computer, (to be sure you have your email settings correct before testing on the server) it’s helpful to know.

    I also noticed on the vbs version I can comment out alerts. Where as on the Powershell version, there’s no mention about commenting out. I assume i could remove certain alerts from the script?

  132. I am a novice at scripting, but the script is working great. We installed version 7 of OMSA and there are some new alerts in v7 that I would like to add to the list. How do I add other Alerts to the list. I tried one, but failed.

  133. Just bought this…. i get this….

    C:\VBScript\DellAlert.vbs(108, 3) (null): The server rejected the sender address
    . The server response was: 451 5.7.3 Must issue a STARTTLS command first

    Any ideas ?

  134. After I read the instructions, setup was a piece of cake. And it works just the way it should. Thanks. This is a great time saver.

  135. I see in the top of the comments that if you get a “The system cannot find the file specified” it is due to the path to /bin/omconfig.exe not existing in the environmental area of Windows (C:\Program Files (x86)\Dell\SysMgt\oma\bin). I have two servers that get this error and do have the path setup…any idea what I am missing. It works on our other Dell servers.

  136. This script is hella slick! Helped me out for sure. Now I can sleep a little better at night knowing my arrays will page me if anything goes awry. Well worth the 5 bucks!

  137. Hi there,

    just paid for the script. Can you please email me the link or script itself?

    Thanks so much

  138. I just purchased and configured this script for our PowerEdge T110, running Windows Server 2008 R2, x64. Everything worked like a charm first try, thanks to the excellent explanation and follow up comments from others in this thread. Thanks for the script!

  139. Worked very well!
    Anyway to get one working on ESXi 5.1 environment?
    Which of course would be a separate purchase.

  140. Will this provide alerts if there is a problem with RAID Controller and Degraded or Failed Hard Drives? Also, OS is Server 2003 and OM is v7.3. Also, this is for a US based server. Any reason it would work or need to be configured differently?

  141. Yes, it reports RAID controller and drive issues, that was the primary reason that I made it. I don’t see any reason why the server being US based should make any difference.

  142. Will this work on a PowerEdge T110 II running OMSA 7.4.0? I used this script several years ago on an older T110 & it was awesome!

  143. I have not tried it as I have never used a T110 before, but I can’t see any reason why it would not work. Things like Power Supply monitoring will not work though, as the T110 has only one power supply, so if the power supply dies the server will not be able to send the alert!

  144. Hi,

    When trying to run the .vbs file with the setup command i get the following error on one of my servers:

    C:\OpenManage\alerts\dellalert.vbs(111, 2) (null): The system cannot find the file specified.

    I checked that the correct path to omconfig exists, which it does. Any help would be greatly appreciated.

  145. When you run /setup and get “c:\dellalert.vbs(107,2) (null):

    In some case I have seen a Environmental Variable issue that has caused issues, even when the Path entries in Environmental Variables appear to be present.

    If you look at the Environmental Variables–> System Variables–> Path

    Ensure there are no semicolons at the start of the list.. the first entry should be C:\Windows\system32 and NOT ;;C:\Windows\System32 (or similar).

    If you click on the Edit button when the semicolons are present, a blank Edit System Environmantals window appears.

    Remove any semicolons using the Edit Text option in this window: save until out of the Environmental Variable and system properties windows.

    Try the /setup again

Leave a Reply

Your email address will not be published. Required fields are marked *