安装 WDR


本《WDR 安装指南》包括如下几节:


在 Sun Fire 15K、12K、6800、4810、4800 和 3800 系统中运行 WDR 的必要条件

安装正确版本的 Solaris 操作系统

WDR 只可在运行有 Solaris 8 2/02 操作环境或 Solaris 9 操作环境的 Sun Fire 15K、12K、6800、4810、4800 和 3800 系统中运行。

需将 Solaris 软件安装在何处



注意 - 中级服务处理器 (MSP) 先决条件中介绍了 MSP 对硬件和软件的要求。



有关安装 Solaris 软件的信息

有关安装 Solaris 软件的详尽信息,请参见以下文档资料:


在 Sun Fire 15K/12K 系统中安装 WDR

在 Sun Fire 15K/12K 中运行 DR 所需的增补程序

如果 Sun Fire 15K/12K 系统中正在运行的操作环境是 Solaris 8 2/02,则必须安装另外的增补程序来启用 Dynamic Reconfiguration。 这些增补程序可从 sunsolve.sun.com 获得。《Sun Fire 15K/12K Dynamic Reconfiguration Installation Guide and Release Notes, Solaris 8 2/02》(部件号 816-5080-10)中含有安装所需增补程序的详尽指导。

如果 Sun Fire 15K/12K 系统中正在运行的操作环境是 Solaris 9,则必须安装另外的增补程序以启用 Dynamic Reconfiguration (DR)。 这些增补程序以及在 Sun Fire 15K/12K 系统中安装它们的详尽指导,都可以从 http://www.sun.com/servers/highend/sunfire15k/ 获得。

确保 CIMOM 正在运行和接受连接

在运行 Solaris 8 2/02 操作环境的两个 SC 上

以 root 身份登录到 SC 并输入以下命令:

# /etc/init.d/init.wbem status

若返回消息“SMC server version 2.0.0 running on port 898.”,则表明 Solaris WBEM 服务正在运行和接受连接。

但是,若返回消息“SMC server not running on port 898.”,请输入以下命令检查 smcboot 进程:

# ps -ef| /usr/xpg4/bin/grep -e smcboot

若显示出两个 smcboot 进程,则表明 Solaris WBEM 服务正在运行和接受连接。 若未显示任何进程,则必须启动 Solaris WBEM 服务。

在运行 Solaris 9 操作环境的两个 SC 上

以 root 身份登录到 SC 并输入以下命令:

# /etc/init.d/init.wbem status

若返回消息“Solaris Management Console server version 2.1.0 running on port 898.”,则表明 Solaris WBEM 服务正在运行和接受连接。

但是,如果返回消息“Solaris Management Console server not running on port 898.”,则必须启动 Solaris WBEM 服务。

启动 Solaris WBEM 服务

以 root 身份输入以下命令:

# /etc/init.d/init.wbem start

详尽的 Sun Fire 15K/12K 安装指导

本节列出了在一个 Sun Fire 15K/12K 系统的两个 SC 上成功安装 WDR 过程中,输入的所有命令行以及显示的输出信息。


procedure icon   安装 WDR 之前,卸载所有已安装的 WDR 版本



注意 - 只有在系统中已安装有 WDR 的情况下,才执行本小节中的步骤。如果是初次安装 WDR,请直接进入下一小节开始安装 WDR 软件包。



若 WDR 是使用 Web 安装程序或 Solaris Supplement CD 安装的
  1. 确保 CIMOM 正在运行。 请参见确保 CIMOM 正在运行和接受连接

  2. 以 root 身份运行驻留于 /opt/SUNWWDR/bin 目录中的 wdrunconfig 脚本,以删除所有 WDR CIM 类:

# cd /opt/SUNWWDR/bin
# ./wdrunconfig

