cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Resource Manager

Dear Community,

We received a question from a customer wondering whether DRM could reboot a Resource, if that Resource has become unresponsive (for technical reasons) - I watched the DRM webinar & read the technical documetation on the DX but I don't find this answer. Would anyone know?

Thanks

Florina



------------------------------
Florina Andonie
Solutions Consultant
SS&C Blue Prism
------------------------------
6 REPLIES 6

jan.novak
Level 2

potentially yes.

assuming there is limited access to the RR automate.exe HTTP API, but still network connection as a minimum. then it would be possible to execute a powershell script that reboots the remote RR. This requires a powershell VBO and credentials with the needed privileges to perform the remote reboot through powershells 'Restart-Computer' cmdlet. here is an example that could be modified for this use, including secure handling of credentials.:


# Define the hostname of the server you want to reboot
$hostname = "YourServerHostname"

# Credential handling
# Assuming you have a file with the encrypted password. If not, create one as shown below:

# $password = "YourPassword" | ConvertTo-SecureString -AsPlainText -Force
# $username = "DOMAIN\Username"
# $password | ConvertFrom-SecureString | Out-File "C:\Path\To\Your\EncryptedPassword.txt"

# Read the encrypted password from a file and convert it back to a SecureString
$encryptedPasswordPath = "C:\Path\To\Your\EncryptedPassword.txt"
$securePassword = Get-Content $encryptedPasswordPath | ConvertTo-SecureString

# Construct the credential object
$username = "DOMAIN\Username" # Change DOMAIN\Username to your actual credentials
$credential = New-Object System.Management.Automation.PSCredential($username, $securePassword)

# Perform the remote reboot
Restart-Computer -ComputerName $hostname -Credential $credential -Force -ErrorAction Stop

Another way is to use the windows built in shutdown command, 'shutdown /r /m \\remotehostname1'

------------------------------
jan novak
------------------------------

Another way would be to use the login agent to do that using the restart action... however, bear in mind that all of these options will work only if the resource pc (listener) is unresponsive - not the machine itself.

if the machine itself becomes unresponsive, then usually the only way to fix it is by restarting it from the admin console in the azure portal.



------------------------------
Andrzej Silarow
Principal Consultant
RPA Guru
Europe/London
------------------------------
Andrzej Silarow

KodiSrihari
Level 8

Based on the "State" and "Connection" status of the particular BOTs which we can get from Control > Resources.

For instance, "State- Connection Lost" and "Connection - Not connected".

Does this Power shell script can able to identify and run a Restart command on particular Machines ?



------------------------------
Srihari
RPA Developer
------------------------------

That script is very simple, but could be modified, but it quickly gets more involved. personally i would make the script connect to the bp database, and check the status of the resources, and then act on the resources, based on this information.

/J



------------------------------
jan novak
------------------------------

Thanks @jan.novak for the information.



------------------------------
Srihari
RPA Developer
------------------------------

Hi Asilarow,

I didn't manage to find a "restart" action in Login Agent. Screenshot below. Where can that action be found?

alfredlau_0-1719386818664.png

Thanks in advance.

Alfred

 

Alfred Lau
Professional Services EMEA
SSNC Blue Prism