• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Tachytelic.net

  • Sco Openserver
    • Sco Unix Support
    • SCO Openserver Installation ISOs
    • SCO Openserver Binaries
    • Add a Hard Drive to an Openserver 5 Virtual Machine
    • Install SCO Vision SQL-Retriever ODBC Driver on Windows 10
    • License Expired on Virtual SCO Openserver Installation
    • How to reset the root password on SCO Openserver 5
  • Scripting
    • PowerShell
      • Add leading zeros
      • Check if a File Exists
      • Grep with Powershell
      • Create Environment Variables
      • Test for open Ports
      • Append to a Text File
    • VBScript
      • Check if a File Exists
      • lpad and rpad functions
      • Windows Update E-Mail Notification
  • Office 365
    • Connect to Office 365 with PowerShell
    • Add or remove an email alias using Powershell
    • Change Primary email address of Active Directory user
    • How to hide an AD user from the Global Address List
    • How to hide mail contacts from the Global Address List
    • Change the primary email address for an account with PowerShell
    • Change Primary email address of an AD User
    • Grant a single user access to access to all calendars
    • Forward email to an external address using Powershell
    • Convert shared mailbox to user mailbox with Powershell
  • Get in Touch
  • About Me
    • Privacy Policy

Powershell

Email alerts from Dell Open Manage Server Administrator (OMSA)

September 8, 2011 by Paulie 152 Comments

Dell OpenManage Server Administrator can execute an application when a fault is detected in the hardware, unfortunately there is no built in e-mail support, so this PowerShell can send the email for you without the need for any additional software.

The script will:

  • Send an email to a specified recipient.
  • Include information about the system from “omreport chasis info”.
  • Attach the System Alert Log to the email.
Example e-mail alert from Dell OpenManage

How to install the alert script:

  1. Download the Dell Alert Script
  2. Extract it to a folder on your system, e.g. “C:\Script”
  3. Edit the variables at the top of the script to configure your email setup
Image showing variables within PowerShell script used to send email alerts from Dell OpenManage Server Administrator
If you do not specify an SMTP Server, it will default to using the local machine.

Test Email functionality

Now that you have the script and have configured your SMTP options do the following:

  1. Open PowerShell.
  2. Run the script with the “testemail” parameter e.g:
    c:\script\OMSA_Alert.ps1 testemail
  3. Check your email, if everything worked you should received a test alert.

Setup email alerts from Dell OpenManage

Once the email function has been tested you can go ahead and setup the script to run from Dell OpenManage:

  1. Open PowerShell
  2. Run the script with the “Setup” Parameter e.g:
    c:\script\OMSA_Alert.ps1 setup
    Image showing setup of Dell OpenManage email alert script
  3. The script will generate batch files in the directory where you run the script. These batch files are what will be executed by OMSA.

Generate a test alert from your server

Here are some methods to test the script with a real alert:

  • Open the server case, this will generate a chassis intrusion alert.
  • If you have a dual power supply system, pull the power to one of the supplies and the server should report the power loss.
  • Trigger a temperature alert:
    • In OMSA go to:
      System -> Main System Chassis -> Temperatures
    • Set the Maximum Warning Threshold a couple of degrees lower than the current reading.
Image of Temperature Probe on a Dell Server within OpenManage 9.3
Download Button

This is an update to a script I originally wrote in 2010 in VBScript. I then wrote a new version in Powershell. I’ve now updated it again to provide compatibility with Dell OpenManage 9.3. The omconfig command produced the error:

Error! No application exists in the specified path.

The original VBScript version is included in the download, and the updated PowerShell version.

Filed Under: Scripts & Utilities Tagged With: Dell PowerEdge, Powershell

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 6
  • Go to page 7
  • Go to page 8

Primary Sidebar

Link to my LinkedIn Profile

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 107 other subscribers.

Go to mobile version