Fortinet black logo

Administration Guide

Import devices with the CLI tool

Copy Link
Copy Doc ID dc02a854-ab11-11ea-8b7d-00505692583a:997199
Download PDF

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.

  1. Use a secure copy tool to copy the CSV file from your local PC to the FortiNAC appliance (e.g., use Winscp).
  2. Back up the current FortiNAC database before proceeding.
  3. From the FortiNAC appliance CLI, navigate to the following directory: cd /bsc/campusMgr/bin
  4. 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

  5. Log into the FortiNAC.
  6. Go to Network Devices > Topology and verify that the devices have been imported. If necessary, modify the device properties.

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.

  1. Use a secure copy tool to copy the CSV file from your local PC to the FortiNAC appliance (e.g., use Winscp).
  2. Back up the current FortiNAC database before proceeding.
  3. From the FortiNAC appliance CLI, navigate to the following directory: cd /bsc/campusMgr/bin
  4. 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

  5. Log into the FortiNAC.
  6. Go to Network Devices > Topology and verify that the devices have been imported. If necessary, modify the device properties.