I came across this issue on my newly built Solaris 10 server. I was able to ping a remote machine by Ip address, but not by its hostname. This indicated that I had the correct route and gateway. Using nslookup…
Tag: Linux
How to map to a remote NFS directory from a VMware ESX 4 server.
I ran into this error while trying to mount a NFS directory on a remote server from my Vmware ESX4 server. My Vmware esx server is called esx4-server and the remote NFS server is called remote-server. I executed the mount…
Creating RDM to LUN (SAN) mapping on VMware ESX 4, Vcenter.
In the past I have written articles about how to create a RDM to LUN disk mapping for VMware ESX 3. http://www.gamescheat.ca/2009/10/scripts-to-automate-the-process-of-identifying-and-compiling-an-rdm-to-lun-mapping-list-for-vmware-esx-30/ and http://www.gamescheat.ca/2009/10/how-to-identify-and-compile-an-rdm-to-lun-mapping-list-for-vmware-esx-30/ The procedure to identify the path for the RDM (raw disk mapping) to LUN (disk on…
How to list the status of swap in Solaris
List the status of all swap areas. # swap -l swapfile dev swaplo blocks free dev/dsk/c0t0d0s1 32,9 16 8425712 8425712 The output has five columns: path The path name for the swap area. dev The major/minor device number in decimal…
Using grep/egrep to find out which file contains a word or string in Unix or Linux
If you need to find out which file in a directory contains a specific word then the grep command is your friend. Here is an example, if you wanted to find out which file in the directory /home contains the…
Success, failure of the tar command recorded with time and date stamp
I needed to determine the amount of time it would take to archive large amount of data on my unix server. If I had infinite amount of free time I could sit in front of the screen with a stop…
How to delete a file or directory with special characters using the inode in Unix or Linux
My fat fingers inadvertently created a directory on my unix server with special characters. I could not access this directory nor could I delete it. When I listed the directory using the command ls –b, I could see all the…
List files by size in reverse numerical order in Linux or Unix.
The root drive on my Solaris server was full and I needed to find out what file was the largest. The du command can list the size of the files in a directory, you can then use the sort command…
How to migrate users and groups from Solaris 9 to 10?
I just installed Solaris 10 on a new SPARC server, now I need to migrate the userids and groups over. The optimal way to migrate the userids while retaining their password is to simply copy three files from the Solaris…
Strange message when launching the vi editor.
I got this strange error message when launching the vi text editor during the installation of Solaris 10, I don’t know what kind of terminal you are on – all I have is ‘unknown’. The reason for this is becasue…