WindowsProfile コンポーネントの変数セットを作成するには、次の例のようなコマンドを入力します。
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/WindowsImage \ -name "windows2003" -u admin -p admin -vars "osp_server=masterserver-osp;version=2003; \ os_name="WIN2003_trial";description=test windows image 2003;min_disk_size=10GB; \ boot_server_name=biw1;boot_server_subnet_address=10.42.42.0; \ boot_server_subnet_ip_address=10.42.42.4;boot_srv_active_directory_domain=n1isp.sfbay.sun.com; \ windows_product_directory=D:\\\\RemoteInstall\\\\Setup\\\\English\\\\Images\\\\Win2003_trial; \ sif_file=D:\\\\RemoteInstall\\\\Setup\\\\English\\\\Images\\\\Win2003_trial\\\\i386\\\\templates\\\\ Ispristndrd.sif" |
windows_product_directory は、その全内容を 1 行で入力します。表示の目的から、上記の例のエントリは 3 行に分けて表示されています。
これらの変数の詳細については、「Windows プロビジョニングプロファイルの変数」を参照してください。
次のエントリを含む /tmp/windows-profile という名前のファイルを作成します。
noncustom Windows 2003 EE x86 Profile false |
このファイル内のエントリはそれぞれ次のプラン変数に対応しています。
noncustom はプロファイルの名前です。
Windows 2003 EE x86 Profile はプロファイルの説明です。
false は、カスタムプロファイルを使用しないことを示します。
プランを実行するには、次の例のようなコマンドを入力します。
# cr_cli -cmd pe.p.run -u admin -p admin -PID NM:/com/sun/n1osp/untyped/WindowsImage-create-profile \ -tar H:NM:risserver-windows -comp + -vs windows2003 -pto 30 -nto 1 -f /tmp/windows-profile0 |