Import Data

Nomad allows you to import files to provide additional information like locations. Since you will need to generate this data yourself from a database, several different formats are accepted to make it easier.

The data you provide can not override what nomad has discovered on its own, instead nomad will report any inconsistancies between the source files and the discovered network. This report will be in $NOMAD_DIR/report

XML

This format can handle missing or incomplete data. Nomad network files are stored in an extended version of the same format.

<?xml version="1.0"?>
<Nomad_Import>
  <Subnet description="Admin" ip="192.168.1.0" mask="24"/>
  <Machine name="fred.your.domain" ip="192.168.1.1" mac="0050060a00bc" contact="me" location="building/room" description="Dell PC"/>
</Nomad_Import>

Simpler Format

One entry per line, either subnet or machine based on the first character of the line. You must provide all fields in the record even if they are empty ("" for empty string, 0 for numbers, 0.0.0.0 for unknown or empty IP Addresses)

S "",0.0.0.0,0
M "",0.0.0.0,"","","",""

host

Run the command host -l your.domain >filename then import filename. This is a quick way of getting hostnames into nomad without having to perform lots of DNS lookups, it's also very quick and easy to generate.

fred.your.machine. has address 192.168.1.1