Q: Apple Qadministrator and command line
I would like to query a managed Qmaster cluster controller from an artist workstation and find out on which cluster nodes Qmaster services are online or which are down, from within a script. I have not been able to achieve this yet, and wondered if anyone has.
I can open /Applications/Apple\ Qadministrator.app/Contents/MacOS/Apple\ Qadministrator in a shell and find all the info I need, because I know how many machines are in the cluster, and all the machines that are down have a line that states "service is down". A bit of grep and an integer calculation and I can get this down a number that equals an accurate machine count. The trouble is, none of the information appearing in the Terminal window is going to stdout or stderr, so I can't pipe it, redirect it, or do anything with it except look at it or copy/paste it.
Apple Qadministrator will pack all this information into a nice neat xml formatted log file if I hit the "Log" button, which creates /private/tmp/Apple\ Qadministrator.log but there doesn't seem to be a way to call this functionality from a shell or script, and I have tried asking SystemEvents to press the Log button via osascript, to no avail.
I have tried mDNS -B qmp.tcp. local to see which nodes are available. No response. I tried _qmp3 also and got nothing.
Does anyone knows of a way to find out which nodes are available via script?
Thanks
Alan.
null
I can open /Applications/Apple\ Qadministrator.app/Contents/MacOS/Apple\ Qadministrator in a shell and find all the info I need, because I know how many machines are in the cluster, and all the machines that are down have a line that states "service is down". A bit of grep and an integer calculation and I can get this down a number that equals an accurate machine count. The trouble is, none of the information appearing in the Terminal window is going to stdout or stderr, so I can't pipe it, redirect it, or do anything with it except look at it or copy/paste it.
Apple Qadministrator will pack all this information into a nice neat xml formatted log file if I hit the "Log" button, which creates /private/tmp/Apple\ Qadministrator.log but there doesn't seem to be a way to call this functionality from a shell or script, and I have tried asking SystemEvents to press the Log button via osascript, to no avail.
I have tried mDNS -B qmp.tcp. local to see which nodes are available. No response. I tried _qmp3 also and got nothing.
Does anyone knows of a way to find out which nodes are available via script?
Thanks
Alan.
null
Mac Pro, Mac OS X (10.6.5), Qmaster, Compressor, Final Cut Studio
Posted on Dec 6, 2010 4:08 PM