Community
 
 
 

Radia - General Discussions

1323 followers
 
Avatar
Ekuberems

can I shutdown a desktop using RCA Agent

I wanted to know whether i can remotely shutdown the desktops from core server by broadcasting any remote command to RCA agent machines.
Also wanted to know can i broadcast a message from core server to agent machines during any emergency situation?

8 comments
0

Please sign in to leave a comment.

 
 

Previous 8 comments

Avatar
Srijith House

Could you please log a ticket with the support team, they should able to help you.

Comment actions Permalink
Avatar
Steve Phillips

I can provide one way this can be achieved. The standard OS command line tool for rebooting or powering down a Windows machine is shutdown.exe. I believe this tool is available for all versions of Windows.

Shutdown.exe exists in Windows\System32 directory, so this executable is not accessible to notify OOTB.
The executables that are available for use by Notify must reside in the RCA Agent directory (for security reasons).

One option would be to deploy a copy of the shutdown.exe file to the RCA agent directory so it can be used during notify.
I tested this in my lab environment and it works fine. The shutdown command accepts a number of command line parameters to allow for graceful shutdown.

So the steps to do this would be:
1) Create the package to deploy the shutdown.exe file to IDMSYS on Windows devices.
2) Deploy the package to all clients
3) Then the shutdown command would be available for notify on any machine. (for example “shutdown.exe -s -t 300”)

I would have to research further to determine if a similar approach could be used for Linux or Mac devices.

I will mention that the shutdown command can be used in timers without deploying anything special. This is because timers can use the "NATIVE" directive to launch executable files that are available in the PATH environment variable, and windows\system32 is specified in the path variable. So a timer can simply request: "native shutdown.exe -s -t 300”

However, the native directive is not available for notify as noted above for security reasons, Therefore to use this exe in a notify, it would have to be deployed to IDMSYS first.

Let me know if you have any questions on this approach.

Steve

Comment actions Permalink
Avatar
Ekuberems

Hi Steve,

I will try the solution suggested by you for shutdown.exe meanwhile could you tell me do we have to make separate packages for every windows version of PC's

Regards,
Sumant Kulkarni

Comment actions Permalink
Avatar
Kevin Farmer

Can you give a scenario that a workstation shutdown is applicable? Are you thinking of a power issue within a building?

I'm not sure what OS flavours you are using but you can just create a simple batch script using something like Windows shutdown command. Then use the Radia portal to assign the zservice to the clients and then issue a Radia connect to the workstations.

Once you have the shutdown zservice packaged up, you can use it how you (or your company) sees fit.

Comment actions Permalink
Avatar
Kevin Farmer

I forgot to scroll down to see other people's replies. My apologies.

To answer the question about whether the shutdown solution works for every OS, it's something that you will need to test. For Windows more than likely, but you will need to find a similar solution for other OS's. When you know what solutions you need for each OS, then create a unified zservice that has a batch script to determine the OS of the client and then jump to it's shutdown solution to be run.

Comment actions Permalink
Avatar
Ekuberems

Hi Kevin,

Thanks for your kind suggestion. I will try the solution and let you know.

Regards,
Sumant Kulkarni

Comment actions Permalink
Avatar
Craig Tonner

No out-of-the-box functionality for this.

CORE server is not a broadcasting station as such.

However, it can be used to send Notify commands to the notify daemon on each end point if you have the Agent installed.

You can send a notify command to all machines using the parameter hreboot=p. This will shutdown the device at the end of the connect.

If you assign a dummy ZSERVICE to the machine, say SOFTWARE.ZSERVICE.DUMMY that has no packages attached then you can do this:

 

radskman ip=<your rcs address>,sname=DUMMY,hreboot=p

 

The connect will only process the DUMMY zservice then shutdown.

 

If you want to put failsafes in place then you have to write scripts and use exit points defined in CLIENT.SETTINGS or even better create a package that creates a windows scheduled task on each device. The scheduled task should be defined to run only if the device has been Idle for a period of time. The command will be a standard windows "shutdown".

 

 

 

Comment actions Permalink
Avatar
enterprise.services

Example

radntfyc 192.168.100.120 radbootw

Comment actions Permalink

Top Contributors