On Computer A Create the public and private keys using the command ssh-keygen [root@computerA .ssh]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same…
Tag: Aix
Unable to login to remote server via ssh
A funny thing happened to one of my Red Hat 5 Enterprise servers after applying the errata. I rebooted the servers as usual after applying the updates, and they came up just fine. But unfortunately I was not able to…
Nslookup resolves address but ping is unable to resolve hostname on Unix server
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…
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…
How to determine the AIX OS level and Maintenance Level.
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…
How to list the type of fiber channel card and it’s WWN info in AIX
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…
Auditing the cron jobs scheduled on the Unix or Linux server.
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…