Cfgmgr命令:用来配置设备并随时把设备软件安装到系统中。
参数:
-f 指定 cfgmgr命令运行第一阶段配置规则,该参数在运行时不可用(即系统启动后)
-i Device 指定安装介质的路径。
-l Name 指定单独配置的设备及其子设备Specifies the named device to configure along with its children.
-p Phase 指定 cfgmgr 命令运行的阶段
-s 指定 cfgmgr 命令从事第2阶段的配置规则
-v 指定 详细 输出. cfgmgr 命令把关于它所做的操作信息写到标准输出
被设置的设备受到configuration rules object class(配置规则对象类) 的控制,configuration rules object class是device configuration database 的一部分,每个configuration rules object class指定了三个项:
1、可执行程序运行的完全路径名
2、什么时候运行程序(关联到其他规则)
3、在那个阶段运行程序
在系统启动过程中,cfgmgr命令配置所有系统必须用到的设备,系统启动包括两个阶段:
阶段1、 从内核调入系统,系统引导文件初始化开始,在这个阶段,cfgmgr命令被调用,使用 -f 参数指定第一阶段。Cfgmgr命令运行所有第一阶段的配置规则来配置基本的设备。
阶段2、 在这个阶段cfgmgr命令使用 -s 标记。
Cfgmgr命令的配置规则认可三个状态
状态1
状态2(second boot phase for normal boot)
状态3 (second boot phase for service boot)
用 -f 标记运行状态一的规则,如果加上 -l 标记,cfgmgr只配置指定的设备和它的子设备。
如果不带任何参数运行 cfgmgr命令,则运行状态二规则。
只有加了 -p参数才运行状态三规则
如果调用cfgmgr带-i标记,则命令试图为每个检测到的设备自动安装设备软件,-i标记的变量指定了在那里找安装介质。
为了保护 configuration database ,cfgmgr命令不能中途中断!!
如果有些设备在系统启动时没有加电,系统将不会使其生效,直到明确告诉要配置他们,命令语法如下:
cfgmgr -v
limingtian 回复于:2002-12-11 18:59:01 |
顶!支持!!! |
blueflying 回复于:2002-12-11 19:28:44 |
up |
ibm6000 回复于:2002-12-11 20:04:57 |
加一个cfgmgr -S |
ibm6000 回复于:2002-12-11 20:06:56 |
看看英文解释吧 There is an undocumented option on cfgmgr in AIX 4.3.3 (At least it’s not in the man pages). The –S option will run cfgmgr serially! Although you would not want to twin-tail and use DPO, since that is not supported at the time of this document’s creating, you should know that cfgmgr in AIX 4.3.3 runs in parallel down each SCSI adapter. Therefore, since the second SCSI adapter could finish earlier than your first SCSI adapter, your disk drives may be in a weird order. This is usually not a big deal, unless you are doing a rollout of lots of machines that should look exactly alike, or UNLESS you are twin tailing and you want the hdisk numbers to be in the same order on each machine. In order to force the disk drives to be configured in the order of the scsi adapters, you can remove all of the disk drives and run “cfgmgr –S”. |
shadowyang 回复于:2002-12-13 17:32:03 |
感谢,大家 |
ibm6000 回复于:2002-12-15 17:18:08 |
cfgmgr -v可以看看在哪一步花的时间最多,是不是有问题。 |
firer2000 回复于:2002-12-11 16:36:53 |
limingtian 回复于:2002-12-11 18:59:01 |
顶!支持!!! |
blueflying 回复于:2002-12-11 19:28:44 |
up |
ibm6000 回复于:2002-12-11 20:04:57 |
加一个cfgmgr -S |
ibm6000 回复于:2002-12-11 20:06:56 |
看看英文解释吧 There is an undocumented option on cfgmgr in AIX 4.3.3 (At least it’s not in the man pages). The –S option will run cfgmgr serially! Although you would not want to twin-tail and use DPO, since that is not supported at the time of this document’s creating, you should know that cfgmgr in AIX 4.3.3 runs in parallel down each SCSI adapter. Therefore, since the second SCSI adapter could finish earlier than your first SCSI adapter, your disk drives may be in a weird order. This is usually not a big deal, unless you are doing a rollout of lots of machines that should look exactly alike, or UNLESS you are twin tailing and you want the hdisk numbers to be in the same order on each machine. In order to force the disk drives to be configured in the order of the scsi adapters, you can remove all of the disk drives and run “cfgmgr –S”. |
shadowyang 回复于:2002-12-13 17:32:03 |
感谢,大家 |
ibm6000 回复于:2002-12-15 17:18:08 |
cfgmgr -v可以看看在哪一步花的时间最多,是不是有问题。 |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/