Hey folks. Not sure if this is the right sub-forum, but I've been wondering whether there's a way to run the "cleanstart" command on multiple nodes in one command. Is there a way to create a list of nodes and run the "cleanstart" (or even "status") commands on that list?
A really simple way to run commands to a batch of nodes is creating a text file with the list of nodes you want to process (one node name per line) and then running a one-liner using the "for" command on your Operating System command line:
FOR /F %variable in (FILE) DO command
for /f %i in (node_list.txt) do opcragt -cleanstart %i
(as you type each line you'll get a secondary prompt allowing you type the next line in the script):