Device Management : Managing devices : Importing and exporting devices : Device file format
 
Device file format
Devices are specified by the following device lines:
device_list_ver=7
device|ip|name|platform|admin|passwd|adom|desc|discover|reload|fwver|mr|patch|build|branch_pt|interim|sn|has_hd|
The fields after “reload” are optional, and only need to be provided if discover is set to 0.
The list in the text file should contain the following fields:
Field Name
Blank Allowed
Description
ip
No
Device IP address.
platform
No
The device type. For example, FortiGate, or the full platform name: FortiWiFi-60B.
user
No
Admin username.
passwd
Yes
Admin password.
adom
Yes
The ADOM into which this device should be imported. If this field is left blank, the device is imported into the current ADOM.
desc
Yes
Device description.
discover
No
Enter 1 to automatically discover device, 0 otherwise.
reload
No
Enter 1 to reload the device configuration after importing it, 0 otherwise.
fwver
No
Firmware version.
mr
No
Major Revision (MR) designation of the device. For example, GA, MR1, MR2.
sn
No
Device serial number.
has_ha
No
Enter 1 if the device has a hard disk, 0 if not.
Following the device line, there may be one or more “+meta” lines specifying metadata for the device (For more information, see “Metadata file format”), or one or more “+vdom” lines specifying device VDOMs.
VDOMs are specified by the following lines:
+member|devname|vdom|
+subgroup|groupname|
Field Name
Blank Allowed
Description
devname
No
Name of the device.
vdom
Yes
The VDOM of the device that belongs to this group. If this field is left empty, the VDOM refers to the root VDOM.
groupname
No
The name of the subgroup that belongs to this group. Note that only 2 levels of group nestings are permitted in FortiManager v4.0.