Tuesday 28 January 2014

Use getconf instead of bootinfo

Question

The bootinfo command does not have a man page, can I use it?

Answer

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 deprecated 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

0 blogger-disqus:

Post a Comment