Changing the default boot device on a Sparc server

March 2, 2010
By

You can display and change the default boot device on a SUN Sparc server from the eeprom console. List the bootable devices with the devalias command, ok devalias cdrom /pci@0,600000/pci@0/pci@0/scsi@0/disk@4,0:f net /pci@0,600000/pci@0/pci@1/pci@0/network@4 disk /pci@0,600000/pci@0/pci@0/scsi@0/disk@0 name aliases List the current boot device. ok printenv boot-device boot-device = disk Change the boot device from disk to...
Read more »

How to list the status of swap in Solaris

February 26, 2010
By

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 if it is a...
Read more »

How to change the IP address in Solaris 10

February 25, 2010
By

Here is a list of files that you need to edit when changing the IP address of an interface in Solaris 10. /etc/hosts /etc/hostname.interface-name /etc/nodename /etc/defaultrouter /etc/resolv.conf /etc/netmasks Add the ip address and server name to the host file. vi /etc/hosts 10.0.0.10 server-name Select...
Read more »

How to configure Samba on Solaris 10

February 11, 2010
By

If you need to find the version of Samba installed on the Solaris 10 server use the command smbstatus. # /usr/sfw/bin/smbstatus Samba version 3.0.35 PID Username Group Machine ——————————————————————- 1962 andrew users mypc (162.10.21.100) Service pid machine Connected at ——————————————————- IPC$ 1962 mypc Thu...
Read more »

Got my site added to DMOZ

February 3, 2010
By

Yahoo, it only took four to five tries over a span of four years to get Games Cheat successfully added to DMOZ. I last submitted my site to DMOZ about 5 months ago and forgot about it. I was pleasantly shocked when I was...
Read more »

Using grep/egrep to find out which file contains a word or string in Unix or Linux

February 2, 2010
By

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 word groundhog. grep –i...
Read more »

Success, failure of the tar command recorded with time and date stamp

January 27, 2010
By

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 watch. But the better...
Read more »

How to delete a file or directory with special characters using the inode in Unix or Linux

January 22, 2010
By

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 funny characters. ls –b...
Read more »

Cheat Codes for Warcraft III

January 21, 2010
By

Tired of getting slaughtered by the computer, use the cheat codes. My favourite one is GreedIsGood (not case sensitive). To activate a code simply press the enter key, type in the code (and the option if avaiable), and hit enter again. You should then...
Read more »

How to change the hostname in Solaris 10

January 21, 2010
By

To change the hostname in Solaris 10 you need to edit 3 files and appply the new name. /etc/nodename /etc/hostname.*interface, e.g. hostname.bge0 /etc/inet/hosts this file is a hard link to /etc/inet/ipnodes. You will need to make /etc/inet/ipnodes writable before editing it. To enable write...
Read more »

Graco kids strollers safety recall.

January 20, 2010
By

Graco has issued a safety recall notice this morning. It is is second company to recall strollers in the past few weeks. Their website is very very slow today as I am sure every concerned parents are trying to find more information. Well I...
Read more »

How to determine the AIX OS level and Maintenance Level.

January 20, 2010
By

IBM had renamed the term maintenance level (ML) to technology level (TL). Here is an excerpt from IBM, “Although some systems administrators still use the term “maintenance level” when discussing their AIX version, the term is now reserved for legacy AIX systems. The new...
Read more »

How to list the type of fiber channel card and it’s WWN info in AIX

January 16, 2010
By

I needed to find out the type of fiber channel HBA cards installed in the Aix server. Here are the commands I used to find the information, Use the lsdev command to list the fiber channel cards (HBA) installed in the Aix server. Depending...
Read more »

How to create a ZFS filesystem on two striped disk drives

January 15, 2010
By

I ran out of space on my SAN drive on the Solaris 10 SPARC server. Since I had two spare disk drives sitting in the server that were not being used, I decided to create a single striped volume out of the two drives....
Read more »

Garmin Nuvi 760 gps got me lost in New York state – Part 1

January 14, 2010
By

I bought the Garmin 760 gps from my local Costco last summer. I used it on many trips across Ontario and it had always been very reliable. The GPS had been so accurate that I decided to throw away my big CAA map of...
Read more »