Do you want to delete the WBEM DR CIM classes now? [y,n] y
Please enter the root password:
deleting class ":Solaris_SystemBoardHasControllers"
deleting class ":Solaris_SystemBoardHasMemory"
deleting class ":Solaris_SystemBoardHasProcessors"
deleting class ":Solaris_DomainHasSlots"
deleting class ":Solaris_SlotHasSystemBoard"
deleting class ":Solaris_CHController"
deleting class ":Solaris_CHMemory"
deleting class ":Solaris_CHCPU"
deleting class ":Solaris_CHSystemBoard"
deleting class ":Solaris_WDRAttachmentPoint"
deleting class ":Solaris_XCDomain"
deleting class ":Solaris_WDRDomain"
deleting class ":Solaris_XCSlot"
deleting class ":Solaris_WDRSlot"
deleting class ":Solaris_XCComponentRemove"
deleting class ":Solaris_XCComponentInsert"
deleting class ":Solaris_XCBoardPowerOn"
deleting class ":Solaris_XCBoardPowerOff"
deleting class ":Solaris_XCDomainConfigChange"
deleting class ":Solaris_XCDomainUp"
deleting class ":Solaris_XCDomainDown"
deleting class ":Solaris_XCDomainStop"
deleting class ":Solaris_XCDomainStateChange"
deleting class ":Solaris_XCEnvironmentalIndication"
deleting class ":Solaris_XCSystemBoardConfigChange"
deleting class ":Solaris_XCDomainIndication"
deleting class ":Solaris_WDRIndication"
deleting instance ":Solaris_ProviderPath.pathurl= "file:///usr/sadm/lib/wbem/wdr.jar""
WBEM DR CIM classes have been removed successfully.

  1. 确保设置了 DISPLAY 变量。

  2. 若正在运行 Solaris 8 2/02 操作环境:

    1. 运行 prodreg 实用程序。

    2. 选择“WBEM DR”。

    3. 单击“Uninstall”。

    4. 单击“Next”。

    5. 选择“Full”(缺省值)。

    6. 单击“Next”。

    7. 单击“Uninstall Now”。

  3. 若正在运行 Solaris 9 操作环境:

    1. 输入 cd /var/sadm/prod

    2. 输入 java uninstall_WBEM_DR_1_0

  4. 检查是否成功删除了上述软件包:

# pkginfo | /usr/xpg4/bin/grep -e SUNWWDRr -e SUNWWDRcfg -e SUNWmcfg

#

若 WDR 是使用 pkgadd(1M) 命令安装的
  1. 确保 CIMOM 正在运行。 请参见确保 CIMOM 正在运行和接受连接

  2. 以 root 身份运行驻留于 /opt/SUNWWDR/bin 目录中的 wdrunconfig 脚本,以删除所有 WDR CIM 类:

# cd /opt/SUNWWDR/bin
# ./wdrunconfig

Do you want to delete the WBEM DR CIM classes now? [y,n] y
Please enter the root password:
deleting class ":Solaris_SystemBoardHasControllers"
deleting class ":Solaris_SystemBoardHasMemory"
deleting class ":Solaris_SystemBoardHasProcessors"
deleting class ":Solaris_DomainHasSlots"
deleting class ":Solaris_SlotHasSystemBoard"
deleting class ":Solaris_CHController"
deleting class ":Solaris_CHMemory"
deleting class ":Solaris_CHCPU"
deleting class ":Solaris_CHSystemBoard"
deleting class ":Solaris_WDRAttachmentPoint"
deleting class ":Solaris_XCDomain"
deleting class ":Solaris_WDRDomain"
deleting class ":Solaris_XCSlot"
deleting class ":Solaris_WDRSlot"
deleting class ":Solaris_XCComponentRemove"
deleting class ":Solaris_XCComponentInsert"
deleting class ":Solaris_XCBoardPowerOn"
deleting class ":Solaris_XCBoardPowerOff"
deleting class ":Solaris_XCDomainConfigChange"
deleting class ":Solaris_XCDomainUp"
deleting class ":Solaris_XCDomainDown"
deleting class ":Solaris_XCDomainStop"
deleting class ":Solaris_XCDomainStateChange"
deleting class ":Solaris_XCEnvironmentalIndication"
deleting class ":Solaris_XCSystemBoardConfigChange"
deleting class ":Solaris_XCDomainIndication"
deleting class ":Solaris_WDRIndication"
deleting instance ":Solaris_ProviderPath.pathurl= "file:///usr/sadm/lib/wbem/wdr.jar""
WBEM DR CIM classes have been removed successfully.

  1. 删除 SUNWWDRcfg 软件包:

