Hi Lissa, Thanks! We are trying to get the groups a node is a member of for a special postscript that will execute various commands depending on what group that node belongs to. The nodes in our environment all belong to multiple groups depending on their roles.
I am attempting to avoid the SSH route as we are dealing with a large cluster. SSH'ing back to that node's xcatmaster doesn't really seem like the cleanest way of doing it. I've created a special mysql user that only has read perms on the nodelist table, and that seems to work well enough for now. I'll have a look at the remoteshell postscript as well and see if I can find a way of getting it to make the xcatmaster return the groups a node belongs to. That would be my preferred method instead of direct SQL queries. Thanks! On 1/31/2012 6:55 AM, Lissa Valletta wrote: > You are trying to get all the groups that a node is a member of on thetr > compute node? You are right it is not in the environment variables. I > guess I wonder why you need to know the group list on the nodes? > We also do not normally setup ssh from the compute nodes to the Management > node, but if you have that setup you, could run > ssh MN "nodels<nodename> nodelist.groups". If you are on a service node > you can just run the nodels command on the SN. > > You can write a postscript that will actually contact the xcat daemon on > the MN and run a script, but this is a little more difficult to do. An > example of this is /install/postscripts/remoteshell. > > > > Lissa K. Valletta > 2-3/T12 > Poughkeepsie, NY 12601 > (tie 293) 433-3102 > > > > > > From: Russell Jones<[email protected]> > To: xCAT Users Mailing list<[email protected]> > Date: 01/30/2012 04:25 PM > Subject: [xcat-user] Grab groups a node is a member of > > > > Hello, > > Is it possible to query the xcat server directly via a postscript to > grab all groups a node is a member of? I am not seeing an easy way of > doing so outside of either just a direct SQL query or SSH command from > the compute node to the master node. Was hoping to be able to do it > through xcat's server interface. > > I also dumped all of the environment variables available on install and > didn't see a group list among them. > > Thanks! > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > xCAT-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > xCAT-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xcat-user > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
