上一主题: dpmrsi cancel 命令-取消运行中的 RSI 任务下一主题: dpmrsi capture_driverset 命令-捕获 RSI 驱动程序集


dpmrsi capture 命令-捕获 RSI 映像

使用 dpmrsi capture 命令可以捕获快速服务器映像的映像并存储它们以供稍后部署。

此命令具有以下格式:

dpmrsi capture
[-sc sc_url]
-name imagename
[-desc imagedescription]
[-type capturetype]
[-profile profilelocation]
-serverid targetserverid|-macaddr targetMACaddress
-ostype OStype
[-depot depotname]
[-excludefs filesystems]
-img_host RSIserver
-dc_user RSIapplicationuser -dc_password RSIapplicationpassword
[-ws_user username -ws_password password]
[-locale iso639value]
-sc sc_url

(可选)为服务控制器主机定义 URL。

示例:https://hostname:port/...

hostname

定义安装了服务控制器的完全限定主机。

示例:localhost.ca.com

port

定义服务控制器服务器的侦听端口。

示例:80

-name imagename

定义 RSI 映像的名称。

-desc imagedescription

定义文本,以便于标识。 有效条目:任何字母数字字符。

-type capturetype

指定要执行的捕获类型。 有效条目:offline 和 live。

默认值:live

-profile profilelocation

(可选)指定用于存储配置文件的位置,该配置文件包含在映像部署期间使用的捕获系统的配置。 指定指向配置文件的超链接(格式为 http://...)或 RSI 服务器上的配置文件位置的 UNIX 路径。

示例:/root/profiles/ServerA_capture_win2k3

-serverid target server ID | -macaddr targetMACaddress

定义快速服务器映像目标的服务器 ID 或 MAC 地址。 同时指定 -serverid-macaddr 参数时,-macaddr 优先。

-ostype OStype

定义目标服务器的 OS 配置。 运行 osspec 命令以获取不同 OS 类型的 OS 配置的列表,然后为目标服务器选择相应的 OS 配置。 要列出 RSI 服务器支持的 OStype,请运行命令 dpmrsi osspec -img_host RSIServer -dc_user RSIapplicationuser -dc_password RSIapplicationpassword。

示例:Microsoft_Windows-2003_*_*-*

-depot depotname

(可选)指定 RSI 库的名称。

示例:mydepot

默认:如果未指定 -depot 命令行参数,则使用默认库。

-excludefs filesystems

(可选)(仅限于 Windows 和 Linux/UNIX)指定要从捕获的映像中排除的文件系统路径列表,该列表区分大小写并以逗号分隔。

示例:“E,F”将从捕获的 Windows 映像中排除驱动器 E 和 F。

示例:“/images”将从捕获的 Linux 映像中排除名为“images”的任何文件系统。

重要信息! 排除根文件系统或其他必要的引导或交换文件系统可能会使捕获的映像不可用。

-img_host RSIserver

定义 RSI 服务器的名称。

-dc_user RSIapplicationuser

定义 RSI 应用程序用户名。

-dc_password RSIapplicationpassword

定义 RSI 应用程序用户的密码。

-ws_user username -ws_password password

(可选)指定要用于 Web 服务安全检查的凭据。 如果不包含凭据,系统会提示您输入凭据。 通过使用 caaipsecurity 设置自己的会话来避免提示输入凭据。

-locale iso639value

(可选)指定 IS0 639_3166 组合以覆盖默认的英语输出(例如:法语为 fr_FR)。 要使用命令提示符的区域设置,请指定“native”。

示例:捕获 RSI 映像

本示例从具有 server_id OEM:01 的服务器捕获 RSI 映像。

dpmrsi capture
–name testimage1
–desc "win2k3 server capture from OEM:01"
–ostype Microsoft_Windows-2003_*_*-* -type offline
-profile http://profileserver/profiles/testprofile1
-server_id OEM:01
-img_host rsiserver1
-dc_user user2 dc_password pass2
-ws_user wsuser -ws_password wsuserpassword