Hubba's Blog

Notes from a Linux/Unix Engineer

AIX - Get the serial number of the system.

Posted on Fri, Oct 28, 2022 at 11:55 by Hubertus A. Haniel

On AIX the serial number of the system can be retrieved multible ways. - "lsconf | head" will get you the serial number and you can grep it out of that output but actually this is quite an expensive call to make if you are doing this across a large estate to populate your inventory database. lsconf will actually go down and probe the hardware for things and will be quite in efficiant.

The serial number is actually stored on the local filesystem in the ODM which is the system registry for an AIX system and it is much more efficient to retrieve it from there using "odmget CuAt | grep -p systemid"

Posted in HowTo (RSS), System - AIX (RSS)