Page 1 of 1

Adding NodeID's to the NodeGroup

Posted: 07 Dec 2016 9:49
by Gopikkd
Hi Team,

Is there any option with ctmnodegrp utility to add more than one NodeID to the specified Node group.

ctmnodegrp -edit -nodegrp ****** -appltype OS -add <nodeid>.............

Re: Adding NodeID's to the NodeGroup

Posted: 23 Dec 2016 2:38
by Manii
Hi ,

Could not find direct command to do that , however this can be done with small for loop script .

step 1
Create a file.txt which contain nodes to be added to nodegroup
step 2
Write a shell script addnode.sh as below
================================
for node in $(cat read.txt)

do
ctmnodegrp -EDIT -NODEGRP <Node group name> -APPLTYPE OS -ADD $node
done
====================================================

Hope this will help

Re: Adding NodeID's to the NodeGroup

Posted: 24 Jan 2017 11:17
by Gopikkd
Thanks Manii. Let me try this.

Re: Adding NodeID's to the NodeGroup

Posted: 24 Jan 2017 11:18
by Gopikkd
Thanks Manii. Let me try this.