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:
cd /bsc/campusMgr/bin
-
Run the DeviceImport tool as follows:
RunClient DeviceImport <absolutePathToImportFile> -type <t>
Where:
<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
Examples:
RunClient DeviceImport server.csv -type server
RunClient DeviceImport switches.csv -type snmp
- Log into the FortiNAC.
- Go to Topology view, and verify that the devices have been imported. If necessary, modify the device properties.