Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I tell which AIX version am I running?

share|improve this question
up vote 7 down vote accepted

You are correct in the fact that oslevel will give you the current installed version, but that is not always enough information particularily if you are asked the question by support personnel.

# oslevel <--- this will only give you the Base Level

To be more precise you should use the following command which will give you additional Technology Level, Maintenance Level and Service Pack level information.

    # oslevel -s

This will give you

  • "5300" - Base Level
  • "09" - Technology Level
  • "02" - Maintenance Level
  • "0849" - Service Pack

On some older versions of AIX the -s option is not available in whichh cas you should use the -r option which will report as far as the Technology level

I hope this helps

Mike Scheerer

share|improve this answer
This is actually wrong. In your example 5300-09-02-0849, 09 is Technology Level, 02 is Service Pack number and 0849 is just the date of Service Pack release (49th week of the year 2008). Maintenance Level is just an old name for Technology Level. – kubanczyk Jun 10 '10 at 20:33

I just added this to my ~/.profile, so I immediately see the AIX version on login:

function aixversion {
  OSLEVEL=$(oslevel -s)
  AIXVERSION=$(echo "scale=1; $(echo $OSLEVEL | cut -d'-' -f1)/1000" | bc)
  AIXTL=$(echo $OSLEVEL | cut -d'-' -f2 | bc)
  AIXSP=$(echo $OSLEVEL | cut -d'-' -f3 | bc)
  echo "AIX ${AIXVERSION} - Technology Level ${AIXTL} - Service Pack ${AIXSP}"

Example output:

AIX 7.1 - Technology Level 3 - Service Pack 1

nb: This function is compatible with both KSH and BASH, so you can put in ~/.bashrc instead if you are a BASH fan.

nb2: The last 4 digits from oslevel are the year and week the SP was released. I don't particularly care to see that, so I left it out. I was happy enough with Version/TL/SP.

share|improve this answer
$ man oslevel
$ oslevel    <- what I was looking for
share|improve this answer

You can use "uname" with various options:

$ uname -v
$ uname -r
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.