Technical Tip: Device Discovery via CLI
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]
-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'
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