# pkgrm SUNWWDRcfg

The following package is currently installed:
SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWWDRcfg>

This package contains scripts which will be executed with super-user permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
/opt/SUNWWDR/bin/wdrunconfig
/opt/SUNWWDR/bin/wdrconfig
/opt/SUNWWDR/bin/newwdrlog
/opt/SUNWWDR/bin
/opt/SUNWWDR
## Executing postremove script.
20 3 * * 6 /opt/SUNWWDR/bin/newwdrlog # SUNWWDRcfg
## Updating system information.

Removal of <SUNWWDRcfg> was successful.

  1. 删除 SUNWWDRr 软件包:

# pkgrm SUNWWDRr

The following package is currently installed:
SUNWWDRr WBEM Automatic Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

Do you want to remove this package? y

## Removing installed package instance <SUNWWDRr>
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
/usr/sadm/mof/WDR_XC1.0.mof
/usr/sadm/mof/WDR_SG1.0.mof
/usr/sadm/mof/WDR_Core1.0.mof
/usr/sadm/mof <shared pathname not removed>
/usr/sadm/lib/wbem/wdr.jar
/usr/sadm/lib/wbem/libwdr_xc.so.1
/usr/sadm/lib/wbem/libwdr_sg.so.1
/usr/sadm/lib/wbem/libwdr.so.1
/usr/sadm/lib/wbem/libwdr.so
/usr/sadm/lib/wbem <shared pathname not removed>
/usr/sadm/lib <shared pathname not removed>
/usr/sadm <shared pathname not removed>
/usr/lib/locale/C/LC_MESSAGES/SUNW_WDR.mo
/usr/lib/locale/C/LC_MESSAGES/SUNW_MCFG.mo
/usr/lib/locale/C/LC_MESSAGES <shared pathname not removed>
/usr/lib/locale/C <shared pathname not removed>
/usr/lib/locale <shared pathname not removed>
/usr/lib <shared pathname not removed>
## Updating system information.

Removal of <SUNWWDRr> was successful.

  1. 检查是否成功删除了上述软件包:

# pkginfo | /usr/xpg4/bin/grep -e SUNWWDRr -e SUNWWDRcfg

#


procedure icon   用 Web 安装程序安装 WDR

  1. 将文件 wdr1.0.zip 下载到一个新目录。

  2. 在新目录下输入 unzip wdr1.0.zip。

  3. 输入 ./installer 并按照提示操作。


procedure icon   从 Solaris Supplement CD 安装 WDR

  1. 在 CDROM 驱动器中插入 Solaris Supplement CD。

  2. 输入 cd /cdrom/cdrom0/WBEM_DR_1.0

  3. 输入 ./installer 并按照提示操作。


procedure icon   用 pkgadd(1M) 命令安装 WDR:

  1. 进入 WDR 软件包所在的目录,例如:
    # cd /tmp/packages/wdr1.0

  2. 检查该目录中是否只有以下三个软件包:
    # ls

SUNWWDRcfg SUNWWDRr SUNWmcfg

  1. 运行 pkgadd(1M) 命令,并遵照安装程序的提示依次添加 SUNWWDRrSUNWWDRcfg 软件包。



注意 - SUNWmcfg 软件包只能安装在 Sun Fire 6800、4810、4800 和 3800 系统中。



# pkgadd -d .

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 2

Processing package instance <SUNWWDRr> from </ws/cadr1.0-gate/packages/sparc/wdr1.0_28>

WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
## Executing checkinstall script.
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user permission during the process of installing this package.

Do you want to continue with the installation of <SUNWWDRr> [y,n,?] y

Installing WBEM Dynamic Reconfiguration as <SUNWWDRr>

## Installing part 1 of 1.
/usr/lib/locale/C/LC_MESSAGES/SUNW_MCFG.mo
/usr/lib/locale/C/LC_MESSAGES/SUNW_WDR.mo
/usr/sadm/lib/wbem/libwdr_sg.so.1
/usr/sadm/lib/wbem/libwdr_xc.so.1
/usr/sadm/lib/wbem/wdr.jar
/usr/sadm/mof/WDR_Core1.0.mof
/usr/sadm/mof/WDR_SG1.0.mof
/usr/sadm/mof/WDR_XC1.0.mof
[ verifying class <none> ]
## Executing postinstall script.

