Skip to main content
cmaheu
Staff
Staff
February 4, 2019

Technical Tip: Device Discovery via CLI

  • February 4, 2019
  • 0 replies
  • 1897 views

Description

 

This article describes how to add a device or range of devices in Inventory from CLI.  

 

Scope

 

FortiNAC


Solution

 

Log in to the Control Server CLI as root and type:
 
cd /bsc/campusMgr/bin
 
Command:
 
DiscoverDevices
 
Options:
 -domain      The container (formerly referred to as "domain") into which discovered devices should be placed in Topology.  The container will be created if it does not already exist.
 -startip        The starting IP address for device search
 -endip          The ending IP address for device search
 -comm         One or more community names to use for SNMP
 -creds          User credentials for CLI access. It takes four arguments (separated by commas):name,password,enable pw, CLI type [telnet|ssh1|ssh2]
 -dispCount      The number of two second intervals to be used to print out results of the discovery process.
 Usage:
 
DiscoverDevices -domain 'Switches' -startip '192.168.10.1' -endip '192.168.10.20' -comm 'private' -comm 'public'
 
discovery.png

 

For instructions on how to run the discovery from the Admin UI, see topic Containers in the Administration guide. 

 

Related article:

Discovery of network devices
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.