Sie sind auf Seite 1von 11

Infrastructure Training

Lesson 7 Recap
Robot Setup – Connect to
Orchestrator

academy.uipath.com
Manually connecting robots to Orchestrator
(using the Settings dialog box)

Provision the robot in Orchestrator first; copy the Robot Key

Provision the
On the robot
robot in Orchestrator
machine, click the UiPathfirst; retain
icon in the tray
the system
Robot Key

If the icon is not displayed, start the UiPath Robot program

Click the gear button and select Settings – you need to have
elevated rights to open Settings

Provide the Robot Key copied earlier and the Orchestrator URL
Connecting robots to Orchestrator – Potential Errors
Errors that can appear when we try to connect the robot to Orchestrator:

There are no robots with the Cancelled task, bad request, or the
specified key and machine name. remote host did not answer in a
The Robot Key that you typed is wrong, or
timely manner.
you made a typo when provisioned the Check LAN Settings in Internet Options ->
robot in Orchestrator Connections; if a proxy server is involved,
we will discuss that in detail later on

No Robots defined! The remote certificate is invalid


You copied the Robot Key of a different according to the validation procedures.
robot / machine
Either the public key of the self-signed
certificate was not imported on the robot
machine, or it was imported to the
The given header was not found. wrong place; we will discuss that in detail
later on
Check again the Orchestrator URL, maybe
you copied it from the browser and it
contains more than the simple URL (like
…/robots)
Manually connecting robots to Orchestrator
(using the command line)

Provision the robot in You can type UiRobot.exe -


Orchestrator first; copy -help at any time
the Robot Key

On the robot machine, Connect the robot to

open cmd with elevated Orchestrator by


rights (Run as running:Uirobot.exe --
connect -url
administrator)
<orchestrator_url> -key
<robot_key>
Navigate to the main
The same errors as
installation folder,
those for the Settings
C:\Program Files
dialog box can appear
(x86)\UiPath\Studio (or
C:\Program Files
(x86)\UiPath Platform).
Dealing with a proxy server

If the robot machine uses a proxy server (not a proxy script), then the following
change needs to be made:
➢ In C:\Program Files (x86)\UiPath Studio\UiRobot.exe.config, add the following section, at the end
of the <configuration> section (in this section, but at the end of it):

<configuration>
....
<system.net>
<defaultProxy>
<proxy
usesystemdefault="true"
proxyaddress="http://<your_proxy>:<your_port>"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
</configuration>
Dealing with a proxy server (c-ed)

If UiPath Studio is also installed on the robot machine, the additional change below
has to be made to enable Publishing from UiPath Studio to Orchestrator

➢ In C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\NuGet\NuGet.config (create
this file if it doesn't exist), add the following section, in the <configuration> node:

<configuration>
....
<config>
<add key="http_proxy"
value="http://<your_proxy>:<your_port>"/>
</config>
</configuration>

Restart the “UiPath Robot” service.


This only covers the un-authenticated proxy scenario.
Automating the connection of robots to Orchestrator
Fact:
Each robot has a distinct machine name and a unique Robot Key (ignore
High Density Robots, where several robots share the same machine name
and Robot Key)

Problem:
To deploy 500 robots after provisioning them in Orchestrator, we have
to edit the settings of each robot to specify the Robot Key; that
operation is very hard to automate, because each machine needs to be
configured with a different Robot Key

Solution:
Let the robots access a specific endpoint in Orchestrator API to
extract the configuration (Robot Key, Nuget API Key,
Orchestrator URL, Activities Feed, etc.)
Automating the connection of robots to
Orchestrator(c-ed)

Implementation: 1. At installation time: run msiexec /i


UiPathPlatform.msi with UiPathPlatform.msi
1. At installation time, using CONNECTIONSTRING. One ADDLOCAL=DesktopFeature,
the MSI installer; single command is used Robot,RegisterService,Packa
2. After installation, using for all the robots, because ges,StartupLauncher
UiRobot.exe the connection string is CONNECTIONSTRING=https:
//orchestrator/api/robotsser
the same.
vice/GetConnectionData?te
nantId=1 /qn
Automating the connection of robots to
Orchestrator(c-ed)

Implementation: The command is the


following:
1. At installation time, using 2. Post installation: run
the MSI installer; UiRobot.exe with -- UiRobot.exe --connect -
2. After installation, using connect -connectionString connectionString
UiRobot.exe https://orchestrator/api/robot
sservice/GetConnectionData?t
enantId=1
Importing the public key of a self-signed certificate
A self-signed certificate, if On the robot machine, copy Open MMC, add the Certificates snap-in for
generated from IIS, is the file locally the Computer account, go to Trusted Root
automatically Certification Authorities store, right click on
saved in the Certificates, All Tasks, Import
“Personal” store

Import the “.cer” file


copied from the server

Restart the UiPath Robot Service


On the web server (Orchestrator) open
MMC, add the Certificates snap-in for
the Computer account, go to Personal
store, select the self-signed certificate, Choose to not export the private key; leave the
right click, All Tasks, Export other options with their defaults and save the file
Thank you!

academy.uipath.com

Das könnte Ihnen auch gefallen