discovery.scan

discovery.scan(target)

Adds an open scan for the given target and returns a count of the number of endpoints included in the open scan.

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 checkbox is checked for that scan. The scheduled scan does not need to be in its specified scan time window.

Where target is a:

  • string (IP address)
  • list of IP addresses
  • node, which is one of the following:
    • Host
    • Mainframe
    • ManagementController
    • MFPart
    • NetworkDevice
    • Printer
    • SNMPManagedDevice
    • StorageDevice
    • LoadBalancerMember
    • DiscoveryAccess
  • nodeset

Any nodes which are of the incorrect kind are ignored.

The following is a simple example adding a snapshot scan for a specific IP address:

count := discovery.scan("137.72.95.90");
log.debug("Did scan of %count% things"); 
Was this page helpful? Yes No Submitting... Thank you

Comments