Unix bash script to check if the files exists in the directory

October 23, 2009
By

As a server administrator I seldom have to check to see if a file exists in the directory. But what if you have a long list of files that you need to check for? Checking for the existence of many many files manually could prove to be tedious and repetitive task. It would be...
Read more »

Scripts to automate the process of identifying and compiling an RDM to LUN mapping list for VMware ESX 3.0

October 16, 2009
By

In an earlier posting I listed a copy of the article explaining how to manually create a RDM to LUN mapping for VMware ESX. I have created scripts to completly automate this process, ftp the result and email the result file. Save the below...
Read more »

How to identify and compile a RDM to LUN mapping list for VMware ESX 3.0

October 16, 2009
By

Below is a copy of the article from VMware knowledge base. It explains the steps to create the Raw Decive Mapping to Logical Unit Number. But is you have a VMserver with many virtual clients and LUNs attached, then this manual procedure can take...
Read more »

Command to display the current run level in Solaris

October 6, 2009
By

If you forget the current run level you have loaded in Solaris, here is a handy command to help you find out what it is. who -r This will output to screen the current run-level.
Read more »

Dell launches Lattitide Z laptop with wireless charging technology

September 29, 2009
By
Dell launches Lattitide Z laptop with wireless charging technology

Dell is launching a new laptop Lattitude Z which is capable of charging the battery wirelessly. All you have to do is to place the laptop on top of the charging dock and the battery charges through induction. This means there is no connectivity...
Read more »

Robocopy GUI makes copying files across the network easy with the click of the mouse.

September 28, 2009
By
Robocopy GUI makes copying files across the network easy with the click of the mouse.

Sometime ago I had written an article about using robocopy to copy files across the network. It is a reliable way to copy files with all the attributes intact. Robocopy can withstand interruption to the network connectivity and will pick up from where it...
Read more »

Deleting a large file does not free up space in Unix.

September 24, 2009
By

The root file system on my Solaris Unix server was low on free space, it was 98% full. Upon investigation I found out that there was a very large file 1.8 G in size. This file nohup.out was created by the Tivoli backup job....
Read more »

Changing the NTP server in Solaris or Linux.

September 21, 2009
By

Here is how you can change the NTP server’s information on your Solaris server. Edit /etc/inet/ntp.conf add the below line server ntp.paris.hilton.com You will now need to restart the NTP service. /etc/init.d/xntpd stop /etc/init.d/xntpd start The last thing you need to do is to...
Read more »

How to automate ftp login and file transfer with bash script

August 27, 2009
By

Sometime ago I had posted a Korn script to automate FTP login and upload of file on a Unix or Linux computer. The default shell for most Linux servers is bash. I ran into a situation on a VMware ESX server where the only...
Read more »

Blat a Windows command line utility to send email with attachment.

August 26, 2009
By

Blat is a handy command line utility that sends email with attachment using SMTP. It can also be used to post to usenet using NNTP. It is not an SMTP server, you will need an SMTP server for Blat to send email. Blat can...
Read more »

Enable outbound FTP ports on VMware ESX server.

August 26, 2009
By

The operating system on VMware ESX 3 is a striped down version of linux. It has only the bare necessities for VMware to function. I wanted to configure a cron job to email the log file, but because sendmail is not installed the mailto...
Read more »

Awk the swiss army knife of the Unix toolkit.

August 20, 2009
By

The awk command is very handy when you need to filter the contents of a file, a pipe,or keyboard. It searches each line of input for patterns that you specify and when the pattern is matched, it performs an action. You specify the action...
Read more »

Explanation of Standard input-output in Unix and Linux

August 19, 2009
By

Once a command is run, a process is created. This process then opens three flows: stdin, called the standard input, where the process will read the input data. By default stdin refers to the keyboard; STDIN is identified by the number 0; stdout, called...
Read more »

Configuring the SNMP settings on a Cisco MDS 9000 series Fabric switch.

August 18, 2009
By

Simple Network Management Protocol (SNMP) is used to monitor network attached devices. Any changes in the status of the monitored device is transmittted to an SNMP log collection server. The server can be configured to send out notifications to the network administrator. I will...
Read more »

How to automate ftp login and file transfer

August 6, 2009
By

As a Linux/Unix server administrator I ran into an occasion where I had to automate the file transfer via ftp to a remote server. I had to create a shell script to automatically login to the remote ftp server and then upload the file....
Read more »