HI Maccebu.
Right you do not need the Xgrid infrastructure in place to use the rendering abilities of Shake, which uses qmaster to do the network render management and assign specific jobs. Unfortunately I can't help with the Maya scripting as I use apple purely from a Networking and storage perspective. I also use it as a platform for Oracle.
Right Back to the Shell Scripts:
Would you prefer... to shell script or apple script your script... From looking at your requirements all you want to do is shutdown a large amount of workstations / OSX boxes at the same time. There is nothing wrong with your Bash Script the only issue is that you need to authenticate to each and every workstation in order to shut it down. It would be easier as you have an OSX Network if you were to use the workgroup manager to tell your workstations to shut down at a particular time.
There is also some shareware software below which will let you take an over of your network and all you to shutdown / restart specific machines on your network ?
http://softwares.bajram.com/utilities/#Super_Shut_Down
Another option if it is just to ensure that every machine shuts down each night is to build the script and then setup it up to run daily at 2:00am say using chron.
Or are you trying to build a dynamic script so that regardless of day / night a user can just run the script and kill every workstation. This would be applicable say you guys were up late and rendering. The render is over and you want to shut all the machines down, in which case you run the shell script. The app above should suffice for this otherwise, you are going to have to amend the script to ssh to the box, authenticate to each box and then use Sudo to perform a shutdown -h then close the ssh connection and hit the next ip address.
In order to do this you need to configure each apple workstation to ensure that port 22 is open for SSH, and you shall also need a user account with sudo privileges.
A security risk you will have as well is that although the authentication to the box is going to be encrypted the script is not, so your script has a lot of user names and passwords written in clear txt. Anyone grabbing the script potentially potentially has a full list of user names passwords, and IP addresses that associate the names/passwds to IP addresses.
I advise using any of the above over the scripted version purely from a security standpoint.
daN



LinkBack URL
About LinkBacks





Reply With Quote


Bookmarks