Posts Tagged ‘ Aix ’

How to list the status of swap in Solaris

February 26, 2010
By Andrew Lin

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...
Read more »

Tags: , , ,
Posted in Software | 1 Comment »

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

February 2, 2010
By Andrew Lin

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 “groundhog” /home/* /home/shadow:Today is groundhog day The –i option means grep will ignore upper/lower...
Read more »

Tags: , , ,
Posted in Software | 2 Comments »

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

January 27, 2010
By Andrew Lin

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 way is to create a script that would...
Read more »

Tags: , , ,
Posted in Software | No Comments »

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

January 22, 2010
By Andrew Lin

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 scritps010/010/010/010 I tried every command I could think of, rmdir “scripts”,...
Read more »

Tags: , , ,
Posted in Software | No Comments »

How to determine the AIX OS level and Maintenance Level.

January 20, 2010
By Andrew Lin

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 IBM methodology dictates two TL releases per year. The first TL...
Read more »

Tags: ,
Posted in Software | 1 Comment »

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

January 16, 2010
By Andrew Lin

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 on the version of aix one or all of the...
Read more »

Tags: ,
Posted in Hardware | No Comments »

Auditing the cron jobs scheduled on the Unix or Linux server.

July 7, 2009
By Andrew Lin

I have recently taken ownership of a Solaris 5.9 server and am in the process of migrating the applications over to a recent release. I decided to audit the applications and configuration of all the apps installed. One of the very long list of items I needed to figure out is the...
Read more »

Tags: , ,
Posted in Software | No Comments »

TOP and TOPAZ are Unix, Linux and AIX utilities that provides real time display of top cpu using processes.

May 23, 2009
By Andrew Lin

As a server/systems administrator you will find the TOP utility very useful to determine top cpu using processes. TOP is the utility for Linux and most Unix operating systems. IBM Aix has it’s own version which does the same job, it is called Topaz. Top can be download from unixtop.org, the...
Read more »

Tags: , ,
Posted in Software | No Comments »

How to determine the version of Aix, Solaris and Linux.

May 15, 2009
By Andrew Lin

How to determine the version of Solaris you are running. uname -a This will list the Solaris version on your server. uname -X will display the extended information with more detailed info. Other options for uname. Operating system name (uname -s) Node name (uname -n) Operating system release (uname -r) Operating system version (uname -v) Machine class (uname -m) Instruction set architecture (uname -p) Platform...
Read more »

Tags: , ,
Posted in Software | No Comments »

How to find a file in Unix, Linux, Aix, Solaris.

May 15, 2009
By Andrew Lin

If you are not sure about the name of the file and which directory it stored in then you can use the find command to search for it. The Find command is common to all variants of Unix, Aix, Solaris, and Linux. The variables may differ slightly depending on the Operating System. Here is an...
Read more »

Tags: , ,
Posted in Software | 4 Comments »