Posts Tagged ‘ Aix ’

SSH Login without password using public key authentiation

August 23, 2012
By

On Computer A Create the public and private keys using the command ssh-keygen # 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 passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been...
Read more »

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

Unable to login to remote server via ssh

May 18, 2011
By

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 logon remotely via ssh to a server. I tried various different accounts including root,...
Read more »

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

Nslookup resolves address but ping is unable to resolve hostname on Unix server

November 17, 2010
By

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 and dig I verified that the DNS servers were resolving the hostname to IP...
Read more »

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

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 block special device; zeroes otherwise. swaplo The swaplow value for...
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

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

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

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 way is to create a script that would record the...
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

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

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

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

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

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 cron job,i.e....
Read more »

Tags: , ,
Posted in Software | No Comments »