免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2226 | 回复: 8
打印 上一主题 下一主题

[新手入门] 请问,查看机器的体系结构的命令是什么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-26 13:07 |只看该作者 |倒序浏览
我想查看我的机器是32位还是64位,或是cpu是什么结构的,请问使用什么命令?谢谢!

论坛徽章:
0
2 [报告]
发表于 2004-03-26 13:13 |只看该作者

请问,查看机器的体系结构的命令是什么?

bootinfo -y

论坛徽章:
0
3 [报告]
发表于 2004-03-26 14:18 |只看该作者

请问,查看机器的体系结构的命令是什么?

prtconf

lscfg -pvl sysplanar0

论坛徽章:
0
4 [报告]
发表于 2004-03-26 20:02 |只看该作者

请问,查看机器的体系结构的命令是什么?

booinfo -p

论坛徽章:
0
5 [报告]
发表于 2004-03-28 00:50 |只看该作者

请问,查看机器的体系结构的命令是什么?

bootinfo -K

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
6 [报告]
发表于 2004-03-28 10:01 |只看该作者

请问,查看机器的体系结构的命令是什么?

bootinfo -K用来察看当前内核是多少位的。

很可惜,我也一直找bootinfo的文档,但是他是UNdocumented

论坛徽章:
0
7 [报告]
发表于 2004-03-28 16:16 |只看该作者

请问,查看机器的体系结构的命令是什么?

man bootinfo可以看。但不全。

论坛徽章:
0
8 [报告]
发表于 2004-03-28 23:21 |只看该作者

请问,查看机器的体系结构的命令是什么?

prtconfig  |more可以显示你系统的所有参数

论坛徽章:
0
9 [报告]
发表于 2004-03-28 23:28 |只看该作者

请问,查看机器的体系结构的命令是什么?

怎么说是undocument的呢?不是document得很好么?

Commands Reference, Volume 1

--------------------------------------------------------------------------------

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 "" 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP