All posts by bsdman

Currently working as an IT Manager. Worked for an OIT company as a Network Engineer in 2011. Worked for a Medical IT company as the Network Administrator 2009-2011. Worked as the Senior Systems Administrator at a computer reseller from 2005-2009. Worked as a Computer Consultant for several small companies from 2007-2009. Worked as a Computer Technician at a computer reseller from 2002-2004.

Embed Flash, TL Edition

So I needed to embed some flash files for the boss, but my old script was no longer working for IE8/9 (didn’t test on 7, since who uses that anyway?) Firefox and Chrome were working just fine. Argh.

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='300' height='300' id='player1' name='player1'>
   <param name='movie' value='player.swf'>
   <param name='allowfullscreen' value='true'>
   <param name='allowscriptaccess' value='always'>
   <param name='flashvars' value='file=playlist.xml'>
   <embed id='player1'
          name='player1'
          src='player.swf'
          width='300'
          height='300'
          allowscriptaccess='always'
          allowfullscreen='true'
          flashvars="file=playlist.xml"
   />
</object>

So I went ahead and found that code. I ended up using WinFF to convert an m4v file to a web-based flv, then I used the jwplayer as my swf, and file=filename.flv as my flv.

User Quota FreeNAS

I recently installed FreeNAS 8.x release and wanted to setup a per user quota. There is no way to set this up using the GUI front end – you can only setup a mount point quota at this time.

To setup a per user quota using the CLI, just login as root using your admin password, then issue the following commands:

zfs set userquota@USERNAME=10g SHARENAME
So in my case I had a /mnt/files filesystem, so I used:
zfs set userquota@thelibrarie=10g files

You can list the user quota
zfs list -o userquota@USERNAME SHARENAME

You can remove the user quota
zfs set userquota@USERNAME=none SHARENAME

View the current Input/Output statistics
zpool iostatzpool upgrade -v

View the current compression for all pools
zfs list -o compression

ESXi 4.1 Dell OpenManage

I had Nagios telling me there was a memory issue on the server, but not in which slot the bad ram was located. OM to the rescue?

Download oem-dell-openmanage-esxi_6.3.0-A00.zip (I’m running on a Dell PowerEdge 2850 Server)
Use the VMWare VSphere CLI to run the following:

vihostupdate.pl –server SERVERNAME_OR_IP -i -b “C:\oem-dell-openmanage-esxi_6.3.0-A00.zip”
Enter the username (root)
Enter the Password (password)

Then, using the Dell Web Server administrator (OM-SrvAdmin-Dell-Web-WIN-6.3.0-2075_A00.20.exe), connect to your virtual machine and IGNORE CERTIFICATE ERRORS!

EDNS Server 2008 ASA

I had a customer who couldn’t resolve internal and external DNS records from his 2008 server. Turns out it was trying to use Extended DNS (EDNS).

Here’s the quick and dirty fix:
dnscmd /config /EnableEDNSProbes 0

Run that on your 2008 server and away with the problem!

ESXi Monitoring via Nagios

My current infrastructure budget does not allow for vSphere Server, ESXi 4.1 Enterprise, or OpsView Enterprise. They all have one thing in common: they’re more than $0. OK, I know OpsView comes in a community flavor, but still. ESXi hypervisor 4.1 is also free.

So originally I was going to just run SNMP monitoring through Nagios, but I found out that I needed to enable ESXi’s SNMP before I could attempt that. Long story short, ESXi’s SNMP is not worth monitoring. CIM, the supported protocol from VMWare, apparently is the route I needed to go.

So I found this site:
http://www.matthewjwhite.co.uk/blog/2010/02/09/monitoring-esxi-server-health-using-nagiosopsview/
Which gave me the direction I needed.

Log onto your Nagios Server:
apt-get install python-pywbem
cd /usr/local/nagios/libexec
wget http://communities.vmware.com/servlet/JiveServlet/downloadBody/7170-102-7-4233/check_esx_wbem.py
wget http://it.thelibrarie.com/utilities/check_esxi_hardware.py
chmod +x check_esxi_hardware.py

Check by running the following:
./check_esxi_hardware.py IPOFYOURESXISERVER root password VENDOR
You should receive a simple “OK” to verify everything is working

define command{
command_name check_esxi_hardware
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS -U $ARG1$ -P $ARG2$ -V $ARG3$
}

And the check as defined for one of my ESXi servers

define service{
use generic-service
host_name esx01
service_description ESXi Hardware Monitor
check_command check_esxi_hardware!readonlyuser!somepassword!dell
}

Verify it’s working after the check, you should have the green bar saying OK.

I had to edit a little bit as the previous script did not function through nagios although it did work via the command line. Nagios merely reported everything as OK even though I had errors reported on the CLI.

Recover Deleted Emails Shared Mailbox

Everyone knows – or should know – that you can click on the recycle bin in outlook and then recover deleted emails. Unfortunately if you have a shared mailbox, Outlook does not allow (by default) the recovery of deleted messages. Welcome registry edit!

http://go.microsoft.com/?linkid=9643538
That’ll fix it for you.

Or you can add it manually:
Start Registry Editor.
Locate and then click the following key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\Options
On the Edit menu, click Add Value, and then add the following registry value:
Value name: DumpsterAlwaysOn
Data type: DWORD
Value data: 1

Looks like it’s in the HKLM\SOFTWARE\Wow6432Node\Microsoft\Exchange\Client\Options area now.
If options does not exist, just create a new key, then create the dword below
“DumpsterAlwaysOn”=dword:00000001

Software I Use – December 2011 Edition

Dual boot Windows 7 x64 Pro/Ent/Ultimate with Ubuntu 10.04.3LTS x64
Inssider – Great for finding SSIDs, models of access points, security information, and channels of wireless networks
Angry IP Scanner – My favorite IP scanning utility is great for finding open web servers, DNS servers, or anything with RDP open
Putty – Terminal emulation software
FireFox – I still enjoy this more than Chrome, but they both have their place. Include Adblock Plus, Web Developer, NoScript, and GreaseMonkey with Youtube Auto Buffer and experts-Exchange
Terminals – My favorite RDP saving utility
CDBurnerXP – Burns ISOs, music, data
ISORecorder – Creates ISOs from folders or drives
CPUID’s CPU-Z and HWMonitor – Monitoring hardware in your system
NMAP-Zenmap GUI – NMAP for windows
WinSCP – SCP client for windows
Notepad++
NetIQ ADCheck
TightVNC
ThreatFire
Secunia PSI
Nod32
Filezilla
Iometer
Gimp
Orca
Pidgin
java
7zip