Aug
25
2008
0

How-To – Redirect 404 to index page via PHP

I’ve been working a quirky sub-domain 404 issue and I found a quick and clean redirect script. Instead of a nasty 404 page you can redirect the web request to the index page. I found the helpful script here: http://css-tricks.com/how-to-redirect-indexhtml-to-indexphp/

I deleted whatever text was in 404.php and replaced it with:


header( 'Location: http://www.redirect-location.com' );
exit();
?>

Worked like a charm for me!

Written by Tom Tags: ,
Jul
30
2008
0

NetApp and Data Deduplication (artist formally known as A-SIS)

I’ve been doing a little testing with NetApp Deduplication lately but only in a limited test environment.  I know one thing for certain, deduplication and compression do not mix at all!  When you start to look at this technology make sure you’re dealing with uncompressed data.  This posting is more or less a bookmark for:

Scott’s Quick Guide to Setting up Netapp Deduplication

NetApp does provide a useful windows exe called “find_space” which you can run in report mode against any windows data volume.

Jul
21
2008
0

HowTo – enable HA if HA/DRS is not enabled when in Virtual Center and enable fails

I came into work this morning and one of the ESX hosts had HA disabled.  The network engineers replaced the core switch and I have to assume the NIC connectivity caused HA to disable since they were all down at once.  One command helped me get HA enabled:

SSH to the host that is disabled and as root execute:

service mgmt-vmware restart

Then enable HA after successfully running the command.

Written by Tom Tags: , , , , , ,
Jun
03
2008
0

HowTo – install ubuntu 8.04 on a USB flash drive

I’ve been saving this link to zdnet to check out for later usage.  I need to format a usb drive and set this up, looks very useful….

http://blogs.zdnet.com/hardware/?p=1873&tag=nl.e539

Written by Tom Tags: ,
Jun
03
2008
0

HowTo – remove a windows service from cli?

If you’d like to delete a service from your view from within windows server 2003 you can use the following commands.

First top the service:

net stop “service name”

the next command will delete it…

sc delete “service name”
***The “service name” isn’t always the name listed under names when you bring up the services console gui.  Select the service you’d like to delete and review the properties.  The actual windows registry service name will be listed at the top of the properties sheet for that service.

Written by Tom Tags: , , , ,
Apr
30
2008
0

HowTo – generate diagnostic logs for vmware esx from cli

While working with vmware support on the phone they required me to run a job from Virtual center to gather diagnostic log data from our VI3 cluster.  You can try this by opening your, “Virtual Infrastructure Client” and selecting the “Administration” menu and then “Export Diagnostic Data”.  When I run this command for as little or much information required I ALWAYS get the following error, “Failed to create diagnostic bundle.”

If you ssh to your host directly you can run the following command from each host and sftp the logs from the host afterwards.

vm-support

Written by Tom Tags: , , , , , , ,
Apr
30
2008
2

HowTo – Windows shutdown GUI and remote shutdown capabilities

From a windows command prompt you can get a shutdown gui.  This is cool because you can use it to execute remote shutdowns with ease and not have to remember all the flags.

start->run->  cmd

c:\shutdown.exe -i

The gui should be launched.  I find it handy when a server is supposed to reboot and gets “stuck”.  Some windows servers just don’t shutdown cleanly and hang on the process.  If you execute another remote shutdown command you can force the server out of the endless shutdown, and save yourself from a drive into the server room.

Written by Tom Tags: , , , , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes