It is currently 25 Nov 2017 12:16


Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 07 Dec 2016 9:49 
Offline
Nouveau
Nouveau
User avatar

Joined: 25 May 2009 12:00
Posts: 151
Location: Bangalore
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>.............


Top
   
PostPosted: 23 Dec 2016 2:38 
Offline
Nouveau
Nouveau
User avatar

Joined: 28 Jul 2011 12:00
Posts: 46
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


Top
   
PostPosted: 24 Jan 2017 11:17 
Offline
Nouveau
Nouveau
User avatar

Joined: 25 May 2009 12:00
Posts: 151
Location: Bangalore
Thanks Manii. Let me try this.


Top
   
PostPosted: 24 Jan 2017 11:18 
Offline
Nouveau
Nouveau
User avatar

Joined: 25 May 2009 12:00
Posts: 151
Location: Bangalore
Thanks Manii. Let me try this.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved