Adds an open scan for the given target and returns a count of the number of endpoints included in the open scan.
discovery.scan(target, company, outpost_id)
Requires that you have a scheduled scan defined that includes the address or addresses of the scan targets, and that the Allow patterns to scan in this range check box is checked for that scan. The scheduled scan does not need to be in its specified scan time window.
- string (IP address)
- list of IP addresses
- node, which is one of the following:
Any nodes which are of the incorrect kind are ignored.
companyis the name of a company in a BMC Discovery system with multitenancy configured.
outpost_idis the name or ID of the BMC Discovery Outpost that you want to perform the scan.
You can determine the name or ID of the BMC Discovery Outpost using the tw_reasoningstatus utility. For example:
The following is a simple example adding a snapshot scan for a specific IP address, with the company BMC, using BMC Discovery Outpost called