Configuring for script-based discovery
To run a script-based discovery, you must first configure the discovery.
In comparison to regular sensors, sensors that are run in the script-based mode are more apparent, which means that all commands that the sensor uses are in one script, which you can view. For the list of the sensors that support script-based mode, and the restrictions that apply to some of the sensors, see Sensors that support script-based and asynchronous discovery.
Configure the sensor in one of the following ways:
-
- Enabling all sensors that support script-based discovery
- To globally enable all sensors that support script-based discovery, open the
collation.properties file and set the value of the
com.ibm.cdb.discover.PreferScriptDiscovery
property to true.
-
- Enabling all sensors that support script-based discovery in a specific discovery profile
- For a specific discovery profile, to enable all sensors that support script-based discovery,
complete the following steps:
- In the Discovery Management Portal, select the discovery profile for which you want to enable script-based mode.
- In the Platform Properties tab, set the value of the
com.ibm.cdb.discover.PreferScriptDiscovery
property to true.
-
- Enabling a sensor that supports script-based discovery in a discovery profile
- In a discovery profile, to enable a specific sensor that supports script-based discovery, update
the configuration of that sensor in the respective discovery profile. Complete the following steps:
- In Discovery Management Portal, go to the discovery profile that contains the sensor that you want to enable.
- In the Sensor Configuration tab, select the sensor and click New.
- In the Create Configuration window, specify the name of the configuration and select the Perform Script Based Discovery option.
- Click OK to save the configuration.
- Configuring TADDM to select non-default users for the discovery
- By default, only the user that is requested by the script is used for the discovery. If you have
problems with running a discovery with the default user and you have another user that has all
required permissions, you can configure TADDM to select this user for the discovery.Note: Use the following configuration with caution. If a user that does not have all required permissions is used for a discovery, the discovery might fail, or some of the targets might not be discovered.