<codeclass="sig-prename descclassname">pyOpenRPA.Orchestrator.__Orchestrator__.</code><codeclass="sig-name descname">AgentOSCMD</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inGSettings</span></em>, <emclass="sig-param"><spanclass="n">inHostNameStr</span></em>, <emclass="sig-param"><spanclass="n">inUserStr</span></em>, <emclass="sig-param"><spanclass="n">inCMDStr</span></em>, <emclass="sig-param"><spanclass="n">inRunAsyncBool</span><spanclass="o">=</span><spanclass="default_value">True</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Orchestrator/__Orchestrator__.html#AgentOSCMD"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyOpenRPA.Orchestrator.__Orchestrator__.AgentOSCMD"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyOpenRPA.Orchestrator.__Orchestrator__.</code><codeclass="sig-name descname">AgentOSCMD</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inGSettings</span></em>, <emclass="sig-param"><spanclass="n">inHostNameStr</span></em>, <emclass="sig-param"><spanclass="n">inUserStr</span></em>, <emclass="sig-param"><spanclass="n">inCMDStr</span></em>, <emclass="sig-param"><spanclass="n">inRunAsyncBool</span><spanclass="o">=</span><spanclass="default_value">True</span></em>, <emclass="sig-param"><spanclass="n">inSendOutputToOrchestratorLogsBool</span><spanclass="o">=</span><spanclass="default_value">True</span></em>, <emclass="sig-param"><spanclass="n">inCMDEncodingStr</span><spanclass="o">=</span><spanclass="default_value">'cp1251'</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Orchestrator/__Orchestrator__.html#AgentOSCMD"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyOpenRPA.Orchestrator.__Orchestrator__.AgentOSCMD"title="Permalink to this definition">¶</a></dt>
<dd><p>Send CMD to OS thought the pyOpenRPA.Agent daemon. Result return to log + Orchestrator by the A2O connection</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>inGSettings</strong>– Global settings dict (singleton)</p></li>
<li><p><strong>inHostNameStr</strong>–</p></li>
<li><p><strong>inUserStr</strong>–</p></li>
<li><p><strong>inCMDStr</strong>–</p></li>
<li><p><strong>inRunAsyncBool</strong>–</p></li>
<li><p><strong>inHostNameStr</strong>– Agent host name in upper case (example “RPA01”, “RPA_99” and so on). Active agent session you can see on the orchestrator dashboard as Orchestrator admin</p></li>
<li><p><strong>inUserStr</strong>– Agent user name in upper case (example “UserRPA”). Active agent session you can see on the orchestrator dashboard as Orchestrator admin</p></li>
<li><p><strong>inCMDStr</strong>– command to execute on the Agent session</p></li>
<li><p><strong>inSendOutputToOrchestratorLogsBool</strong>– True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</p></li>
<li><p><strong>inCMDEncodingStr</strong>– Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is “cp1251” early was “cp866” - need test</p></li>
<p>If you need to give admin rights - you don’t customize UAC dict.</p>
<p>If you need to give some little rights for user only for one robot in orchestrator web panel - you can set the following properties in UAC dict.</p>
<p>To work with UAC you can use defs <codeclass="docutils literal notranslate"><spanclass="pre">Orchestrator.UAC</span></code> group.</p>
<p>!!!ATTENTION!!!</p>
<p>Need practice example to work with UAC! - too hard to understand</p>
<h2>UAC Dict for Orchestrator WEB UI rights<aclass="headerlink"href="#uac-dict-for-orchestrator-web-ui-rights"title="Permalink to this headline">¶</a></h2>
<spanclass="s2">"Python32FullPath"</span><spanclass="p">:</span><spanclass="s2">"..</span><spanclass="se">\\</span><spanclass="s2">Resources</span><spanclass="se">\\</span><spanclass="s2">WPy32-3720</span><spanclass="se">\\</span><spanclass="s2">python-3.7.2</span><spanclass="se">\\</span><spanclass="s2">python.exe"</span><spanclass="p">,</span><spanclass="c1">#Set from user: "..\\Resources\\WPy32-3720\\python-3.7.2\\OpenRPARobotGUIx32.exe"</span>
<spanclass="s2">"Python64FullPath"</span><spanclass="p">:</span><spanclass="s2">"..</span><spanclass="se">\\</span><spanclass="s2">Resources</span><spanclass="se">\\</span><spanclass="s2">WPy64-3720</span><spanclass="se">\\</span><spanclass="s2">python-3.7.2.amd64</span><spanclass="se">\\</span><spanclass="s2">python.exe"</span><spanclass="p">,</span><spanclass="c1">#Set from user</span>
<spanclass="s2">"Python32ProcessName"</span><spanclass="p">:</span><spanclass="s2">"pyOpenRPA_UIDesktopX32.exe"</span><spanclass="p">,</span><spanclass="c1">#Config set once</span>
<spanclass="s2">"Python64ProcessName"</span><spanclass="p">:</span><spanclass="s2">"pyOpenRPA_UIDesktopX64.exe"</span><spanclass="c1">#Config set once</span>
<spanclass="p">}</span>
<spanclass="c1"># Init the pyOpenRPA configuration</span>
<spanclass="n">lGUIDStr</span><spanclass="o">=</span><spanclass="nb">str</span><spanclass="p">(</span><spanclass="n">uuid</span><spanclass="o">.</span><spanclass="n">uuid4</span><spanclass="p">())</span><spanclass="c1"># generate new GUID</span>
<spanclass="sd"> Send CMD to OS thought the pyOpenRPA.Agent daemon. Result return to log + Orchestrator by the A2O connection</span>
<spanclass="sd"> :param inGSettings: Global settings dict (singleton)</span>
<spanclass="sd"> :param inHostNameStr:</span>
<spanclass="sd"> :param inUserStr:</span>
<spanclass="sd"> :param inCMDStr:</span>
<spanclass="sd"> :param inRunAsyncBool:</span>
<spanclass="sd"> :param inHostNameStr: Agent host name in upper case (example "RPA01", "RPA_99" and so on). Active agent session you can see on the orchestrator dashboard as Orchestrator admin</span>
<spanclass="sd"> :param inUserStr: Agent user name in upper case (example "UserRPA"). Active agent session you can see on the orchestrator dashboard as Orchestrator admin</span>
<spanclass="sd"> :param inCMDStr: command to execute on the Agent session</span>
<spanclass="sd"> :param inSendOutputToOrchestratorLogsBool: True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</span>
<spanclass="sd"> :param inCMDEncodingStr: Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is "cp1251" early was "cp866" - need test</span>
<spanclass="s2">"ArgGSettings"</span><spanclass="p">:</span><spanclass="s2">"inGSettings"</span><spanclass="p">,</span><spanclass="c1"># Name of GSettings attribute: str (ArgDict) or index (for ArgList)</span>
<spanclass="s2">"ArgLogger"</span><spanclass="p">:</span><spanclass="kc">None</span><spanclass="c1"># Name of GSettings attribute: str (ArgDict) or index (for ArgList)</span>
Send CMD to OS thought the pyOpenRPA.Agent daemon. Result return to log + Orchestrator by the A2O connection
@ -326,16 +326,22 @@ Send CMD to OS thought the pyOpenRPA.Agent daemon. Result return to log + Orches
* **inGSettings** – Global settings dict (singleton)
* **inHostNameStr** –
* **inHostNameStr** –Agent host name in upper case (example “RPA01”, “RPA_99” and so on). Active agent session you can see on the orchestrator dashboard as Orchestrator admin
* **inUserStr** –
* **inUserStr** –Agent user name in upper case (example “UserRPA”). Active agent session you can see on the orchestrator dashboard as Orchestrator admin
* **inCMDStr** –
* **inCMDStr** –command to execute on the Agent session
* **inSendOutputToOrchestratorLogsBool** – True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True
* **inCMDEncodingStr** – Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is “cp1251” early was “cp866” - need test