<?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; VBScript</title>
	<atom:link href="http://www.tachytelic.net/tag/vbscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tachytelic.net</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 10:53:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 couple of [...]]]></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>Install the script by extracting the DellAlert.Vbs script file from this zip file:</p>
<p><strong><a href="http://www.tachytelic.net/wp-content/uploads/DellAlert.zip">Dell OMSA E-Mail Alerts</a></strong></p>
<p>Once you have 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>I have installed this on a few servers and it seems to be working well. I will update the script with any tweaks that I add as I roll it out further. Hope this is useful to someone else.</p>
<p><strong>If you are using Exchange 2007&#8230;..</strong></p>
<p>This script will not work properly until you register the 32-Bit version of cdo.dll.  Follow the instructions for doing this here:</p>
<p><a href="http://blogs.msdn.com/mstehle/archive/2007/12/11/fyi-after-installing-exchange-2007-sp1-32-bit-cdosys-might-not-be-registered.aspx">http://blogs.msdn.com/mstehle/archive/2007/12/11/fyi-after-installing-exchange-2007-sp1-32-bit-cdosys-might-not-be-registered.aspx</a></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>85</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 the [...]]]></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 download this <a href="http://www.tachytelic.net/wp-content/winupdates.zip">Zip file</a>, 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>14</slash:comments>
		</item>
	</channel>
</rss>
