Topics: AIX, System Admin

Bootinfo vs Getconf

The command /usr/sbin/bootinfo has traditionally been used to find out information regarding system boot devices, kernel versions, and disk sizes. This command has been depricated in favor of the command /usr/bin/getconf. The bootinfo man page has been removed, and the command is only used in AIX by the booting and software installation utilities. It should not be used in customer-created shell scripts or run by hand.

The getconf command will report much of the same information that bootinfo will:

What was the device the system was last booted from?

# getconf BOOT_DEVICE
hdisk0
What size is a particular disk in the system?
# getconf DISK_SIZE /dev/hdisk0
10240
What partition size is being used on a disk in the system?
# getconf DISK_PARTITION /dev/hdisk0
16
Is the machine capable of running a 64-bit kernel?
$ getconf HARDWARE_BITMODE
64
Is the system currently running a 64-bit or 32-bit kernel?
# getconf KERNEL_BITMODE
64
How much real memory does the system have?
# getconf REAL_MEMORY
524288




If you found this useful, here's more on the same topic(s) in our blog:


UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.

Interested in learning more?