Versions Compared

Key

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

...

For importing lots of nodes in one go from a CSV file, NMIS has been providing  admin/import_nodes.pl for quite some a long time. There is also a sibling admin/export_nodes.pl tool, and both are documented on the Bulk Import page. The main benefit of these tools is utmost simplicity, but at the cost of some flexibility: import_nodes does not make all common node properties controllable or accessible.

...

Code Block
./admin/node_admin.pl act=export node=mytestbox | sed -e 's/.*community.*/"community":"verySecrET",verySecETr/veryVerySecret/'  | ./admin/node_admin.pl act=update node=mytestbox

...