Installation of <SUNWWDRr> was successful.

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1

Processing package instance <SUNWWDRcfg> from </ws/cadr1.0-gate/packages/sparc/wdr1.0_28>

WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user permission during the process of installing this package.

Do you want to continue with the installation of <SUNWWDRcfg> [y,n,?] y

Installing WBEM-Based Dynamic Reconfiguration Config Files as <SUNWWDRcfg>

## Installing part 1 of 1.
/opt/SUNWWDR/bin/newwdrlog
/opt/SUNWWDR/bin/wdrconfig
/opt/SUNWWDR/bin/wdrunconfig
[ verifying class <none> ]
## Executing postinstall script.

Installation of <SUNWWDRcfg> was successful.

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: q

  1. 检查是否已成功添加了 WDR 软件包:

# pkginfo | /usr/xpg4/bin/grep -e SUNWWDRcfg -e SUNWWDRr
application SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
application SUNWWDRr WBEM Dynamic Reconfiguration


procedure icon   最后一步是编译 .mof 文件:

用于编译 .mof 文件的 WDR 脚本名为 wdrconfig,位于 /opt/SUNWWDR/bin 目录中。 输入以下命令:

  1. # cd /opt/SUNWWDR/bin/

  2. # ls
    newwdrlog wdrconfig wdrunconfig

  3. # ./wdrconfig

Do you want to compile the MOF files now? [y,n] y
Enter root password:

Compiling Core MOF File
-------------------------------
Compilation succeeded.

Compiling Sun Fire 15k MOF File
-------------------------------
Compilation succeeded.

安装过程到此结束。

在 Sun Fire 15K/12K 系统中建立用户组

在 Sun Fire 15K/12K 系统控制器上,查看 /etc/group 文件可获得有关当前登录的用户所属组的信息。 要更改用户所属的组,请运行带有适当自变量的 /opt/SUNWSMS/bin/smsconfig 脚本来编辑 /etc/group 文件。 有关 Sun Fire 15K/12K 系统中的 SMS 安全性、管理模型和组的详尽信息,请参见《System Management Services (SMS) 1.2 Administrator Guide》 (部件号 816-5259)。

组决定着用户可执行的操作。 Sun Fire 15K/12K 系统中的组包括: platadmn、platoper、dmnxadm 和 dmnxrcfg,其中 x 为域标识符。


在 Sun Fire 6800、4810、4800 或 3800 系统中安装 WDR



注意 - 对于 Sun Fire 6800、4810、4800 和 3800 系统,不可将 WDR 安装在 SC 中;而应将其安装在中级服务处理器 (MSP) 中。



先决条件

在将 WDR 安装到 Sun Fire 6800、4810、4800 或 3800 系统之前,不论是 MSP、系统域还是 SC,应确保满足以下所有要求。

中级服务处理器 (MSP) 先决条件

软件要求

确保安装有以下操作环境之一:

可从 docs.sun.com 下载 Solaris 操作环境的相关文档资料。

硬件要求

MSP 的最低硬件要求为:

Sun Fire 6800/4810/4800/3800 系统先决条件

确保每个域中都安装有以下操作环境之一:

确保 SC 上安装有以下软件:

域配置服务器 (DCS)

通过以下步骤确保 DCS 已安装且正在 Sun Fire 6800/4810/4800/3800 上运行:

  1. 输入以下命令检查是否已安装 DCS 软件包:

# pkginfo | grep dcs

以下消息说明 DCS 软件包已存在:

system SUNWdcsr Domain Configuration Server, (Root)

system SUNWdcsu Domain Configuration Server

  1. 如果未安装 DCS 软件包,请用 pkgadd(1M) 命令来添加 SUNWdcsrSUNWdcsu 软件包。

确保 CIMOM 正在运行和接受连接

在运行 Solaris 8 2/02 操作环境的 MSP 上

以 root 身份登录到 MSP 并输入以下命令:

# /etc/init.d/init.wbem status

