For those (like myself, because of anti-virus software) that are unable to use psexec, there is another way.
If you run the Vray Spawner as a service then you can stop and start the service remotely by using the following on the command line:
C:\>sc <servername> stop "VRaySpawner 60"
C:\>sc <servername> start "VRaySpawner 60"
Where <servername> is the name of one of your render servers (i.e. \\rendernode001).
I created a simple batch file that looks like this:
sc \\rendernode01 stop "VRaySpawner 60"
sc \\rendernode02 stop "VRaySpawner 60"
sc \\rendernode03 stop "VRaySpawner 60"
sc \\rendernode04 stop "VRaySpawner 60"
pause
sc \\rendernode01 start "VRaySpawner 60"
sc \\rendernode02 start "VRaySpawner 60"
sc \\rendernode03 start "VRaySpawner 60"
sc \\rendernode04 start "VRaySpawner 60"
The "pause" in the middle waits for a key press. I included it so that I could wait a few seconds before I send the start commands.
I run the batch file in a cmd.exe window, which is necessary because I have a different login and pass on the render servers. Creating a shortcut to cmd.exe allows me to then change the properties of the shortcut so that it is run as a different user. Ah, the challenges of working for a larger company with a corporate it strategy.
-Jeremy
If you run the Vray Spawner as a service then you can stop and start the service remotely by using the following on the command line:
C:\>sc <servername> stop "VRaySpawner 60"
C:\>sc <servername> start "VRaySpawner 60"
Where <servername> is the name of one of your render servers (i.e. \\rendernode001).
I created a simple batch file that looks like this:
sc \\rendernode01 stop "VRaySpawner 60"
sc \\rendernode02 stop "VRaySpawner 60"
sc \\rendernode03 stop "VRaySpawner 60"
sc \\rendernode04 stop "VRaySpawner 60"
pause
sc \\rendernode01 start "VRaySpawner 60"
sc \\rendernode02 start "VRaySpawner 60"
sc \\rendernode03 start "VRaySpawner 60"
sc \\rendernode04 start "VRaySpawner 60"
The "pause" in the middle waits for a key press. I included it so that I could wait a few seconds before I send the start commands.
I run the batch file in a cmd.exe window, which is necessary because I have a different login and pass on the render servers. Creating a shortcut to cmd.exe allows me to then change the properties of the shortcut so that it is run as a different user. Ah, the challenges of working for a larger company with a corporate it strategy.
-Jeremy
Comment