ITPub博客

首页 > Linux操作系统 > Linux操作系统 > bootinfo详解

bootinfo详解

原创 Linux操作系统 作者:mi_zy 时间:2011-04-06 21:18:24 0 删除 编辑
bootinfo 没有man manual, 同时发现IBM命令参考REDBOOK或者information center均没有针对该命令的解释。看看bootinfo -? 的结果
#bootinfo -?
bootinfo: Not a recognized flag: ?
usage: bootinfo { -a | -b | -B device | -c | -d | -e | -k | -L | -M |
                 -m | -o disk | -p | -q device | -r | -s diskname [ -P 0 ] |
                 -t | -T | -w | -y | -z }
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位


uname -p
返回系统芯片类型,如powerpc

uname -M
返回机器型号,如IBM,7026-B80
 
备查:
bootinfo Command
Purpose
Determines and displays various boot information, including boot device type and boot device name. This command is NOT a user-level command and is NOT supported in AIX 4.2 or later.
Syntax
bootinfo [ -P Ppsize -s Disk ] |  [  -b ] [  -B Disk ] [  -c ] [  -k ] [  -m ] [  -p ] [  -q Adapter ] [  -r ] [  -t ] [  -T ] [  -o Disk ] [  -z ]
Description
The bootinfo command is used during the boot and BOS install to gather and display information. During boot it is used to determine the boot device type and which device the machine has booted from. During a network boot, the bootinfo command displays the contents of the client's bootpd daemon REPLY packet. This information is used by the boot programs to contact the server to obtain the client's file systems.
The bootinfo command uses the device configuration databases in information searches. For some information, the bootinfo command uses NVRAM (nonvolatile random access memory).
When booting a system across a network, use the -c flag to display the following information:
Client IP address
Server IP address
Gateway IP address
Network type of boot, where:
68 (ASCII "D") Ethernet
79 (ASCII "O") Token Ring
80 (ASCII "P") FDDI
Slot number of the network adapter
802.3 indicator
Boot file
Vendor tag information
Hardware attribute value
For token-ring:
4  Specifies 4 megabit-per-second token ring 
5  Specifies 16 megabit-per-second Token Ring 
For MCA Ethernet:
7  Specifies thin cable 
8  Specifies thick cable 
All of the items except the hardware attribute value are part of the bootp daemon reply packet information. The bootinfo command determines the hardware attribute value by looking in NVRAM.
Flags
-b  Returns the last boot device. 
-B Disk  Displays a 1 if the IPL code in the ROS on the machine running the command is capable of booting from the specified disk. Otherwise, the command displays a 0. 
-c  Displays bootp daemon reply packet information stored with IPL control block. 
-k  Specifies the key position. The return value indicates:
1
Key is in Secure position.
2
Key is in Service position.
3
Key is in Normal position. 
-m  Displays the machine model code. 
-o Disk  Displays either the disk device name or the location depending upon the value of disk. 
-P Ppsize  Size of disk physical partitions to be used for calculating defaults. 
-p  Displays the hardware platform. type of the running machine. Machines with fundamental differences, such as different types of busses, may have different hardware platform. types. For more information see the bosboot command. 
-q Adapter  Displays a 1 if the IPL code in the ROS on the machine running the command is capable of booting via the specified adapter. Otherwise, this command displays a 0. 
-r  Displays amount of real memory in kilobytes. 
-s Disk  Displays disk size in megabytes. 
-t  Specifies the type of boot. The return values include:
1
Disk boot
3
CD-ROM boot
4
Tape boot
5
Network boot 
-T  Obsolete. Applications that use this flag should use the -p flag instead, which provides more accurate information about newer models. 
-z  Specifies whether the machine hardware is MP-capable (capable of running the multi-processor kernel and supporting more than one processor). The return value indicates:
0
The machine is not MP-capable.
1
The machine is MP-capable. 
Examples
To determine default physical-partition size for disk hdisk2, enter:
bootinfo -P 0 -s hdisk2
To display amount of real memory, enter:
bootinfo -r

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7970627/viewspace-691808/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 关于BOOT和DUMP
请登录后发表评论 登录
全部评论
空管自动化,传输,对空通信

注册时间:2011-02-02

  • 博文量
    187
  • 访问量
    346032