-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Affects Version/s: Discovery 7.0.0, Discovery 7.1.2, Discovery 7.1.4
-
Component/s: Assets Discovery
-
None
-
1
-
Severity 3 - Minor
Issue Summary
When the auto-add sudo is enabled, the hostname and other attributes of macOS patterns contain invalid characters, causing the scan to fail with the Error: Mandatory Hostname missing error.
7/24/2025 3:59:24 PM: [Normal] Using pattern: MacOSX_Hostinfo_FQDN (v1.1.0) 7/24/2025 3:59:24 PM: [Debug] Auto add sudo is checked, the command is changed to: sudo host "$(hostname -s)" 7/24/2025 3:59:24 PM: [Debug] Terminal raw result:ssudo host "$(hostname -s)" | col -b[?2004l testing.test.com has address 123.45.67.890 [1m[7m%[27m[1m[0m 7/24/2025 3:59:24 PM: [Debug] Command: sudo host "$(hostname -s)" 7/24/2025 3:59:24 PM: [Debug] Result: s[?2004l 7/24/2025 3:59:24 PM: [Error] Error: Mandatory Hostname missing for: 123.45.67.890
Steps to Reproduce
- Install Assets Discovery
- Enable the Auto add sudo on the Common tab;
- Set the Log Level to DEBUG;
- Configure a macOS IP to scan;
- Configure Credentials;
- Perform the Scan;
- Verify the output of the Assets Discovery logs
Expected Results
The Mac device will be successfully scanned when Auto Add Sudo is enabled;
Actual Results
The scan will fail with the following error message due to the invalid characters in the hostname result:
7/24/2025 3:59:24 PM: [Error] Error: Mandatory Hostname missing for: 123.45.67.890
Workaround
Disable the auto-add sudo.