Fortinet Document Library

Version:

Version:


Table of Contents

Administration Guide

Download PDF
Copy Link

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.