-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: Discovery 7.1.3, Discovery 7.1.4
-
Component/s: Assets Discovery
-
None
-
1
-
Severity 3 - Minor
Issue Summary
Assets Discovery cannot retrieve MacOs hostname when executing MacOSX_Hostinfo_FQDN.pat
Steps to Reproduce
- Scan a MacOS device from Discovery
- Make sure the MacOS device does not resolve its DNS
- From the MacOS terminal, if you executed host "$(hostname -s)", you would need to get the following message to replicate the issue.
Host XXXXXX not found: 3(NXDOMAIN)
- From the MacOS terminal, if you executed host "$(hostname -s)", you would need to get the following message to replicate the issue.
Expected Results
The command host "$(hostname -s)" is utilized for performing a DNS lookup, while MacOSX_Hostinfo_FQDN aims to retrieve the fully qualified domain name (FQDN) of the system. However, it is important to note that a Mac does not necessarily need to be joined to a domain or DNS for Discovery to get the hostname
Actual Results
Even the FQDN could not be retrieved, the hostname should be fetched. It this case, it would be XXXXXX
Workaround
Here is a modified pattern to extract hostname from the command result.
- Open Assets Discovery > Pattern
- Click on "Create pattern"
- Click on "Import pattern from file" > Select MacOSX_Hostinfo_FQDN_hostname_command.pat
- You need to change the Name and the ID. For ID, you can just change it to 'Atlassian-Def-Linux-349858' as an example
- Click on "Run pattern command" and add the MacOS IP address and its SSH credentials
- If the above works, you can Save it and go back to Pattern tab and disable MacOSX_Hostinfo_FQDN.pat so only the new one is triggered.
Versions Tested
Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below:
| Testing Requirements | Version | Affected Version |
|---|---|---|
| Customers Reported Version | 7.1.3 | Yes |
| Most Recent Bug-Fix Release | ||
| Previous Major Release | ||
| Most Recent LTS | ||
| Previous Supported LTS | ||
| Other Versions.. | ||
| (Add rows as needed) |