快速创建并执行文件分发任务
<p class="shortdesc">通过快速执行(文件分发任务),可以帮助您快速地创建并在多台主机批量执行一次文件分发任务。</p>
<section class="section context" id="filedistribution__context_ocx_bvz_bkb"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">通过文件分发任务,可以将文件分发到多台服务器上。目前支持一对多的分发方式。</p>
<p class="p">文件分发每批次的文件数量限制为5个,且每个文件大小不大于500M。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">登录<span class="ph"><a class="xref" href="https://pinganyun.com/console/osp" target="_blank" rel="external noopener">操作系统服务平台OSP控制台</a></span>。</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="filedistribution__image_arl_vfl_bkb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20221503113014-118297f59b4f.png">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">选择完成后,您需要进行如下配置。</span>
<div class="itemgroup info">
<img class="image" id="filedistribution__image_zn5_yfl_bkb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20221503113014-1d67f76696fc.png" width="800">
<table class="table frame-all" id="filedistribution__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="filedistribution__table_gjj_zdl_bkb__entry__1">配置项</th>
<th class="entry" id="filedistribution__table_gjj_zdl_bkb__entry__2">说明</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">任务名称</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<p class="p">关于该文件分发任务的名称。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">任务描述</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<p class="p">关于该文件分发任务的描述。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">源文件</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<p class="p">单击<span class="ph uicontrol">本地上传</span>按钮,在本地计算机选择需要分发的文件,选择后,文件加入上传队列随即上传。</p>
<div class="note note note_note"><span class="note__title">说明:</span> 每次最多能分发5个文件,每个文件最大为500M。</div>
</td>
</tr>
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">目标机器</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<ul class="ul" id="filedistribution__ul_xqs_wz4_tkb">
<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="filedistribution__d6e213" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20221503113014-19cfd7589970.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="filedistribution__d6e240" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20221503113014-1e91d11b96dd.png" width="500">
</li>
</ul>
</td>
</tr>
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">Windows目录</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<p class="p">文件上传到主机存放的目录位置(Windows系统)。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">Linux目录</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<p class="p">文件上传到主机存放的目录位置(Linux系统)。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__1 ">
<p class="p"><span class="ph uicontrol">覆盖原文件</span></p>
</td>
<td class="entry" headers="filedistribution__table_gjj_zdl_bkb__entry__2 ">
<div class="p">
<ul class="ul" id="filedistribution__ul_x2x_q5p_dkb">
<li class="li">若勾选,相同文件名的文件会被覆盖。</li>
<li class="li">若不勾选,如果相同目录的文件名已存在,则放弃分发到这个主机,并报文件已存在异常信息。</li>
</ul>
</div>
</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="filedistribution__result_xcr_vgl_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="filedistribution__image_wtb_q3q_dkb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20221503113014-1f915096950f.png" width="750">
</div>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!