若返回消息“SMC server version 2.0.0 running on port 898.”,则表明 Solaris WBEM 服务正在运行和接受连接。

但是,若返回消息“SMC server not running on port 898.”,请输入以下命令检查 smcboot 进程:

# ps -ef| /usr/xpg4/bin/grep -e smcboot

若显示出两个 smcboot 进程,则表明 Solaris WBEM 服务正在运行和接受连接。 若未显示任何进程,则必须启动 Solaris WBEM 服务。

在运行 Solaris 9 操作环境的 MSP 上

以 root 身份登录到 MSP 并输入以下命令:

# /etc/init.d/init.wbem status

若返回消息“Solaris Management Console server version 2.1.0 running on port 898.”,则表明 Solaris WBEM 服务正在运行和接受连接。

但是,如果返回消息“Solaris Management Console server not running on port 898.”,则必须启动 Solaris WBEM 服务。

启动 Solaris WBEM 服务

以 root 身份输入以下命令:

# /etc/init.d/init.wbem start

详尽的 Sun Fire 6800、4810、4800 和 3800 安装指导

本节列出了在 Sun Fire 6800、4810、4800 或 3800 系统上成功安装 WDR 过程中,输入的所有命令行以及显示的输出信息。


procedure icon   安装 WDR 之前,卸载所有已安装的 WDR 版本



注意 - 只有在系统中已安装有 WDR 的情况下,才执行本小节中的步骤。 如果是初次安装 WDR,请直接进入下一小节开始安装 WDR 软件包。



若 WDR 是使用 Web 安装程序或 Solaris Supplement CD 安装的
  1. 确保 CIMOM 正在运行。 请参见确保 CIMOM 正在运行和接受连接

  2. 以 root 身份运行驻留于 /opt/SUNWWDR/bin 目录中的 wdrunconfig 脚本,以删除所有 WDR CIM 类:

# cd /opt/SUNWWDR/bin
# ./wdrunconfig

Do you want to delete the WBEM DR CIM classes now? [y,n] y
Please enter the root password:
deleting class ":Solaris_SystemBoardHasControllers"
deleting class ":Solaris_SystemBoardHasMemory"
deleting class ":Solaris_SystemBoardHasProcessors"
deleting class ":Solaris_DomainHasSlots"
deleting class ":Solaris_SlotHasSystemBoard"
deleting class ":Solaris_CHController"
deleting class ":Solaris_CHMemory"
deleting class ":Solaris_CHCPU"
deleting class ":Solaris_CHSystemBoard"
deleting class ":Solaris_WDRAttachmentPoint"
deleting class ":Solaris_XCDomain"
deleting class ":Solaris_WDRDomain"
deleting class ":Solaris_XCSlot"
deleting class ":Solaris_WDRSlot"
deleting class ":Solaris_XCComponentRemove"
deleting class ":Solaris_XCComponentInsert"
deleting class ":Solaris_XCBoardPowerOn"
deleting class ":Solaris_XCBoardPowerOff"
deleting class ":Solaris_XCDomainConfigChange"
deleting class ":Solaris_XCDomainUp"
deleting class ":Solaris_XCDomainDown"
deleting class ":Solaris_XCDomainStop"
deleting class ":Solaris_XCDomainStateChange"
deleting class ":Solaris_XCEnvironmentalIndication"
deleting class ":Solaris_XCSystemBoardConfigChange"
deleting class ":Solaris_XCDomainIndication"
deleting class ":Solaris_WDRIndication"
deleting instance ":Solaris_ProviderPath.pathurl= "file:///usr/sadm/lib/wbem/wdr.jar""
WBEM DR CIM classes have been removed successfully.

  1. 确保设置了 DISPLAY 变量。

  2. 若正在运行 Solaris 8 2/02 操作环境:

    1. 运行 prodreg 实用程序。

    2. 选择“WBEM DR”。

    3. 单击“Uninstall”。

    4. 单击“Next”。

    5. 选择“Full”(缺省值)。

    6. 单击“Next”。

    7. 单击“Uninstall Now”。

  3. 若正在运行 Solaris 9 操作环境:

    1. 输入 cd /var/sadm/prod

    2. 输入 java uninstall_WBEM_DR_1_0

  4. 检查是否成功删除了上述软件包:

