+ Reply to Thread
Results 1 to 4 of 4

Thread: Need command line for ngedit

  1. #1
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Question Need command line for ngedit

    Can someone please provide with the command to associate a kit with a nodegroup?

  2. #2
    mikem's Avatar
    mikem is offline Project Moderator
    Join Date
    April 10th, 2008
    Posts
    22
    Blog Entries
    9
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by abhishek View Post
    Can someone please provide with the command to associate a kit with a nodegroup?
    Typing `ngedit -h` should give you a list of available commandline options. Note that it's possible some tasks cannot be accomplished from the command line alone.

  3. #3
    mblack is offline Junior Member
    Join Date
    April 15th, 2008
    Posts
    11
    Downloads
    0
    Uploads
    0

    Default

    Hi

    Todays ngedit cannot do what you want. We are working on a version that will allow you to import/export nodegroup definitions as XML, so editing the XML would change the node defination.

    If you are doing this within a kit spec file you can use something like:

    %define comp1 component-MyApplication
    %define SQLRUNNER /opt/kusu/sbin/sqlrunner
    cid=`%{SQLRUNNER} -q "SELECT cid FROM components WHERE cname='%{comp1}'"`
    %{SQLRUNNER} -q "INSERT INTO ng_has_comp SET cid=$cid, ngid=1"

    There is also a way to do it automatically with a kitinfo file (I think).

  4. #4
    mblack is offline Junior Member
    Join Date
    April 15th, 2008
    Posts
    11
    Downloads
    0
    Uploads
    0

    Default

    Ngedit now can import/export XML nodegroup definitions. It's not documented though, but it should not be too difficult to determine what the XML means.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts