How to delete a group of nodes

Forum / NoMachine Cloud Server Products / How to delete a group of nodes

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #52306
    Steve92
    Participant

    Hello,

    I’m testing how to delete a group of nodes.

    I’ve identified 2 steps:

    1. Delete all profile rules of the group of nodes to delete

    $ sudo /etc/NX/nxserver --ruledel --node-group  Nodes_Group_01

    gives error:

    NX> 500 ERROR: Invalid command: '--ruledel --node-group   Nodes_Group_01'

     

    2. Delete the group of nodes

    sudo /etc/NX/nxserver --nodegroupdel Nodes_Group_01

     

    Step 1 is mandatory because you can delete the group of nodes only if no profile rules are set for that group else it gives error:

    NX> 900 Removing node group ' Nodes_Group_01'.
    
    NX> 500 ERROR: Cannot remove node group.
    
    NX> 500 ERROR: Profile rules are associated with this node group

    So I’m stuck ! 🙁

    $ sudo /usr/NX/bin/nxserver --rulelist

    gives (abstract, lines with “Nodes_Group_01” ) :

    Class       Type                        Value Apply to:
    
    ----------- --------------------------- ----- ----------------------
    
    node       Nodes_Group_01               no    NX system
    
    node       Nodes_Group_01               yes   USERS_GROUP_01 (group)

     

    Could you help me, please ?

    Thanks,

    Regards.

    Steve.

    #52345
    fisherman
    Moderator

    Hi,

    in your case, you should use it like following
    sudo /etc/NX/nxserver --ruledel --class node --type Nodes_Group_01 --group USERS_GROUP_01
    sudo /etc/NX/nxserver --ruledel --class node --type Nodes_Group_01 --system

    #52351
    Steve92
    Participant

    Hi !

    Thanks, the rules are well deleted but

    sudo /etc/NX/nxserver --nodegroupdel Nodes_Group_01

    gives

    NX> 500 ERROR: Invalid command: '–-nodegroupdel'

    What’s wrong ?

    Regards,

    Steve.

    #52357
    fisherman
    Moderator

    Only thing that I could think of is not something with a hyphen type sudo /etc/NX/nxserver --nodegroupdel Nodes_Group_01.

    Based on the copy of the output you did looks like the first “-” is longer than expected.
    NX> 500 ERROR: Invalid command: '–-nodegroupdel'

    #52392
    Steve92
    Participant

    Hi!

    Yes, it was a copy/paste problem from MSWord (doesn’t like –) to terminal window  !

    I’ve to warn the future admin team… or use notepad to type documentation. 😉

    Steve.

     

     

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Please login .