# pkginfo | /usr/xpg4/bin/grep -e SUNWWDRr -e SUNWWDRcfg -e SUNWmcfg

#

若 WDR 是用 pkgadd(1M) 命令安装的
  1. 确保 CIMOM 正在运行。 请参见确保 CIMOM 正在运行和接受连接

  2. 以 root 身份运行驻留于 /opt/SUNWWDR/bin 目录中的 wdrunconfig 脚本,以删除所有 WDR CIM 类:

# cd /opt/SUNWWDR/bin
# ./wdrunconfig

Do you want to delete the WBEM DR CIM classes now? [y,n] y
Please enter the root password:
deleting class ":Solaris_SystemBoardHasControllers"
deleting class ":Solaris_SystemBoardHasMemory"
deleting class ":Solaris_SystemBoardHasProcessors"
deleting class ":Solaris_DomainHasSlots"
deleting class ":Solaris_SlotHasSystemBoard"
deleting class ":Solaris_CHController"
deleting class ":Solaris_CHMemory"
deleting class ":Solaris_CHCPU"
deleting class ":Solaris_CHSystemBoard"
deleting class ":Solaris_WDRAttachmentPoint"
deleting class ":Solaris_XCDomain"
deleting class ":Solaris_WDRDomain"
deleting class ":Solaris_XCSlot"
deleting class ":Solaris_WDRSlot"
deleting class ":Solaris_XCComponentRemove"
deleting class ":Solaris_XCComponentInsert"
deleting class ":Solaris_XCBoardPowerOn"
deleting class ":Solaris_XCBoardPowerOff"
deleting class ":Solaris_XCDomainConfigChange"
deleting class ":Solaris_XCDomainUp"
deleting class ":Solaris_XCDomainDown"
deleting class ":Solaris_XCDomainStop"
deleting class ":Solaris_XCDomainStateChange"
deleting class ":Solaris_XCEnvironmentalIndication"
deleting class ":Solaris_XCSystemBoardConfigChange"
deleting class ":Solaris_XCDomainIndication"
deleting class ":Solaris_WDRIndication"
deleting instance ":Solaris_ProviderPath.pathurl= "file:///usr/sadm/lib/wbem/wdr.jar""
WBEM DR CIM classes have been removed successfully.

  1. 删除 SUNWWDRcfg 软件包:

# pkgrm SUNWWDRcfg

The following package is currently installed:
SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWWDRcfg>

This package contains scripts which will be executed with super-user permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
/opt/SUNWWDR/bin/wdrunconfig
/opt/SUNWWDR/bin/wdrconfig
/opt/SUNWWDR/bin/newwdrlog
/opt/SUNWWDR/bin
/opt/SUNWWDR
## Executing postremove script.
20 3 * * 6 /opt/SUNWWDR/bin/newwdrlog # SUNWWDRcfg
## Updating system information.

Removal of <SUNWWDRcfg> was successful.

  1. 删除 SUNWWDRr 软件包:

# pkgrm SUNWWDRr

The following package is currently installed:
SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWWDRr>
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
/usr/sadm/mof/WDR_XC1.0.mof
/usr/sadm/mof/WDR_SG1.0.mof
/usr/sadm/mof/WDR_Core1.0.mof
/usr/sadm/mof <shared pathname not removed>
/usr/sadm/lib/wbem/wdr.jar
/usr/sadm/lib/wbem/libwdr_xc.so.1
/usr/sadm/lib/wbem/libwdr_sg.so.1
/usr/sadm/lib/wbem/libwdr.so.1
/usr/sadm/lib/wbem/libwdr.so
/usr/sadm/lib/wbem <shared pathname not removed>
/usr/sadm/lib <shared pathname not removed>
/usr/sadm <shared pathname not removed>
/usr/lib/locale/C/LC_MESSAGES/SUNW_WDR.mo
/usr/lib/locale/C/LC_MESSAGES/SUNW_MCFG.mo
/usr/lib/locale/C/LC_MESSAGES <shared pathname not removed>
/usr/lib/locale/C <shared pathname not removed>
/usr/lib/locale <shared pathname not removed>
/usr/lib <shared pathname not removed>
## Updating system information.

Removal of <SUNWWDRr> was successful.

  1. 删除 SUNWmcfg 软件包:

# pkgrm SUNWmcfg

The following package is currently installed:
SUNWmcfg SunMC / WDR Management Workstation Shared
Configuration File
(sparc) 1.0.0,REV=2002.05.24.16.34

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWmcfg>

This package contains scripts which will be executed with super-user permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package dependencies.
## Processing package information.
## Executing preremove script.
## Removing pathnames in class <none>
/opt/SUNWmcfg/lib/libmcfg.so.1
/opt/SUNWmcfg/lib/libmcfg.so
/opt/SUNWmcfg/lib
/opt/SUNWmcfg/bin/setconfigfile
/opt/SUNWmcfg/bin/mcfgconfig
/opt/SUNWmcfg/bin
/opt/SUNWmcfg
## Updating system information.

Removal of <SUNWmcfg> was successful.

  1. 检查是否成功删除了上述软件包:

# pkginfo | /usr/xpg4/bin/grep -e SUNWWDRr -e SUNWWDRcfg -e SUNWmcfg

#


procedure icon   用 Web 安装程序安装 WDR

  1. 将文件 wdr1.0.zip 下载到一个新目录。

  2. 在新目录下输入 unzip wdr1.0.zip。

  3. 输入 ./installer 并按照提示操作。


procedure icon   从 Solaris Supplement CD 安装 WDR

  1. 在 CDROM 驱动器中插入 Solaris Supplement CD。

  2. 输入 cd /cdrom/cdrom0/WBEM_DR_1.0

  3. 输入 ./installer 并按照提示操作。


procedure icon   用 pkgadd(1M) 命令安装 WDR:

  1. 进入 WDR 软件包所在的目录,例如:
    # cd /tmp/packages/wdr1.0

  2. 检查该目录中是否只有以下三个软件包:
    # ls

SUNWWDRcfg SUNWWDRr SUNWmcfg

  1. 运行 pkgadd(1M) 命令,遵照安装程序的提示依次添加 SUNWWDRrSUNWWDRcfgSUNWmcfg 软件包:

# pkgadd -d .

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 2

Processing package instance <SUNWWDRr> from </ws/cadr1.0-gate/packages/sparc/wdr1.0_28>

WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
## Executing checkinstall script.
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user permission during the process of installing this package.

Do you want to continue with the installation of <SUNWWDRr> [y,n,?] y

Installing WBEM Dynamic Reconfiguration as <SUNWWDRr>

## Installing part 1 of 1.
/usr/lib/locale/C/LC_MESSAGES/SUNW_MCFG.mo
/usr/lib/locale/C/LC_MESSAGES/SUNW_WDR.mo
/usr/sadm/lib/wbem/libwdr_sg.so.1
/usr/sadm/lib/wbem/libwdr_xc.so.1
/usr/sadm/lib/wbem/wdr.jar
/usr/sadm/mof/WDR_Core1.0.mof
/usr/sadm/mof/WDR_SG1.0.mof
/usr/sadm/mof/WDR_XC1.0.mof
[ verifying class <none> ]
## Executing postinstall script.

Installation of <SUNWWDRr> was successful.

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1

Processing package instance <SUNWWDRcfg> from </ws/cadr1.0- gate/packages/sparc/wdr1.0_28>

WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user permission during the process of installing this package.

Do you want to continue with the installation of <SUNWWDRcfg> [y,n,?] y

Installing WBEM-Based Dynamic Reconfiguration Config Files as <SUNWWDRcfg>

## Installing part 1 of 1.
/opt/SUNWWDR/bin/newwdrlog
/opt/SUNWWDR/bin/wdrconfig
/opt/SUNWWDR/bin/wdrunconfig
[ verifying class <none> ]
## Executing postinstall script.

Installation of <SUNWWDRcfg> was successful.

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 3

Processing package instance <SUNWmcfg> from </net/twinsun.west/export/workspace/d4/issakov/cadr1.0-packages/wdr1.0_28>

