Self Scan  

For a probe to scan workstations, certain conditions must be met.

If, for any reason, these conditions cannot be fulfilled, you can use the Self Scan script as an alternative. 

Self Scan scripts allow you to scan a standalone machine locally and upload the results either to the probe machine or directly to ServiceDesk Plus Cloud.

To run a self scan script,

These scripts must be executed individually on each machine to be scanned.

If the machine to be scanned is inside your network and has access to the probe, you can configure the script to send the scan data to the probe.

If the machine is outside of your network and does not have probe access, you can configure the script to send data directly to ServiceDesk Plus Cloud.

Download Self Scan  

Using Self Scan to Send Details to the Probe   

You can scan a standalone workstation and upload the results to the probe using the Self Scan script. The script must be run from the workstation’s command prompt, with the probe's hostname specified as an argument.

Platform

Command

Parameters

Example

Mac/Linux

bash scan_script.sh <probehostname> sw_scan=false

sw_scan: Set to true if software information needs to be collected during the scan on Linux machines.

Default: sw_scan=false.

bash scan_script.sh test-probe-machine sw_scan=true

Windows

SelfScan.exe <probehostname> 5454

  • <probehostname>: Name of the probe machine.
  • 5454: Probe communication port.

SelfScan.exe test-probe-machine 5454

 

Using Self Scan to send data to ServiceDesk Plus Cloud  

SelfScan.exe / scan_script.sh scripts can directly upload the scan data to ServiceDesk Plus Cloud.

Use this method only if the standalone machine is outside of your network and do not have access to the probe.  

To scan the standalone system, follow the steps below:

 

For Mac/Linux

 bash scan_script.sh apiKey=xxx sw_scan=false serverUrl=https://sdpondemand.manageengine.com 

Parameter

Description

sw_scan

If the software information need to be discovered during the scan on Linux machines, use "sw_scan=true"

Default: sw_scan=false

serverUrl

Depends on the ServiceDesk Plus Cloud data center used. Click here to know more.

Example: For IN DC,

bash scan_script.sh apiKey=1003.e3d5xxxx.xxxx2hlc sw_scan=true server=https://sdpondemand.manageengine.in


For Windows

 C:SelfScan>SelfScan.exe apiKey=xxx server=sdpondemand.manageengine.com 

Parameter

Description

server

Depends on the ServiceDesk Plus Cloud data center used. Click here to know more.  

Example :
SelfScan.exe apiKey=1003.e3d5xxxx.xxxx2hlc server=sdpondemand.manageengine.com

This will scan the standalone system, and send the scan data to ServiceDesk Plus Cloud.

Configure SelfScan.exe to run as an Active Directory logon script  

You can configure the self-scan script as a Logon script in Active Directory. If configured, the script will run during the user login process, scan the user's machine, and send the scanned data to the probe.

To configure as a Logon script, do the following:

Other Parameters

For Windows Machine:

1) timeout=10: If the SelfScan throws timeout error, you can use this parameter to increase the wait time and complete the scan.

2) no_vm_scan: To exclude the Hyper-V virtual machine during the scan.

FAQs 

1. Error: "Please check apiKey or Problem while uploading to server,error=401"

Cause:

Resolution

 

2. Error while using the probe host name: "Unable to resolve probe host"

Cause:

Resolution:

Port 5454 should be enabled in the probe-installed machine if you are using the probe hostname as a parameter.

 ping ProbeHostNameOrIP 
PowerShell -command "Test-NetConnection -ComputerName ProbeHostNameOrIP -Port 5454"

TcpTestSucceeded should be true.

3. Error: SelfScan terminated with error "Going to terminate process with timeout =150000"

Resolution:

Use the timeout parameter while executing the Self Scan.

For example,

SelfScan.exe apiKey=1003.er45xxxx.xxxx3fgh server=sdpondemand.manageengine.com timeout=15 

4. Error: Configured GPO policy is not working

Cause:

Resolution: