<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AlertMail with powershell in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6962980#M7902</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can use following iloCmdlets to alert mail on ILO&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;Set-HPiLOGlobalSetting &amp;nbsp; :- For more details please check help of this cmdlet.&lt;/P&gt;&lt;P&gt;2) Get-HPiLOGlobalSetting :- to check the status of ALert mail&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set-HPiLOGlobalSetting -Server xxxxxx -Username xxxx -Password xxxx - AlertMail Enabled -AlertMailEmail xyz@domain.com -AlertMailSenderDomain &amp;nbsp;domian.com -AlertMailSMTPServer XXXXXxXXXX&lt;/P&gt;&lt;P&gt;Please execute the cmdlet as per above example.&lt;/P&gt;&lt;P&gt;Verify the same by executing Get-HPILOGlobalSetting.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 07:15:15 GMT</pubDate>
    <dc:creator>GZahidi</dc:creator>
    <dc:date>2017-05-05T07:15:15Z</dc:date>
    <item>
      <title>AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6955196#M7894</link>
      <description>&lt;P&gt;hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to setup emails alerts in hp ilo&lt;/P&gt;&lt;P&gt;i see below powershell cmdlets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-HPiLOPowerAlertThreshold&lt;BR /&gt;Set-HPiLOPowerAlertThreshold&lt;BR /&gt;Set-HPOAAlertmail&lt;BR /&gt;Test-HPOAAlertMail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried&amp;nbsp;&lt;SPAN&gt;Set-HPOAAlertmail , with no luck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OA - cmdlets if i remembers are only for blade hardware &amp;amp; not prolient hardware ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the man page also does not give clear picture as to how to set this up&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; get-help Set-HPOAAlertmail -full&lt;/P&gt;&lt;P&gt;NAME&lt;BR /&gt;Set-HPOAAlertmail&lt;/P&gt;&lt;P&gt;SYNOPSIS&lt;BR /&gt;Enables or disables the sending of alert emails when an event occurs and edits the Alertmail settings.&lt;/P&gt;&lt;P&gt;(C) Copyright 2014 Hewlett-Packard Development Company, L.P.&lt;/P&gt;&lt;P&gt;SYNTAX&lt;BR /&gt;Set-HPOAAlertmail [-Connection] &amp;lt;Renci.SshNet.SshClient object or list of Renci.SshNet.SshClient objects&amp;gt; [-State&lt;BR /&gt;&amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;] [-Email &amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;]&lt;BR /&gt;[-Domain &amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;] [-SMTPServer &amp;lt;String, PSObject, list of String and/or&lt;BR /&gt;PSObject&amp;gt;] [-OutputType &amp;lt;String&amp;gt;] [-Force] [&amp;lt;CommonParameters&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;The Set-HPOAAlertmail cmdlet enables or disables the sending of alert emails when an event occurs and edits the&lt;BR /&gt;Alertmail settings. You can only set the state to enable if the configuration has been set up.&lt;/P&gt;&lt;P&gt;A list of connection objects must be provided as a parameter. OA administrator or OA operator access is required&lt;BR /&gt;to execute this cmdlet.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PARAMETERS&lt;BR /&gt;-Connection &amp;lt;Renci.SshNet.SshClient object or list of Renci.SshNet.SshClient objects&amp;gt;&lt;BR /&gt;Connection object to an OA. This is a session object which identifies the Host to which the connection is&lt;BR /&gt;established. The Connection object is created by the Connect-HPOA command using the IP/Hostname and&lt;BR /&gt;accompanying Username and Password to log into the OA.&lt;/P&gt;&lt;P&gt;Required? true&lt;BR /&gt;Position? 0&lt;BR /&gt;Default value&lt;BR /&gt;Accept pipeline input? true (ByValue, ByPropertyName)&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;-State &amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;&lt;BR /&gt;Enables or disables alert mails when an event occurs. Possible values are Enable and Disable.&lt;/P&gt;&lt;P&gt;Required? false&lt;BR /&gt;Position? Named&lt;BR /&gt;Default value&lt;BR /&gt;Accept pipeline input? true (ByPropertyName)&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;-Email &amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;&lt;BR /&gt;Email address to which the alert mails are sent.&lt;/P&gt;&lt;P&gt;Required? false&lt;BR /&gt;Position? Named&lt;BR /&gt;Default value&lt;BR /&gt;Accept pipeline input? true (ByPropertyName)&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;-Domain &amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;&lt;BR /&gt;Identifies the DNS domain where the Onboard Administrator is located (for example, AB.com).&lt;/P&gt;&lt;P&gt;Required? false&lt;BR /&gt;Position? Named&lt;BR /&gt;Default value&lt;BR /&gt;Accept pipeline input? true (ByPropertyName)&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;-SMTPServer &amp;lt;String, PSObject, list of String and/or PSObject&amp;gt;&lt;BR /&gt;Identifies the mail server where the Onboard Administrator delivers its e-mail based events.&lt;/P&gt;&lt;P&gt;Required? false&lt;BR /&gt;Position? Named&lt;BR /&gt;Default value&lt;BR /&gt;Accept pipeline input? true (ByPropertyName)&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;-OutputType &amp;lt;String&amp;gt;&lt;BR /&gt;Specifies the type of required output. Possible value can be RawText or PSObject. Default value is PSObject.&lt;/P&gt;&lt;P&gt;Required? false&lt;BR /&gt;Position? Named&lt;BR /&gt;Default value PSObject&lt;BR /&gt;Accept pipeline input? false&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;-Force&lt;BR /&gt;Suppresses the prompt for a required parameter. Without this parameter, Set-HPOAAlertmail requires you to&lt;BR /&gt;provide the values of all required parameters.&lt;/P&gt;&lt;P&gt;Required? false&lt;BR /&gt;Position? Named&lt;BR /&gt;Default value&lt;BR /&gt;Accept pipeline input? false&lt;BR /&gt;Accept wildcard characters? false&lt;/P&gt;&lt;P&gt;&amp;lt;CommonParameters&amp;gt;&lt;BR /&gt;This cmdlet supports the common parameters: Verbose, Debug,&lt;BR /&gt;ErrorAction, ErrorVariable, WarningAction, WarningVariable,&lt;BR /&gt;OutBuffer, PipelineVariable, and OutVariable. For more information, see&lt;BR /&gt;about_CommonParameters (&lt;A href="http://go.microsoft.com/fwlink/?LinkID=113216" target="_blank"&gt;http://go.microsoft.com/fwlink/?LinkID=113216&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;INPUTS&lt;BR /&gt;PSObject OR array of PSObject OR String OR array of String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can pipe one connection object or a list of connection objects, or one PSObject or list of PSObjects&lt;BR /&gt;having the Connection object and other parameter values to be modified.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OUTPUTS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When the cmdlet does not execute correctly, output with the error message is produced. Otherwise, this cmdlet&lt;BR /&gt;does not generate any output.&lt;/P&gt;&lt;P&gt;Use Get-Member to get details of fields in returned objects.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTES&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;None&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-------------------------- EXAMPLE 1 --------------------------&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; Set-HPOAAlertmail -Connection $connection -State Enable -Email xxxx@hp.com -Domain China.com -SMTPServer&lt;BR /&gt;xx.xx.xx.xx&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this example the list of OA connection is passed as parameters along with State, Email, Domain, and SMTPServer.&lt;/P&gt;&lt;P&gt;-------------------------- EXAMPLE 2 --------------------------&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; $connection | Set-HPOAAlertmail -State Disable Email xxxx@hp.com -Domain China.com -SMTPServer xx.xx.xx.xx&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this example $connection is passed as parameter to the cmdlet through pipeline. It can be an Object or an&lt;BR /&gt;Object array returned from Connect-HPOA.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RELATED LINKS&lt;BR /&gt;&lt;A href="http://www.hp.com/go/powershell" target="_blank"&gt;http://www.hp.com/go/powershell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has any luck with this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2017 19:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6955196#M7894</guid>
      <dc:creator>checkmkuser</dc:creator>
      <dc:date>2017-04-09T19:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6957386#M7899</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you paste the cmdlet with input parameters you tried on your system so that i can check what you tried is correct or not.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 15:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6957386#M7899</guid>
      <dc:creator>GokulKS</dc:creator>
      <dc:date>2017-04-18T15:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6962980#M7902</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can use following iloCmdlets to alert mail on ILO&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;Set-HPiLOGlobalSetting &amp;nbsp; :- For more details please check help of this cmdlet.&lt;/P&gt;&lt;P&gt;2) Get-HPiLOGlobalSetting :- to check the status of ALert mail&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set-HPiLOGlobalSetting -Server xxxxxx -Username xxxx -Password xxxx - AlertMail Enabled -AlertMailEmail xyz@domain.com -AlertMailSenderDomain &amp;nbsp;domian.com -AlertMailSMTPServer XXXXXxXXXX&lt;/P&gt;&lt;P&gt;Please execute the cmdlet as per above example.&lt;/P&gt;&lt;P&gt;Verify the same by executing Get-HPILOGlobalSetting.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 07:15:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6962980#M7902</guid>
      <dc:creator>GZahidi</dc:creator>
      <dc:date>2017-05-05T07:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6975999#M7906</link>
      <description>&lt;P&gt;Reply originally by &lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-New-Member- lia-component-message-view-widget-author-username"&gt;&lt;A href="https://community.saas.hpe.com/t5/user/viewprofilepage/user-id/164510" target="_self"&gt;&lt;SPAN class=""&gt;Paddy H&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #000000; font-family: 'Metric Medium', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;I Had to do this as I kept getting an error&lt;/P&gt;&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #000000; font-family: 'Metric Medium', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;Set-HPiLOGlobalSetting -Server $server -Credential $ilocreds -AlertMail Enable -AlertMailEmail "$AlertMailEmail" -AlertMailSenderDomain "$domain" -AlertMailSMTPPort 25 -AlertMailSMTPServer "$emailServer"&lt;/P&gt;&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #000000; font-family: 'Metric Medium', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;All these params had to be included for the command to work&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 23:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6975999#M7906</guid>
      <dc:creator>Unlisted</dc:creator>
      <dc:date>2017-09-07T23:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6976387#M7916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes you need send all the required parameters here. You can confirm that by checking the help which are parameters are mandatory.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:59:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/6976387#M7916</guid>
      <dc:creator>GokulKS</dc:creator>
      <dc:date>2017-09-12T16:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7011921#M8110</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I tried the below command to configure Alert mail and is successful, but hpoaalertmail&amp;nbsp;command is missing the properties (attached the screenshot) of AlertSenderName, Alert Sender Domain, and Alert Sender E-mail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set-HPOAAlertmail -Connection $connection -State Enable -Email xxxx@hp.com -Domain China.com -SMTPServer&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;xx.xx.xx.xx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you guys please suggest how to configure these details in HP Blade Enclosure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 10:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7011921#M8110</guid>
      <dc:creator>Cool_Abdul</dc:creator>
      <dc:date>2018-07-16T10:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7011927#M8111</link>
      <description>&lt;P&gt;As of now Set-HPOAAlertMail does not provides the parameter to set the sender username and sender domain name.&lt;/P&gt;&lt;P&gt;If you want to configure it you can use&amp;nbsp; OA CLI command or OA web GUI.&lt;/P&gt;&lt;P&gt;Set-HPEOAAlrtMail with new parametrs will be vailable by August end.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7011927#M8111</guid>
      <dc:creator>GZahidi</dc:creator>
      <dc:date>2018-07-16T11:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7011928#M8112</link>
      <description>&lt;P&gt;Thanks for the reply Zahidi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think using OA CLI command we need the login to into every blade enclosure and set the Alert mail. We have around 30 blade Enclosure and it is going to take time to configure them with Alert mail.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7011928#M8112</guid>
      <dc:creator>Cool_Abdul</dc:creator>
      <dc:date>2018-07-16T11:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: AlertMail with powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7012238#M8114</link>
      <description>&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Yes you need to login on each enclosure and do the setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;As per your requirement you are looking for following settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;SenderDomain :- actually the -Domain parameter is for the sender domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;SenderName and SenderEmail :- This feature is not available through Set-HPOAAlertMail, This will be available&amp;nbsp; in upcoming release.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 07:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/alertmail-with-powershell/m-p/7012238#M8114</guid>
      <dc:creator>GZahidi</dc:creator>
      <dc:date>2018-07-18T07:17:49Z</dc:date>
    </item>
  </channel>
</rss>

