Use getconf instead of bootinfo
Question & Answer
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. Below are some examples of variables which can be queried. The full list is on the getconf man page.
https://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.cmds2/getconf.htm
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
原文地址:https://blog.csdn.net/allway2
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。