官术网_书友最值得收藏!

Silent profile creation

Now we have installed WAS silently, we need to cover how to create profiles using the profile management command-line script. The script is located in the<was_root>/bin folder with the following name:

  1. For Linux:

    ./manageprofiles.sh

  2. For Windows:

    manageprofiles.bat

The following table explains the valid command-line modes for the manageprofiles script:

To automatically create a profile, we will now craft a command-line script complete with command-line options to create a profile, with the same settings we used in our manual IIM profile creation earlier.

Please run the following command from the<was_root>/bin directory.

  1. For Linux:
     ./manageprofiles.sh -create -profileName appsrv01 -profilePath <was_root>profiles/appsrv01 -templatePath <was_root>/profileTemplates/default -cellName appsrv01node01 -hostName node01.waslocal.com -nodeName node01
    
  2. For Windows:
     manageprofiles.bat -create -profileName appsrv01 -profilePath <was_root>\profiles\appsrv01 -templatePath <was_root>\profileTemplates\default -cellName appsrv01node01 -hostName node01.waslocal.com -nodeName node01

The result will be as follows:

INSTCONFSUCCESS: Success: Profile appsrv01 now exists. Please consult /var/apps/was8/profiles/appsrv01/logs/AboutThisProfile.txt for more information about this profile.

Now that we have demonstrated how to create a profile using a command-line script, it is recommended that you experiment with the -help command to drill down into all the available subcommands of each mode of the manageprofiles command script. It may also be pertinent to read up on how to use the -response mode option, which allows a profile response file to be used instead of using such a lengthy command line. Response files are very useful in automation when you want to have a master script to manage many different profile creation types. Each different profile type can be specified by different response files.

主站蜘蛛池模板: 个旧市| 达州市| 泽州县| 嘉鱼县| 无棣县| 通城县| 莱西市| 武陟县| 迁安市| 钦州市| 呼伦贝尔市| 长兴县| 嘉义市| 治县。| 冀州市| 尉氏县| 富宁县| 伊通| 永嘉县| 峨眉山市| 长岛县| 永善县| 锡林浩特市| 翁源县| 奎屯市| 海城市| 桐城市| 余姚市| 吉水县| 和田市| 肥西县| 新宁县| 罗源县| 特克斯县| 赣榆县| 大悟县| 长宁区| 马尔康县| 凯里市| 马鞍山市| 新沂市|