Fortinet black logo

Administration Guide

CLI import tool

Copy Link
Copy Doc ID 1ce38eeb-8119-11eb-9995-00505692583a:199671
Download PDF

CLI import tool

If you need to add a set of devices to your FortiNAC database, those devices can be imported from a .csv file using a CLI device import tool. When importing a device, the import tool first checks the database to see if a device with the same IP already exists. If the device exists, then it is removed from the database before the new device is created.

For an SNMP device, the device discovery process determines the device class based on the SNMP MIBs supported by the device. For other device types, the class is based on the import type entered on the CLI command line. You must create a separate .csv file for each device type. For example, if you are importing printers and hubs, the list of printers must be contained within one .csv file and the list of hubs must be contained within another .csv file.

The latest device import tool is located in the /bsc/campusMgr/bin directory on the FortiNAC Server.

Device types that can be imported include:

  • SNMP
  • hub
  • WAP
  • printer
  • server
  • pingable
  • healthcare
  • IPS
  • DialUpServer
  • StealthWatch
  • gaming
  • camera
  • UPS
  • cardReader
  • cashRegister
  • hvac
  • vending
  • PBX
  • generic
  • security
  • VPN
  • IP phone
  • mobile
  • network
  • toplayer
  • Linux
  • Unix
  • Windows
  • macOS

iOS and Android devices cannot be imported with this tool. Use the import options on the Host View instead. See Import hosts, users or devices.

CLI import tool

If you need to add a set of devices to your FortiNAC database, those devices can be imported from a .csv file using a CLI device import tool. When importing a device, the import tool first checks the database to see if a device with the same IP already exists. If the device exists, then it is removed from the database before the new device is created.

For an SNMP device, the device discovery process determines the device class based on the SNMP MIBs supported by the device. For other device types, the class is based on the import type entered on the CLI command line. You must create a separate .csv file for each device type. For example, if you are importing printers and hubs, the list of printers must be contained within one .csv file and the list of hubs must be contained within another .csv file.

The latest device import tool is located in the /bsc/campusMgr/bin directory on the FortiNAC Server.

Device types that can be imported include:

  • SNMP
  • hub
  • WAP
  • printer
  • server
  • pingable
  • healthcare
  • IPS
  • DialUpServer
  • StealthWatch
  • gaming
  • camera
  • UPS
  • cardReader
  • cashRegister
  • hvac
  • vending
  • PBX
  • generic
  • security
  • VPN
  • IP phone
  • mobile
  • network
  • toplayer
  • Linux
  • Unix
  • Windows
  • macOS

iOS and Android devices cannot be imported with this tool. Use the import options on the Host View instead. See Import hosts, users or devices.