Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This makes it very easy to fill in the template with a script or some other external tool.

To create a node using this format start with:

  1. Run the command: ./node_admin act=mktemplate placeholder=1  edit the information inside the template to correspond with the node you want to create then save it as a .json file.
  2. Once the .json file is created and edited to suite then you run this command to create the new node: ./node_admin.pl act=create node=newnode file=newnode.json (replace "newnode" with a node name of your choice)
  3. If the node was created successfully you should see a confirmation message saying "Succesfully created node newnode."

Node Renaming

To rename nodes you should use act=rename which requires both old and new node names with arguments old and new, respectively. This operation first changes the node name (which is the primary name the node is known to and displayed by NMIS, and which is NOT necessarily the hostname or ip address of the node), and then adjusts all files related to the node in question:

...