Adding NodeID's to the NodeGroup

Everything about Control-M Server installation or setup.
Post Reply
User avatar
Gopikkd
Nouveau
Nouveau
Posts: 154
Joined: 25 May 2009 12:00
Location: Bangalore

Adding NodeID's to the NodeGroup

Post by Gopikkd » 07 Dec 2016 9:49

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>.............

User avatar
Manii
Nouveau
Nouveau
Posts: 46
Joined: 28 Jul 2011 12:00

Re: Adding NodeID's to the NodeGroup

Post by Manii » 23 Dec 2016 2:38

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

User avatar
Gopikkd
Nouveau
Nouveau
Posts: 154
Joined: 25 May 2009 12:00
Location: Bangalore

Re: Adding NodeID's to the NodeGroup

Post by Gopikkd » 24 Jan 2017 11:17

Thanks Manii. Let me try this.

User avatar
Gopikkd
Nouveau
Nouveau
Posts: 154
Joined: 25 May 2009 12:00
Location: Bangalore

Re: Adding NodeID's to the NodeGroup

Post by Gopikkd » 24 Jan 2017 11:18

Thanks Manii. Let me try this.

Post Reply