Commandline discovery for NetVoyant

Document ID : KB000009686
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

discoverycontrol.exe can but used to run Topology related functions.

So for example you could run a full or partial discovery via command line or script. Note be wise and before using any of the -delete or the -remove options make sure you have a good backup.

Environment:
NetVoyant 7.1
Instructions:

The file is located in the NetVoyant\bin folder and so it is in the path. 
 
D:\NetVoyant\bin>discoverycontrol
usage: DiscoveryControl [-d|--debug] [-h|--host hostname] [-p|--port port]
[-cleanDisabled [-days x] [-polltable polltable-name]]
[-deleteAllDevices]
[-deleteDevice devicename01 [devicename02 ... devicenameNN]]
[-addDevice devicename01 [devicename02 ... devicenameNN]]
[-deleteAllScopes]
[-deleteScope devicename01|IP/mask01 [devicename02|IP/mask02 ... devicenameNN|IP/maskNN]]
[-addScope devicename01|IP/mask01 [devicename02|IP/mask02 ... devicenameNN|IP/maskNN]]
[-deleteAllCommunityStrings]
[-deleteCommunityString communityString01 [communityString02 ... communityStringNN]]
[-addCommunityString communityString01 [communityString02 ... communityStringNN]]
[-startService service01 [service02 ... serviceNN]]
[-stopService service01 [service02 ... serviceNN]]
[-deleteMIB module01 [module02 ... moduleNN]]
[-resync poller1 [poller2...]
[-enableDiscovery]
[-disableDiscovery]
[-runFullDiscovery]
[-runPartialDiscovery]
[-terminateDiscovery]
[-enableDataset dataset-name]
[-disableDataset dataset-name]
[-enablePollgroup dataset-name pollgroup-name]
[-disablePollgroup dataset-name pollgroup-name]
[-enableProfile alarm-profile-name]
[-disableProfile alarm-profile-name]
[-createGroup parent-group-id new-group-name new-group-descr]
[-deleteGroup group-id]
[-addGroupInstances group-id pollinsts,pollinst_id...]
[-removeGroupInstances group-id pollinsts,pollinst_id...]
[-setInstanceLables pollinst_id inst-name inst-desc]
[-setPollRate pollinst_id pollgroup-name]

Additional Information:

Note 1: default value of -days (for -CleanDisabled) is 14
Note 2: -stopService and -startService service name is case sensitive