execute_sa 命令
execute_sa 命令将应用输入文件中的值来复制解决方案、根据模板创建解决方案、将解决方案转换为模板或者列示对象库中的属性和文档类。
语法
以下语法使用了换行符,以使命令的格式简单明了而便于阅读。 但是,在实际输入时,应在同一行上输入命令和选项,请勿换行。
configmgr_cl execute_sa -operation operation_type
-file input_file_name
[-silent] [-force] [-help]参数
- -operation operation_type
- 表示要运行的操作。
表 1. operation_type 的有效值 选项 描述 COPY
复制解决方案。
createFromTemplate
根据模板创建解决方案。
列表
使用对象库中的属性和文档类来创建 CSV 文件。
convertToTemplate
将解决方案转换为模板。
- -file 输入文件名称
指定您使用 generate_input_sa 命令创建的输入文件的完整路径。 输入文件提供 Content Platform Engine 认证信息以及所选操作的其他信息。 在运行 execute_sa 命令之前,您必须编辑输入文件中的属性值。
例如,使用 C:\propertylist\propertylist.txt。
- -silent
- 可选:当您指定 -silent 参数时,控制台中不会显示任何提示或参考消息,但会将错误写入日志。 会根据需要来显示故障消息和验证错误消息,例如,有关缺少密码或者端口号无效的消息。 如果您使用 execute 命令以运行概要文件中的所有活动,并且指定了 -silent 参数,那么还必须指定 -force 参数。
- -force
- 可选,仅当使用 -silent 参数时适用。 指定 -force 参数时,运行活动时不会暂停对验证错误消息的必需响应(例如,有关缺少密码或端口号无效的消息)。
- -help
- 可选参数:显示有关命令语法而不是运行命令的简要消息。
样本命令
下列示例使用了换行符,以使命令的格式简单明了而便于阅读。 但是,在实际输入时,应在同一行上输入命令和选项,请勿换行。
- 创建属性和文档类的列表。
- 以下命令将使用 C:\propertylist 输入文件来创建属性和文档类的列表:
configmgr_cl execute_sa -operation list -file C:\propertylist\propertylist.txt - 复制现有解决方案。
- 以下命令将使用 C:\solutions\copy_solution_input.txt 输入文件中的值来复制解决方案:
configmgr_cl execute_sa -operation copy -file C:\solutions\copy_solution_input.txt - 根据模板创建解决方案。
- 以下命令将使用 C:\solutions\copy_solution_input.txt 输入文件中的值并根据模板来创建解决方案:
configmgr_cl execute_sa -operation createFromTemplate -file C:\solutions\from_template_input.txt - 将解决方案转换为模板。
- 以下命令将使用 C:\solutions\copy_solution_input.txt 输入文件中的值来将解决方案转换为模板:
configmgr_cl execute_sa -operation convertToTemplate -file C:\solutions\to_template_input.txt - 显示有关 execute_sa 命令的帮助。
- 以下命令将显示有关 execute_sa 命令的帮助:
configmgr_cl execute_sa -help