<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tachytelic.net &#187; E-Mail</title>
	<atom:link href="http://www.tachytelic.net/tag/e-mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tachytelic.net</link>
	<description></description>
	<lastBuildDate>Sun, 15 Jan 2012 00:24:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dell Openmanage Server Administrator (OMSA) Email Alerts for Linux</title>
		<link>http://www.tachytelic.net/2010/10/dell-openmanage-server-administrator-omsa-email-alerts-for-linux/</link>
		<comments>http://www.tachytelic.net/2010/10/dell-openmanage-server-administrator-omsa-email-alerts-for-linux/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 22:53:05 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[Scripts & Utilities]]></category>
		<category><![CDATA[Technical Posts]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OMSA]]></category>
		<category><![CDATA[Shell Script]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=259</guid>
		<description><![CDATA[Earlier this year I posted a script which sends email alerts from Dell servers using the alerting system built into Dell Openmanage. However, that script will only work on Windows systems. A visitor to the blog called Steve has kindly posted some code on that post which enables the same functionality in Linux and I [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this year I <a href="http://www.tachytelic.net/2010/03/setting-up-e-mail-alerts-from-dell-openmanage-omsa/"><strong>posted a script</strong></a> which sends email alerts from Dell servers using the alerting system built into Dell Openmanage.  However, that script will only work on Windows systems.</p>
<p>A visitor to the blog called Steve has kindly posted some code on that post which enables the same functionality in Linux and I think it is worthy of its own post.</p>
<p>Before attempting to use the script you will need to download <a href="http://caspian.dotconf.net/menu/Software/SendEmail/#download"><strong>this perl script called sendEmail</strong></a> and that you have unix2dos installed.</p>
<p>The script accepts two arguments, which are setup or show.</p>
<p>&#8220;setup&#8221; will set the alerts action to the value of $alert_script which should be the full path to the script itself.<br />
&#8220;show&#8221; will print the current alert settings for the system to the screen.</p>
<p>The code of the script is as follows, or you can <strong><a href="http://www.tachytelic.net/wp-content/uploads/send_alert.txt">download from here</a></strong>:</p>
<div id="smallblockquote">
<code><br />
#!/usr/bin/perl<br />
########<br />
#<br />
# Alter these setting to suit your system<br />
$alert_script='/opt/asx_scripts/send_alert.pl';<br />
$argument = 0;<br />
$argument = $ARGV[0];<br />
$omreport = '/opt/dell/srvadmin/bin/omreport';<br />
$omconfig = '/opt/dell/srvadmin/bin/omconfig';<br />
$sendemail = '/opt/asx_scripts/sendEmail';<br />
$toname = 'name';<br />
$fromname = 'name';<br />
$domain = 'domain.com';<br />
$tmp_path = '/tmp';<br />
$mail_gateway = 'ip or name of mailgate';<br />
$unix2dos = '/usr/bin/unix2dos';<br />
#<br />
#</p>
<p>if("$argument" eq "setup"){<br />
        set_available_alerts();<br />
        exit;<br />
}<br />
if("$argument" eq "show"){<br />
        display_set_alerts();<br />
        exit;<br />
}<br />
if("$argument" eq "help"){<br />
        print "If you need some help read the code\n";<br />
        exit;<br />
}<br />
unless($argument){<br />
        $desc=`$omreport system alertlog 2>/dev/null | grep "Description" | head -1 | cut -f2-9 -d: | sed 's/ //'`;<br />
        chomp($desc);<br />
        $date=`$omreport system alertlog 2>/dev/null | grep "Date and Time" | head -1 | cut -f2-9 -d: | sed 's/ //g' | sed 's/://g'`;<br />
        chomp($date);<br />
        $host=`$omreport system summary 2>/dev/null | grep "Host Name" | head -1 | cut -f2-9 -d: | sed 's/ //'`;<br />
        chomp($host);<br />
        $tag=`$omreport system summary 2>/dev/null | grep "Chassis Service Tag" | head -1 | cut -f2-9 -d: | sed 's/ //'`;<br />
        chomp($tag);<br />
        $attach="$tmp_path/$date.log";<br />
        `$omreport system alertlog > "$attach"`;<br />
        if( -f "$unix2dos"){<br />
                `$unix2dos "$attach" 2>/dev/null`;<br />
        }<br />
        $send=`$sendemail -f "$fromname\@$domain" -t "$toname\@$domain" -u "System Error: $host SvcTag: $tag Time: $date" -m "$host SvcTag: $tag Error: $desc Time: $date" -a "$attach" -s "$mail_gateway"`;<br />
}else{<br />
        print "If you need some help read the code\n";<br />
        exit;<br />
}</p>
<p>sub set_available_alerts {<br />
        $alert_list = `$omconfig system alertaction 2>/dev/null | cut -f2 -d"<" | cut -f1 -d">"`;<br />
        chomp($alert_list);<br />
        chomp($alert_list);<br />
        @split_alert_list = split(/\|/, $alert_list);<br />
        foreach my $alert (@split_alert_list){<br />
                $set_result = `$omconfig system alertaction event=$alert execappath="$alert_script" 2>/dev/null | head -1`;<br />
                chomp($set_result);<br />
                if("$set_result" eq "Alert action(s) configured successfully."){<br />
                        print "Set Action:\t$alert\n";<br />
                }else{<br />
                        print "ERROR Set didnt return expected value ($set_result)\n";<br />
                }<br />
        }<br />
}<br />
sub display_set_alerts {<br />
        $currently_set = `$omreport system alertaction`;<br />
        print "$currently_set\n";<br />
}</p>
<p>exit;</p>
<p></code>
</div>
<p>A good way to test the script is to temporarily set the &#8220;Temperature Maximum&#8221; to something low like 12 to trigger an alert.    </p>
<p>Unfortunately all of my Linux machines are virtual machines so I cannot test or modify this script, so if anyone wants to give me SSH access to a server running OMSA, be my guest. <img src='http://www.tachytelic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Again, big thanks to Steve for posting this and I am sure it will be useful to lots of people.  This has also inspired me to make some improvements to my original Windows version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2010/10/dell-openmanage-server-administrator-omsa-email-alerts-for-linux/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>New-ExchangeCertificate Cmdlet Syntax Generator</title>
		<link>http://www.tachytelic.net/2010/03/new-exchangecertificate-cmdlet-syntax-generator/</link>
		<comments>http://www.tachytelic.net/2010/03/new-exchangecertificate-cmdlet-syntax-generator/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 22:32:52 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[Scripts & Utilities]]></category>
		<category><![CDATA[Technical Posts]]></category>
		<category><![CDATA[Cmdlet]]></category>
		<category><![CDATA[CSR]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=124</guid>
		<description><![CDATA[I am always forgetting the syntax for the New-ExchangeCertificate cmdlet when I need to do a new certificate request so I decided to write a little bit of javascript to build up the command automatically. Its much easier to copy and paste it from here than work with in it the Exchange 2007 Command Shell. [...]]]></description>
			<content:encoded><![CDATA[<p>	<script>
	function gencsr()
	{
	  var CommonName=GetTextBoxValue('CommonName');
	  var CommonNamePath='C:\\' + CommonName.replace(/\./g, '_') + '.csr';
	  var csrCommand='New-ExchangeCertificate -GenerateRequest -Path ' + CommonNamePath + ' -KeySize 2048 -SubjectName "c=' + GetTextBoxValue('Country') + ', s=' + GetTextBoxValue('County')
	  var csrCommand=csrCommand + ', l=' + GetTextBoxValue('City') + ', o=' + GetTextBoxValue('Organisation') + ', ou=' + GetTextBoxValue('Department') + ', cn=' + CommonName + '"';
	  if (GetTextBoxValue('SubjectAltNames')!=''){var csrCommand=csrCommand + " -DomainName " + GetTextBoxValue('SubjectAltNames')}
	  var csrCommand=csrCommand + ' -PrivateKeyExportable $True'	  
	  document.getElementById('csrrequest').value=csrCommand
	}
	function GetTextBoxValue(id)
	{
	   return document.getElementById(id).value;
	}
	</script></p>
<style>
	.csrlabel {width:175px;}
	.csrinput {width:300px;}
	</style>
<p>I am always forgetting the syntax for the New-ExchangeCertificate cmdlet when I need to do a new certificate request so I decided to write a little bit of javascript to build up the command automatically. Its much easier to copy and paste it from here than work with in it the Exchange 2007 Command Shell.</p>
<p>So just fill in the fields below and the command will be built automatically in the box below. Then just copy into command shell. If required, seperate the &#8220;Subject Alternative Names&#8221; with commas.</p>
<table>
<tr>
<td>
<p class="csrlabel">Common Name:</td>
<td>
<input type="text" id="CommonName" class="csrinput" onkeyup="gencsr();"></td>
</tr>
<tr>
<td>Subject Alternative Names:</td>
<td><textarea id="SubjectAltNames" rows="3" cols="20" class="csrinput" onkeyup="gencsr();"></textarea></td>
</tr>
<tr>
<td>Organisation:</td>
<td>
<input type="text" id="Organisation" class="csrinput" onkeyup="gencsr();"></td>
</tr>
<tr>
<td>Organisational Unit:</td>
<td>
<input type="text" id="Department" class="csrinput" onkeyup="gencsr();"></td>
</tr>
<tr>
<td>Town/City:</td>
<td>
<input type="text" id="City" class="csrinput" onkeyup="gencsr();"></td>
</tr>
<tr>
<td>County/State:</td>
<td>
<input type="text" id="County" class="csrinput" onkeyup="gencsr();"></td>
</tr>
<tr>
<td>Country:</td>
<td>
<select name="Country" id="Country" class="csrinput" onchange="gencsr();">
<option value="">Country&#8230;</option>
<option value="GB">United Kingdom</option>
<option value="US">United States of America</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AG">Angola</option>
<option value="AI">Anguilla</option>
<option value="AG">Antigua &amp; Barbuda</option>
<option value="AR">Argentina</option>
<option value="AA">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BL">Bonaire</option>
<option value="BA">Bosnia &amp; Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BR">Brazil</option>
<option value="BC">British Indian Ocean Ter</option>
<option value="BN">Brunei</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="IC">Canary Islands</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CD">Channel Islands</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CI">Christmas Island</option>
<option value="CS">Cocos Island</option>
<option value="CO">Colombia</option>
<option value="CC">Comoros</option>
<option value="CG">Congo</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CT">Cote D&#8217;Ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CB">Curacao</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="TM">East Timor</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FA">Falkland Islands</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="FS">French Southern Ter</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GB">Great Britain</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HW">Hawaii</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IS">Iceland</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IA">Iran</option>
<option value="IQ">Iraq</option>
<option value="IR">Ireland</option>
<option value="IM">Isle of Man</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="NK">Korea North</option>
<option value="KS">Korea South</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Laos</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macau</option>
<option value="MK">Macedonia</option>
<option value="MG">Madagascar</option>
<option value="MY">Malaysia</option>
<option value="MW">Malawi</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="ME">Mayotte</option>
<option value="MX">Mexico</option>
<option value="MI">Midway Islands</option>
<option value="MD">Moldova</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Nambia</option>
<option value="NU">Nauru</option>
<option value="NP">Nepal</option>
<option value="AN">Netherland Antilles</option>
<option value="NL">Netherlands (Holland, Europe)</option>
<option value="NV">Nevis</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NW">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau Island</option>
<option value="PS">Palestine</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PO">Pitcairn Island</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="ME">Republic of Montenegro</option>
<option value="RS">Republic of Serbia</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russia</option>
<option value="RW">Rwanda</option>
<option value="NT">St Barthelemy</option>
<option value="EU">St Eustatius</option>
<option value="HE">St Helena</option>
<option value="KN">St Kitts-Nevis</option>
<option value="LC">St Lucia</option>
<option value="MB">St Maarten</option>
<option value="PM">St Pierre &amp; Miquelon</option>
<option value="VC">St Vincent &amp; Grenadines</option>
<option value="SP">Saipan</option>
<option value="SO">Samoa</option>
<option value="AS">Samoa American</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome &amp; Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="OI">Somalia</option>
<option value="ZA">South Africa</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syria</option>
<option value="TA">Tahiti</option>
<option value="TW">Taiwan</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad &amp; Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TU">Turkmenistan</option>
<option value="TC">Turks &amp; Caicos Is</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="UY">Uruguay</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VS">Vatican City State</option>
<option value="VE">Venezuela</option>
<option value="VN">Vietnam</option>
<option value="VB">Virgin Islands (Brit)</option>
<option value="VA">Virgin Islands (USA)</option>
<option value="WK">Wake Island</option>
<option value="WF">Wallis &amp; Futana Is</option>
<option value="YE">Yemen</option>
<option value="ZR">Zaire</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select>
</td>
</tr>
</table>
<p>	CSR Command:<br />
	<textarea id="csrrequest" rows="10" style="width:475px"></textarea></p>
<p> I am thinking of duplicating this code and writing another post which will generate the commands for the import of the newly generated certificate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2010/03/new-exchangecertificate-cmdlet-syntax-generator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting up email alerts from Dell Openmanage (OMSA)</title>
		<link>http://www.tachytelic.net/2010/03/setting-up-e-mail-alerts-from-dell-openmanage-omsa/</link>
		<comments>http://www.tachytelic.net/2010/03/setting-up-e-mail-alerts-from-dell-openmanage-omsa/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 01:20:27 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Scripts & Utilities]]></category>
		<category><![CDATA[Technical Posts]]></category>
		<category><![CDATA[Automatic Notifcation]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[OMSA]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=104</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>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:</p>
<p><a href="http://www.tachytelic.net/wp-content/uploads/DellOMSAVariables.png"><img class="aligncenter size-full wp-image-107" title="Dell OMSA Script Variables" src="http://www.tachytelic.net/wp-content/uploads/DellOMSAVariables.png" alt="" width="477" height="403" /></a></p>
<p>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.</p>
<p>Below these you can to decide what events you want to be notified of, just comment out any that you aren&#8217;t interested in, e.g:<br />
<code><br />
AlertConfig(0)="powersupply|Power supply failure"<br />
AlertConfig(1)="powersupplywarn|Power supply warning"<br />
'AlertConfig(2)="tempwarn|Temperature warning"<br />
'AlertConfig(3)="tempfail|Temperature failure"<br />
</code></p>
<p>I have included every alert available in OMSA 6.2 on a PE T710, some of these alerts won&#8217;t be available on older versions or machines.</p>
<p>After you have configured the script, I suggest you test that the E-Mail options by running:</p>
<p><strong><code>cscript dellalert.vbs testemail</code></strong></p>
<p>You should receive a test e-mail, if not something isn&#8217;t working properly.</p>
<p>When you have successfully tested e-mail, configure OMSA to send alerts by running:</p>
<p><strong><code>cscript dellalert.vbs setup</code></strong></p>
<p>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 &#8220;omconfig&#8221; command takes a while. This step will not work if you do not have OMSA installed.</p>
<p>Once this is done you should be able to see that the script has been added into OMSA:</p>
<p><a href="http://www.tachytelic.net/wp-content/uploads/OMSASetting.png"><img class="aligncenter size-full wp-image-110" title="OMSA Alert Setting" src="http://www.tachytelic.net/wp-content/uploads/OMSASetting.png" alt="" width="645" height="110" /></a></p>
<p>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&#8217;t test. Hopefully you should get something like this in your Inbox:</p>
<p><a href="http://www.tachytelic.net/wp-content/uploads/OMSAEMail.png"><img class="aligncenter size-full wp-image-112" title="OMSA EMail Alert" src="http://www.tachytelic.net/wp-content/uploads/OMSAEMail.png" alt="" width="737" height="92" /></a></p>
<p><strong>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 :</strong></p>
<p><strong><a href="http://www.tachytelic.net/2011/09/dell-openmanage-server-administrator-e-mail-alerts-updated-powershell-script/">http://www.tachytelic.net/2011/09/dell-openmanage-server-administrator-e-mail-alerts-updated-powershell-script/</a></strong></p>
<p style="text-align: left;">Download both versions by following the PayPal link.</p>
<p style="text-align: center;"><form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_blank'><p>
GBP 2.95 / Download<br />
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
</p><input type="hidden" name="cmd" value="_xclick" /><input type='hidden' name='business' value='paul@murana.co.uk' /><input type='hidden' name='item_name' value='Dell Openmanage Server Administrator E-Mail Alerts - Powershell &amp; VBScript versions' /><input type='hidden' name='item_number' value='368' /><input type='hidden' name='amount' value='2.95' /><input type="hidden" name="no_shipping" value="1" /><input type="hidden" name="no_note" value="1" /><input type='hidden' name='currency_code' value='GBP' /><input type='hidden' name='notify_url' value='http://www.tachytelic.net/wp-content/plugins/easyfileshop/ipn.php' /></form></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2010/03/setting-up-e-mail-alerts-from-dell-openmanage-omsa/feed/</wfw:commentRss>
		<slash:comments>177</slash:comments>
		</item>
		<item>
		<title>Malware/Virus delivered through fake e-mail from UPS</title>
		<link>http://www.tachytelic.net/2008/07/malwarevirus-delivered-through-fake-e-mail-from-ups/</link>
		<comments>http://www.tachytelic.net/2008/07/malwarevirus-delivered-through-fake-e-mail-from-ups/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 09:00:46 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[Technical Posts]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virus]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=32</guid>
		<description><![CDATA[I have had several incidents this week of customer systems being infected by executables attached to e-mails appearing to be from UPS. Looking around the blogs, these e-mails seem to be having a higher than normal infection rate. It is time consuming to get rid of and makes the infected machines unusable and creates a [...]]]></description>
			<content:encoded><![CDATA[<p>I have had several incidents this week of customer systems being infected by executables attached to e-mails appearing to be from UPS.</p>
<p>Looking around the blogs, these e-mails seem to be having a higher than normal infection rate.  It is time consuming to get rid of and makes the infected machines unusable and creates a huge number of network connections.</p>
<p>The exact subject line of the email&#8217;s that have been received is: </p>
<p>UPS Tracking Number 5440074870</p>
<p>Attached to the e-mail is a zip file containing an executable which when executed installs &quot;XP Security Center&quot;. </p>
<p><a href="http://www.tachytelic.net/wp-content/xpsecurity1.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="331" alt="XPSecurity1" src="http://www.tachytelic.net/wp-content/xpsecurity1-thumb.jpg" width="421" border="0" /></a>&#160;</p>
<p>Much more information about the detail of the actual email can be found on the <a href="http://blog.trendmicro.com/ups-spam-trojan-courier-of-choice/">Trend Malware Blog</a>.&#160; The worrying thing about this e-mail is that both of the machines that it infected have their e-mail filtered by very well known external 3rd party mail systems, then have virus scanning on their own Exchange servers and finally on their desktop machines.&#160; At the moment this e-mail is still slipping through the net.</p>
<p>This virus does a LOT of clever things to prevent you getting rid of it.&#160; I noticed that when trying to run <a href="http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx">Autoruns</a> from Sysinternals that it just would not work.&#160; Renaming the autoruns executable allows it to run.&#160; It also stops you being able to install/download Windows Defender, disables system restore, removes the system tools program group amongst other things.</p>
<p>Not a very sophisticated solution but for now I have <a href="http://www.tachytelic.net/?p=4">edited the Exchange IMF custom weighting file</a> on customer systems to ensure that messages with &quot;UPS Tracking&quot; in the subject line are never delivered to the recipients and definitely classed as spam.&#160; </p>
<p>I had written a separate post on how to remove the virus manually, but at the moment I am still monitoring the infected machines to ensure they are completely clean.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2008/07/malwarevirus-delivered-through-fake-e-mail-from-ups/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sending backup tape reminder e-mails</title>
		<link>http://www.tachytelic.net/2007/10/sending-backup-tape-reminder-e-mails/</link>
		<comments>http://www.tachytelic.net/2007/10/sending-backup-tape-reminder-e-mails/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 19:47:40 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[Scripts & Utilities]]></category>
		<category><![CDATA[Technical Posts]]></category>
		<category><![CDATA[Automatic Notifcation]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=26</guid>
		<description><![CDATA[This is just a very quick script written in response to a question posted in one of the SBS yahoo groups. It sends an e-mail to a specified recipient reminding them to change the backup tape in a server. The SBS backup system does this automatically, so this is meant for use on SBS servers [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a very quick script written in response to a question posted in one of the SBS yahoo groups.</p>
<p>It sends an e-mail to a specified recipient reminding them to change the backup tape in a server.  The SBS backup system does this automatically, so this is meant for use on SBS servers using something other than the in-built SBS backup.</p>
<p>Installation is simply a case of extracting the contents of <a href="http://www.tachytelic.net/files/tapereminder.zip">this zip file</a> to a folder on your SBS server and then changing the variables at the top of the script to appropriate values for your environment.</p>
<p>Once done you can test interactively from a command line by running &#8220;cscript tapereminder.vbs&#8221; and once you are happy with the results setup a scheduled task to do the job daily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2007/10/sending-backup-tape-reminder-e-mails/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Windows update automatic e-mail notification</title>
		<link>http://www.tachytelic.net/2007/08/windows-update-automatic-e-mail-notification/</link>
		<comments>http://www.tachytelic.net/2007/08/windows-update-automatic-e-mail-notification/#comments</comments>
		<pubDate>Mon, 27 Aug 2007 22:29:17 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[Scripts & Utilities]]></category>
		<category><![CDATA[Technical Posts]]></category>
		<category><![CDATA[Automatic Notifcation]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Windows Automatic Updates]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=18</guid>
		<description><![CDATA[As the number of servers that I am responsible for managing increases, it becomes more difficult to ensure that they are all patched up to date. As most of the machines I manage are SBS boxes I thought that it would be nice to put something together which behaves in much the same way as [...]]]></description>
			<content:encoded><![CDATA[<p>As the number of servers that I am responsible for managing increases, it becomes more difficult to ensure that they are all patched up to date.
<p>As most of the machines I manage are SBS boxes I thought that it would be nice to put something together which behaves in much the same way as the SBS generated e-mail alerts.
<p>So, the result is a script which sends e-mail notifications to a specified address and gives details of which patches are available to be installed.&nbsp; The administrator can choose which of the four patch levels will trigger an e-mail alert (Critical, Important, Moderate &amp; Low).
<p>If there are no outstanding patches at the appropriate alert levels to be installed then the script will quit without sending an e-mail.
<p>The script is then run as a scheduled task every evening and I can quickly see if I have anything to action.&nbsp; The report includes links to the relevant KB articles and further information made available by Microsoft.
<p><a href="http://www.tachytelic.net/wp-content/autoupdate1.jpg" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="397" alt="AutoUpdate" src="http://www.tachytelic.net/wp-content/autoupdate-thumb1.jpg" width="640" border="0"></a> </p>
<p>The script only takes a couple of minutes to setup as there are only six settings at the top of the file&#8230;</p>
<p>Setting any of the following to 1 will generate trigger alerts for that particular update severity:</p>
<ul>
<li>AlertCritical
<li>AlertImportant
<li>AlertModerate&nbsp;
<li>AlertLow<br /> 
<li>EmailFrom &#8211; Specifies the e-mail address the report will&nbsp;be sent from.
<li>EmailTo &#8211; Specifies the e-mail address to send the reports to.</li>
</ul>
<p><a href="http://www.tachytelic.net/wp-content/variables1.jpg" atomicselection="true"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="88" alt="variables" src="http://www.tachytelic.net/wp-content/variables-thumb1.jpg" width="400" border="0"></a> </p>
<p>As shown above I have been running with AlertCritical/AlertImportant set to 1 and the other two set to 0.&nbsp; </p>
<p>So, if you want to receive email alerts all you need to do is <strong><a href="http://www.tachytelic.net/wp-content/winupdates.zip">download this Zip file</a></strong>, extract the contents to a folder on your server and then edit the variables at the top of the script.&nbsp; To perform a test run go into a command prompt and change directory to the location where you extracted the script and run:</p>
<p>cscript winupdates.vbs</p>
<p>With any luck you should get an e-mail soon after with the results.&nbsp; If you find that it is not generating you an e-mail as expected, one reason may be that there are no patches available to install.&nbsp; Bear in mind that not all items from Windows update will appear.&nbsp; For example &#8220;Internet Explorer 7&#8243; is not a patch and therefore will not be listed.</p>
<p>Running the script interactively as above will take a few moments&nbsp;while Windows Update(or WSUS&nbsp;if you have it installed) are checked for new updates.&nbsp;</p>
<p>Once you have completed a successful test you can go ahead and setup a scheduled task.&nbsp; Assuming an installation directory of &#8220;c:\scripts&#8221; the scheduled task command should look something like this:</p>
<p>C:\WINDOWS\system32\cscript.exe c:\scripts\winupdates.vbs</p>
<p>Also worth a mention that I have used this on standard(non-sbs) Windows servers and it works well.</p>
<p>Perhaps if enough people use this script, it will actually save as much time as it took to make it, but I doubt it. <img src='http://www.tachytelic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2007/08/windows-update-automatic-e-mail-notification/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Exchange 2003 SP2 IMF Keyword Manager</title>
		<link>http://www.tachytelic.net/2007/01/exchange-2003-v2-imf-keyword-manager/</link>
		<comments>http://www.tachytelic.net/2007/01/exchange-2003-v2-imf-keyword-manager/#comments</comments>
		<pubDate>Sun, 28 Jan 2007 19:20:49 +0000</pubDate>
		<dc:creator>Paulie</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Scripts & Utilities]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[SBS 2003]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://www.tachytelic.net/?p=4</guid>
		<description><![CDATA[Exchange 2003 sp2 comes with an updated intelligent message filter. One of the new features of the updated IMF is the ability to add a custom weighting file that gives administrators more control over incoming mail. I have used this file a few times on customers systems, usually to allow certain automated e-mails through the [...]]]></description>
			<content:encoded><![CDATA[<p>Exchange 2003 sp2 comes with an updated intelligent message filter. One of the new features of the updated IMF is the ability to add a custom weighting file that gives administrators more control over incoming mail.</p>
<p>I have used this file a few times on customers systems, usually to allow certain automated e-mails through the IMF which were being incorrectly identified as spam.</p>
<p>The problem is that Microsoft have not included a GUI to edit the MSExchange.UceContentFilter.xml file. ?Ǭ�So it must be generated by hand, and while this isn&#8217;t difficult, it is not very convenient and it is easy to make a mistake.</p>
<p>I was looking for an excuse to have a play with Visual Basic 2005 and so I have made a little utility to make creating and managing the MSExchange.UceContentFilter.xml a little easier.</p>
<p><img src="http://www.tachytelic.net/images/UCE.jpg" alt="Screenshot 1" /></p>
<p>Becomes&#8230;.</p>
<p><img src="http://www.tachytelic.net/images/ucexml.jpg" alt="Generated XML File" /></p>
<p>The utility can be downloaded from <a href="http://www.tachytelic.net/files/exchangeimf/setup.msi">here</a>.(Requires .net 2.0).</p>
<p>If you need more information on how to implement the custom weighting feature then see:<br />
<a href="http://download.microsoft.com/download/f/b/5/fb5c54af-fe5c-48e9-be97-f9e8207325ab/Ex_2003_SP2_RelNotes.htm"><br />
Microsoft Exchange Server 2003 Service Pack 2 Release Notes</a><br />
<a href="http://support.microsoft.com/kb/907747">Microsoft Exchange Server Intelligent Message Filter v2 Operations Guide</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tachytelic.net/2007/01/exchange-2003-v2-imf-keyword-manager/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

