Versions Compared

Key

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

...

The creation of nodes requires you to use a template (shown below) instead of using a command line argument; this . This is because NMIS requires numerous node properties to be set up correctly making it easy to miss some when operating via command line arguments. Node creation is triggered by the argument act=create, which behaves mostly like act=update, except that it doesn't touch existing nodes. To help you with starting a node configuration document from scratch (or in a scripted fashion), there is another command, act=mktemplate, which prints a blank but documented template which you can save and fill in. If you add placeholder=1 to the command line, then node_admin fills the template with easily matchable replacement placeholders, like so:

...

To restore a node to the same poller you would not need to use the localise_ids option. If you wanted to copy/migrate the node to another server you would need to localise the ids so that the poller thinks it the node belongs to it. 

So, when you run the followingWhen the below command is executed, you will OVERRIDE overwrite the previous cluster_id with the cluster_id of the NMIS server you are migrating/copying the node to.

Code Block
/usr/local/nmis9/admin/node_admin.pl act=restore file=NODENAME-dump.zip localise_ids=true

...