快速创建并执行健康巡检任务
<p class="shortdesc">通过快速执行(健康巡检任务),可以帮助您快速地创建并在多台主机批量执行一次健康巡检任务。</p>
<section class="section context" id="healthinspection__context_rdc_nzz_bkb"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">健康巡检是OSP提供主机操作系统相关的一系列检测项,帮助您了解主机操作系统相关健康情况,提前发现隐藏的风险。</p>
<p class="p">系统根据按操作系统提供了不同的巡检模板。您可以根据实际巡检需求选择不同类型模板来完成相应的巡检任务。</p>
</section>
<section id="healthinspection__steps_pyp_13l_bkb"><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps" id="healthinspection__steps_pyp_13l_bkb"><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="https://pinganyun.com/console/osp" target="_blank">系统管理服务OSP控制台</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在左侧导航栏中,单击<span class="ph menucascade"><span class="ph uicontrol">作业管理</span><abbr> > </abbr><span class="ph uicontrol">快速执行</span></span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="keyword wintitle">快速脚本执行</span>页面,选择<span class="ph uicontrol">任务类型</span>为<span class="ph uicontrol">健康巡检</span>。</span>
<div class="itemgroup info">
<img class="image" id="healthinspection__image_v2d_d3l_bkb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174752-11ff5bec928b.png">
</div>
</li><li class="li step stepexpand" id="healthinspection__step_a2m_5zz_bkb">
<span class="ph cmd">选择完成后,您需要进行如下配置。</span>
<div class="itemgroup info">
<img class="image" id="healthinspection__image_rkm_23l_bkb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174752-1f0bbbb49211.png">
<table class="table frame-all" id="healthinspection__table_gjj_zdl_bkb"><caption></caption><colgroup><col style="width:34.01360544217687%"><col style="width:65.98639455782312%"></colgroup><thead class="thead">
<tr class="row">
<th class="entry" id="healthinspection__table_gjj_zdl_bkb__entry__1">配置项</th>
<th class="entry" id="healthinspection__table_gjj_zdl_bkb__entry__2">说明</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">任务名称</span></p>
</td>
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__2 ">
<p class="p">关于该健康巡检任务的名称。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">任务描述</span></p>
</td>
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__2 ">
<p class="p">关于该健康巡检任务的描述。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">巡检模板</span></p>
</td>
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__2 ">
<p class="p">单击下拉按钮,按操作系统选择不同的巡检模板。</p>
<p class="p">选择完成后,单击<span class="ph uicontrol">模板详情</span>您可以查看该模板的详细信息。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">目标机器</span></p>
</td>
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__2 ">
<ul class="ul" id="healthinspection__ul_ztn_rgl_bkb">
<li class="li">
<p class="p"><strong class="ph b">方式一:选择主机</strong></p>
<p class="p">单击<span class="ph uicontrol">+选择机器</span>,在弹出的<span class="keyword wintitle">主机选择</span>页面中,勾选一个或者多个主机,然后单击<span class="ph uicontrol">选择</span>。</p>
<img class="image" id="healthinspection__d21e199" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174751-16a350799ebd.png" width="500">
</li>
<li class="li">
<p class="p"><strong class="ph b">方式二:导入主机</strong></p>
<p class="p">单击<span class="ph uicontrol">快速导入</span>,在<span class="ph uicontrol">主机列表</span>框中,输入主机名称或者IP地址,输入完成后单击<span class="ph uicontrol">主机匹配</span>。匹配无误后,单击<span class="ph uicontrol">确定</span>。</p>
<div class="note note note_note"><span class="note__title">说明:</span> 输入的IP或主机名称,可以用“英文逗号,”、“英文分号;”、“|”或“换行符”将多个主机名进行分隔。</div>
<img class="image" id="healthinspection__d21e226" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174751-1ef2ca479d9b.png" width="500">
</li>
</ul>
</td>
</tr>
<tr class="row">
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">超时时间</span></p>
</td>
<td class="entry" headers="healthinspection__table_gjj_zdl_bkb__entry__2 ">
<p class="p">设置任务执行超时时间,如果超过了设定的时间,CloudAgent会结束任务进程。单位分钟,范围1~30,空设置将默认超时时间为30分钟。</p>
</td>
</tr>
</tbody></table>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">完成配置后,单击<span class="ph uicontrol">立即执行</span>。</span>
<div class="itemgroup info">
<div class="p">
<div class="note note note_note"><span class="note__title">说明:</span> 配置完成后,若单击<span class="ph uicontrol">另存为</span>,该任务会在<span class="ph uicontrol">任务管理</span>中保存为一个任务。</div>
</div>
</div>
</li></ol></section>
<section class="section result" id="healthinspection__result_rqz_v3l_bkb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">执行完成后,系统会跳转到<span class="keyword wintitle">健康巡检</span>页面,您可以查看<span class="ph uicontrol">任务详情</span>、<span class="ph uicontrol">实例详情</span>和<span class="ph uicontrol">巡检结果</span>。</p>
<div class="p">
<img class="image" id="healthinspection__image_dzk_4jq_dkb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174752-115b76ff994a.png" width="800">
</div>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!