Import devices with the CLI tool
If you are importing different types of devices, each type must be contained within its own CSV file. For example, to import five printers and two vending machines, you must have a CSV file for the printers and a separate CSV file for the vending machines.
- Use a secure copy tool to copy the CSV file from your local PC to the FortiNAC appliance (e.g., use Winscp).
- Back up the current FortiNAC database before proceeding.
- From the FortiNAC appliance CLI, navigate to the following directory:
Run the DeviceImport tool as follows:
RunClient DeviceImport <absolutePathToImportFile> -type <t>
<absolutePathToImportFile> = The absolute path to the CSV file.
<t> = snmp |hub |wap |printer |server |PINGABLE |healthCare |IPS |Nessus |DialUpServer |StealthWatch |gaming |camera |UPS |cardReader |cashRegister |hvac |vending |pbx |generic |security |vpn |ipPhone |mobile |network |toplayer |linux |unix |windows |macosx
RunClient DeviceImport server.csv -type server
RunClient DeviceImport switches.csv -type snmp
- Log into the FortiNAC.
- Go to Network Devices > Topology and verify that the devices have been imported. If necessary, modify the device properties.