scripted use of /etc/clusters

From: George.Robinson@VerizonWireless.com
Date: Tue Nov 09 2004 - 04:27:41 EST


          I just started using sun cluster tool to login to multiple
systems. I spent some time writing /etc/clusters with all of my groups of
systems. It would be something like...
app1-dev sys1 sys2
app1-prod sys3 sys4
app1-all app1-dev app1-prod
 
app2-dev sys5 sys6
app3-prod sys7 sys8
app2-all app2-dev app2-prod
 
all-dev app1-dev app2-prod
all-prod app1-prod app2-prod
 
          This file would actually be very useful for other network systems
automation. For example, it would be nice to build a wrapper script to do
something like `ssh app2-all uptime`. Thus, instead of updating my current
scripts, I update a centralized file for my network automation purposes.
          Here's my question: how to I build a *shell* script (not perl) to
parse the /etc/clusters file so as to build a list or array for the script
to loop and iterate through doing something like `ssh $HOST uptime`.
          I will post a summary when it's all done. Thank you for your
advice.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:41 EDT