SunMC / WDR Management Workstation Shared Configuration File
(sparc) 1.0.0,REV=2002.05.24.16.34
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing SunMC / WDR Management Workstation Shared Configuration File as <SUNWmcfg>

## Installing part 1 of 1.
/opt/SUNWmcfg/bin/mcfgconfig
/opt/SUNWmcfg/bin/setconfigfile
/opt/SUNWmcfg/lib/libmcfg.so <symbolic link>
/opt/SUNWmcfg/lib/libmcfg.so.1
[ verifying class <none> ]

Installation of <SUNWmcfg> was successful.

The following packages are available:

1 SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config Files
(sparc) 1.0.0,REV=2002.05.24.16.34

2 SUNWWDRr WBEM Dynamic Reconfiguration
(sparc) 1.0.0,REV=2002.05.24.16.34

3 SUNWmcfg SunMC/WDR Management Workstation Shared Config File
(sparc) 1.0.0,REV=2002.05.24.16.34

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: q

  1. 检查是否已成功添加了 WDR 软件包:

# pkginfo | /usr/xpg4/bin/grep -e SUNWWDRcfg -e SUNWWDRr -e SUNWmcfg
application SUNWWDRcfg WBEM-Based Dynamic Reconfiguration Config
Files
application SUNWWDRr WBEM Dynamic Reconfiguration
application SUNWmcfg SunMC / WDR Management Workstation Shared
Configuration File


procedure icon   配置 WDR

输入以下命令:

# /opt/SUNWmcfg/bin/mcfgconfig

Do you want to configure the shared config file now? [yes]

Initiate Shared Configuration File
----------------------------------
SC IP Address or Hostname: <
我的 SC 主机名>
platformRComm: P-public
platformWComm: P-private
domainA IP Address or Hostname: <
我的域 A 的主机名>
domainB IP Address or Hostname:
domainC IP Address or Hostname: <
我的域 C 的主机名>
domainD IP Address or Hostname:
#



注意 - 上文中的 P-publicP-private 团体字符串是缺省的 SNMP 团体字符串。 您应输入您在 SC 中所设定的团体字符串。




procedure icon   最后一步是编译 .mof 文件:

用于编译 .mof 文件的 WDR 脚本名为 wdrconfig,位于 /opt/SUNWWDR/bin 目录中。 输入以下命令:

  1. # cd /opt/SUNWWDR/bin/

  2. # ls
    newwdrlog wdrconfig wdrunconfig

  3. 运行 wdrconfig 脚本。



注意 - 如果在装有 WDR 的 MSP 上运行 Sun MC 平台代理,则必须将 SC 配置为可向以下两个陷阱端口发送陷阱: 一个是用于 Sun MC 平台代理的端口(缺省端口: 162);另一个是用于 WDR 的端口(是将要用来配置下面的 SCTrapPort 的端口号)。



# ./wdrconfig

Initiate WDR Configuration File
-------------------------------
SCTrapPort[162]:
SCTrapPort value set to 162 in /var/opt/SUNWWDR/cfg/serengeti-wdr-cfg.dat

Do you want to compile the MOF files now? [y,n] y
Enter root password:

Compiling Core MOF File
-------------------------------
Compilation succeeded.

Compiling Serengeti MOF File
-------------------------------
Compilation succeeded.

安装过程到此结束。

为进程指示进行配置

为了在 Sun Fire 6800、4810、4800 或 3800 系统中收到进程指示,需要对 SC 进行配置使其向 WDR WBEM Provider 和 Sun MC 平台代理发送陷阱。 如果同一主机上同时安装有上述两个软件,则它们必须使用不同的端口。

执行如下任务:

在 Sun Fire 6800、4810、4800 或 3800 系统中建立用户组

在 Sun Fire 6800/4810/4800/3800 系统中,查看 /etc/group 文件可获得关于当前登录的用户所属组的信息。 要更改用户所属的组,请手动修改 /etc/group 文件。

组决定着用户可执行的操作。 任何用户都可以枚举 Sun Fire 6800/4810/4800/3800 系统中的域和插槽。

Sun Fire 6800/4810/4800/3800 系统中的组有: spltadmn、spltop、sdxadm、sdxop,其中 x 为域标识符。