bootinfo 和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
###############################################################################################
- What was the device the system was last booted from?
- $ getconf BOOT_DEVICE
- hdisk0
- # bootinfo -b
- hdisk0
- What size is a particular disk in the system?
- $ getconf DISK_SIZE /dev/hdisk0
- 10240
- # bootinfo -s hdisk0
- 140013
- 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
- #bootinfo -y
- 64
- Is the system currently running a 64-bit or 32-bit kernel?
- $ getconf KERNEL_BITMODE
- 64
- # bootinfo -K
- 64
- How much real memory does the system have?
- $ getconf REAL_MEMORY
- 524288
- # bootinfo -r
- 16056320
摘抄网络的部分命令及说明:
- bootinfo -s hdisk0
- 返回磁盘大小,可以是本地磁盘,也可以是存储的磁盘,单位是mb
- bootinfo -k(小写)
- 返回当前的启动模式/返回机器的钥匙的位置
- 1 Key is in Secure position.
- 2 Key is in Service position.
- 3 Key is in Normal position.
- bootinfo -K(大写)
- 返回当前系统运行的内核为32位还是64位
- bootinfo -m
- 返回机器类型码
- bootinfo -c
- -c Displays bootp daemon reply packet information stored with IPL control block.
- bootinfo -t
- 返回当前启动类型
- 1 Disk boot
- 3 CD-ROM boot
- 4 Tape boot
- 5 Network boot
- bootinfo -z
- 返回机器是否支持多处理器
- 0 不支持
- 1 支持
- bootinfo -T
- 返回机器的硬件平台类型,比如rspc
- bootinfo -r
- 返回实际内存容量,单位为kbytes
- bootinfo -b
- 返回最后一次启动的设备
- bootinfo -y
- 返回机器硬件是32位还是64位
- bootinfo -e
- 是否可以从磁带启动
- 1 是
- 0 否
浙公网安备 33010602011771号