storepasswords 命令会提示要求为概要文件中的空白条目输入密码,然后将已加密的密码存储在该文件中。存储已加密的密码可能不符合 FIPS 140-2。
您可以为概要文件中的单个任务或所有任务运行该命令。命令名不区分大小写。
storePasswords 命令语法
为了便于您阅读,以下命令语法分行显示。请将命令和选项输入在一行上,不要使用任何换行符。
提示: 如果 storePasswords 命令提示您将配置文件中的密码存储在磁盘上,那么您必须以 yes 或 no 作为响应(而不是以 y 或 n 作为响应)。运行 storePasswords 命令后,密码将在密码字段中显示为点。在 GUI 版本的配置管理器中打开配置 XML 时,您将看到这些点。
configmgr_cl.exe storePasswords [-task task_type
| -taskfile task_file_name] -profile
myprofile [-debug] [-help]
storePasswords 命令参数
- -task task_type
- -task task_type 参数指定要加密密码的特定任务。如果要存储所有任务的密码或者如果指定了 -taskfile task_file_name 参数,那么可以省略 -task task_type 参数。
任务类型名称由 listTasks 命令报告。
- -taskfile task_file_name
- -taskfile task_file_name 参数指定要使用的配置 XML 文件。
task_file_name 值不区分大小写。任务文件名由 listTasks 命令报告。
- 您可使用 -task 或 -taskfile 来指定要添加已加密密码的任务。如果 -task 和 -taskfile 均未指定,那么该命令将提示您在概要文件的所有任务中添加密码。
- -profile myprofile
- -profile myprofile 参数指定要使用的概要文件。myprofile 值可以是下列其中一项:
- 文件的名称,例如 WebApplicationDeploymentFile。
此概要文件必须位于 ier_install_path\EnterpriseRecords\configure\profiles 目录,其中 ier_install_path 是 IBM® Enterprise
Records 软件的安装位置。
- 概要文件目录的绝对路径,例如
"C:\Program Files\IBM\EnterpriseRecords\configure\profiles
\WebApplicationDeploymentFile"
或者opt/IBM/EnterpriseRecords/configure/profiles/WebApplicationDeploymentFile
- 或者以 ..\profiles 文件夹开始的相对路径。
要点: 如果此路径包含带有空格的目录名,请将整个路径用引号引起来。例如,"C:\Program Files\IBM\EnterpriseRecords\configure\profiles\WebApplicationDeploymentFile"
- -debug
- -debug 参数启用针对命令的日志记录。
限制: 安装 HP-UX 时不支持此参数。
- -help
- -help 显示命令帮助。
storePasswords 命令示例
- 加密并保存概要文件的所有密码。
- 以下命令将为名为 WebApplicationDeploymentFile 的概要文件中的所有空白条目加密并保存密码。
configmgr_cl.exe storePasswords -profile WebApplicationDeploymentFile
- 为概要文件中的特定 configurewepsphereapplicationserver 任务加密并保存密码。
- 以下命令将为名为 WSWebApplicationDeploymentFile 的概要文件的 configurewebsphereapplicationserver.xml 文件中所有空白条目加密并保存密码。
configmgr_cl.exe storePasswords -taskfile
configurewebsphereapplicationserver.xml
-profile WSWebApplicationDeploymentFile
- 显示 storepasswords 命令的帮助。
- 以下命令显示 storepasswords 命令的帮助:
configmgr_cl.exe storePasswords -help