What elevated commands are executed by ServiceNow for Service Mapping ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello Community,
I am working on configuring Service Mapping in ServiceNow and need clarity on the Unix – Enhanced ADM (ADME) probe.
From the documentation, I see that the probe requires elevated permissions to run certain commands. For example, on AIX the recommended sudoers entry is:
Cmnd_Alias ADME_CMDS=/usr/bin/netstat -Aan, /usr/sbin/lsof -iTCP -n -P
discoUser ALL=(root) NOPASSWD:ADME_CMDS
Defaults:discoUser !requiretty
Currently my user has lower level of access but i could see the processes details available in ecc_queue input details of ADME probe but those processes are not getting discovered or are not getting associated to server post discovery, what could be the reason behind this behavior?
My questions are:
What exact commands does the Unix ADME probe execute on Linux/AIX/Solaris?
Do I need to configure both netstat and lsof or is one sufficient?
What information do these commands provide to Service Mapping (e.g., process‑to‑port mapping, established connections)? Or Service Mapping uses some other specific set of commands?
Why are elevated permissions required for these commands, and are there best practices for limiting scope to only what ServiceNow needs?
I want to ensure I configure sudoers correctly so that the Discovery user has just enough privilege to run the required commands, without granting full root access.
Thanks in advance for your guidance!
Best Regards,
Pranita Bahuguni
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi @SK Chand Basha,
Thank you for your reply, it was very helpful. As per the ServiceNow documentation, we have configured the sudoers file accordingly. However, when the Enhanced ADME probe is triggered, there are still certain commands that fail with permission errors, such as:
- lsof -iTCP -n -P
- netstat -antp
- ss -tlnp
- ss -tenp
Could you please advise where we can find the complete list of commands executed by the Unix/Windows – Enhanced Application Dependency Mapping probe? The commands referenced in the documentation appear to differ from the ones failing here, and I would like to understand this better.
Your guidance would be much appreciated. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
Hi Pranita
Please use the below links to find the commands
Commands used in Patterns
https://<instance_name>.service-now.com/pd_command_list_list.do?sysparm_userpref_module=1b1ae4e44fab...
Service Mapping Commands
https://<instance_name>.service-now.com/sa_mapping_ext_commands_list.do?sysparm_userpref_module=7b3d...