--- title: Service Mapping commands requiring a privileged user description: Service Mapping uses commands requiring elevated rights to discover and map Unix-based hosts in your organization. In addition to configuring necessary credentials, configure servers in your organization to allow Service Mapping to run these commands with elevated rights. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/service-mapping/r\_CommandsnCredentials.html release: australia product: Service Mapping classification: service-mapping topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 16 breadcrumb: [Prerequisites for performing top-down discovery, Configuring Service Mapping, Service Mapping, ITOM Visibility, IT Operations Management] --- # Service Mapping commands requiring a privileged user Service Mapping uses commands requiring elevated rights to discover and map Unix-based hosts in your organization. In addition to configuring necessary credentials, configure servers in your organization to allow Service Mapping to run these commands with elevated rights. You do not run these commands directly. Service Mapping uses commands requiring elevated rights as part of the following processes: - host detection - process identification on port - discovering CIs using patterns Some of these commands do not require elevated rights, unless directories that Service Mapping must access are protected. For more information, see [Service Mapping commands not requiring a privileged user](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/r_NonSudoCommands.md). ## Operating system commands requiring elevated rights
Command Parameter Description
`cat` **file-name** Shows the file content.
`ls` **-F-1** **-1HF** **-w 1** **-1** Lists the directory content.
`procwdx` **Process\_id** Gets working directory of a process.
`rmsock` **Socketname tcpcp** Finds process listening on a specific port.
`lsof` **-Pnl +M -i** Shows files or connections associated with the process.
`lstat` Various options Fetches information about a link.
`ps` **eww** Fetches environment variables for the process on AIX.
Command Parameter Description
`cat` **file-name** Shows the file content.
`ls` **-F-1** **-1HF** **-w 1** **-1** Lists the directory content.
`pfiles` **Process\_id** Shows files or connections associated with the process.
`lsof` **-Pnl +M -i** Shows files or connections associated with the process.
Command Parameter Description
`cat` **File\_name** Shows the file content.
`ls` **ls -F-1** **ls -1HF** **ls -w 1** **ls -1** Lists the directory content.
**e-l** Fetches file attributes used for file caching decision.
`pargs` **-e** Gets the executable directory.
`pargs` **-a** Gets the process.
`lsof` **-Pnl +M -i** Shows files and connections associated with the process.
`netstat` **-anu** Lists the open ports. Required for Solaris version 11.2 or later.
`Ifconfig` **Ifconfig -a** Shows interface information \(need sudo to get the MAC addresses\).
`pwdx` **Process\_id** Gets the process information.
`pargs` **-e process\_id** Gets the process information.
`ps` **-eo user, pid, ppid, comm, args** Gets the process list.
`inetadm` **-l or without params** Handles the case of application using the inet daemon.
Commands Parameter Description
`cat` **File\_name** **scsi** **tr '\\\\n'** **/proc** **/proc/cpuinfo** **sys** **sys/hypervisor** **sys/hypervisor/compilation** **sys/hypervisor/compilation/compiled by** Shows information about file content.
`cut` **-d** **-f1** Shows the entire output of a file.
`dmidecode` **-t 17** **-s bios-vendor** **-t 1** **-t 2** **-t 3** Shows information about hardware of the Linux server in a readable format.
`lshw`   Shows information about hardware of the Linux server in a readable format.
`ls` **ls -F-1** **ls -1HF** **ls -w 1** **ls -1** **ls -l** Lists directory content.
`netstat` **-ltnup** **-ltnp** **-ntup** **-an** Shows the open network connections.
`Isof`**Note:** Used in some cases as an alternative to netstat. **-Pnl +M -i** Shows files and connections associated with the process.
`ss` **-ltnup** **-ntup** **-an** Shows the open network connections.
`stat` **--format="%Y"** **-L file\_name** Shows the modification time of the file.
`fdisk` **-l** Displays all disk partitions
## Application commands requiring elevated rights Service Mapping uses some of these commands in patterns. |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`ls`|Various options|Lists files and folders in the specified folder.|
Command Parameter Description
`grep` Various options Extracts strings from the output.
`ls` Various options Lists files and folders in the specified folder.
`cat` **-** Shows the file content.
`netstat` Various options Lists the open ports.
`ss` Various options Lists open ports.
`find` **-name** This command is used only for creating the web services connections. Finds specific strings in files and folders.
Command Parameter Description
`grep` Various options Extracts strings from the output.
`ls` Various options Lists files and folders in the specified folder.
`cat` **-** Shows the file content.
`version.sh/version.bat` **-** Gets the Tomcat version.
`netstat` Various options Lists the open ports.
`ss` Various options Lists open ports.
`find` **-name** This command is used in connection sections of the pattern for discovering Apache Tomcat WAR connections. Finds specific strings in files and folders.
|Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`grep`|Various options|Extracts strings from the output.| |Command|Parameter|Description| |-------|---------|-----------| |`ping`|**-a -c 1 \[url\[1\].host\]**|Gets the host IP.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.|
Command Parameter Description
`grep` Various options Extracts strings from the output.
`find` Various options This command is used only to create connections to Control M Server.Finds file and folder paths.
|Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`show`|Various options|Retrieves Netscaler IP address.|
Command Parameter Description
`find` Various options Finds connections to Docbase.
|Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|\(On Unix only\) Extracts strings from the output.| |`ls`|Various options|\(On Unix only\) Lists files and folders in the specified folder.| |`cat`|**-**|\(On Unix only\) Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`grep`|Various options|Extracts strings from the output.|
Command Parameter Description
`grep` Various options \(For Unix only\) Extracts strings from the output.
`find` Various options \(For Unix only\)Finds file and folder paths.
|Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|\(For Unix only\) This command is used only to create CICS connections. Extracts strings from the output.| |`cat`|**-**|\(For Unix only\) This command is used only to create CICS connections. Displays the file content in the output.| |`find`|Various options|\(For Unix only\) This command is used only to create CICS connections. Finds specific strings in files and folders.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`cat`|**-**|Displays the file content in the output.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`find`|**-name**|Finds files and folders in the specified folder.|
Command Parameter Description
`grep` Various options Extracts strings from the output.
`ls` Various options Lists files and folders in the specified folder.
`cat` **-** Shows the file content.
`find` **-name** **-type** This command is used only for creating the Web Services connections. Finds files and folders for the specific name.
|Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |`netstat`|Various options|Lists the open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |`ps`|**-ef**|Gets the process information.| |`netstat`|Various options|Lists the open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`ps`|**-ef**|Gets the process information.| |`netstat`|Various options|Lists the open ports.| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|\(On Unix only\) Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |`dir`|Various options|\(On Windows only\) Lists files and folders in the specified folder.| |`find`|Various options|\(For Windows only\) Finds specific strings in files and folders.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`dir`|Various options|Lists files and folders in the specified folder.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`Get-ExchangeServer`|**-status -Identity "+$hostname+"\| export-clixml $env:TEMP\\exchange\_pwrshell\_output.xml**|Extracts the list of Microsoft Exchange hosts and role| |`Get-ExchangeServer`|**format-table -autosize -HideTableHeaders Name,Fqdn,IsMailboxServer**|Extracts the list of Microsoft Exchange hosts and role in table format| |`Get-MailboxServer`|**format-list**|Extracts the list of Microsoft Exchange Mailbox servers.| |`Get-ClusteredMailBoxServerStatus`|**format-table -Property OperationalMachines**|Extracts information about Microsoft Exchange Mailbox clusters.| |`Get-ExchangeServer`|**format-table -autosize -HideTableHeaders Name,Fqdn,IsHubTransportServer**|Extracts information on Microsoft Exchange Hub Transport servers| |`Get-StorageGroup`|**-server "+$hname+" \| select SystemFolderPath \| Export-Csv out.csv -notype;cat out.csv**|Extracts information about storage and exports it into a file.| |`Get-MailboxDatabase`|**\| select LogFolderPath \| format-table -autosize -hideTableHeaders; Get-MailboxDatabase \| select EdbFilePath\| format-table -autosize -hideTableHeaders;Get-MailboxDatabase \| select TemporaryDataFolderPath\| format-table -autosize -hideTableHeaders**|Extracts information about the Microsoft Exchange Mailbox database.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|\(On Unix only\) Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`ps`|**--pid=\[process.pid\] --no-headers -o " %U : %p : %a”**|Gets the userid parameter value.| |Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`ps`|**--pid=\[process.pid\] --no-headers -o " %U : %p : %a”**|\(On Unix only\) Gets the userid parameter value.|
Command Parameter Description
`netstat` Various options Lists open ports.
`ss` Various options Lists open ports.
`ps` **--pid=\[process.pid\] --no-headers -o " %U : %p : %a”** Gets the userid parameter value.
`ls` **\[IncludeTabletmp\[\].files\]** This command is used if necessary to create HTTP connections. Lists files and folders in the specified folder.
`cat` **\[IncludeTabletmp\[\].files\]** This command is used if necessary to create HTTP connections.Shows the file content.
|Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |`export`|**-**|Sets variables.| |`echo`|Various options|Prints strings in the output.| |`sqlplus`|Various options|Creates the connection to the Oracle instance.| |`awk`|Various options|Manipulates the output.| |`netstat`|Various options|Gets open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|\(For Unix only\) Extracts strings from the output.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |`awk`|Various options|\(For Unix only\) Manipulates the output.| |`ls`|Various options|\(For Unix only\) Lists files and folders in the specified folder.| |`cat`|**-**|\(For Unix only\) Displays the file content in the output.| |`find`|Various options|Finds specific strings in files and folders.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |`ps`|**-ef**|Gets the process information.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|\(For Unix only\) Lists files and folders in the specified folder.| |`cat`|**-**|\(For Unix only\) Shows the file content.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.|
Command Parameter Description
`grep` Various options Extracts strings from the output.
`ls` Various options Lists files and folders in the specified folder.
`cat` **-** Shows the file content.
`find` **-name** **-type** This command is used only for creating the Web Services connections. Finds files and folders for the specific name.
|Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.| |Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various options|Extracts strings from the output.| |`ls`|Various options|Lists files and folders in the specified folder.| |`cat`|**-**|Shows the file content.|
Command Parameter Description
`grep` Various Extracts strings from the output
`ls` Various Lists files and folders on the given folder.
`cat` **-** Displays the file content in the output.
`find` **-name** This command is used only to create web service connections. Finds files and folders for specific name.
`netstat` Various Gets open ports.
`ss` Various options Lists open ports.
`ps` **-ef** \(For Unix only\) Gets process attributes.
|Command|Parameter|Description| |-------|---------|-----------| |`grep`|Various|Extracts strings from the output| |`ls`|Various|Lists files and folders on the given folder.| |`cat`|**-**|Displays the file content in the output.|
Command Parameter Description
`ls` **\[IncludeTabletmp\[\].files\]** This command is used only to create the HTTP connections.Lists files and folders in the specified folder.
|Command|Parameter|Description| |-------|---------|-----------| |`ps - ef`|**ps -ef \| grep "+$process.parentProcessId+" \|egrep -v -e grep -e beam**|Gets the parent process.| |Command|Parameter|Description| |-------|---------|-----------| |`clustat`|**-x**|Displays the cluster configuration and the status in XML format.|
Command Parameter Description
`pargs` **-e** Gets the executable directory.
`ls` Various options Lists files and folders in the specified folder.
`ping` **-c 1** Verifies that the host is answering.
`netstat` Various options Lists open ports.
`Isof`**Note:** Used in some cases as an alternative to netstat. **-Pnl +M -i** Shows files and connections associated with the process.
`CVERS` **-** Retrieves the version of installed SAP modules.
`DBCONS` **-** Retrieves the connection strings to SAP DB.
`RFCDES` **-** Retrieves the connection string to systems integrated with SAP.
`sapcontrol` **-function ABAPGetComponentList** Retrieves the sysid for SAP applications and components.
|Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Lists the open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`netstat`|Various options|Lists the open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |Command|Parameter|Description| |-------|---------|-----------| |`cat`|**-**|Shows the file content.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.| |Command|Parameter|Description| |-------|---------|-----------| |`hostname`|**-**|Gets the hostname.| |`ls`|Various options|Lists files and folders in the specified folder.| |`grep`|Various options|Extracts strings from the output.| |`cat`|**-**|Shows the file content.| |`netstat`|Various options|Lists open ports.| |`ss`|Various options|Lists open ports.|
Command Parameter Description
`hostname` **-** Gets the hostname.
`ls` Various options Lists files and folders in the specified folder.
`grep` Various options Extracts strings from the output.
`cat` **-** Shows the file content.
`findstr`\(for Windows\) Various options Extracts strings from the output.
`netstat` Various options Lists open ports.
`ss` Various options Lists open ports.
`cut` Various options Splits the output line.
|Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| |Command|Parameter|Description| |-------|---------|-----------| |`ls`|Various options|Lists files and folders in the specified folder.| **Parent Topic:**[Prerequisites for performing top-down discovery using Service Mapping](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/prerequisites-service-mapping.md) **Related topics** [Service Mapping commands not requiring a privileged user](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/r_NonSudoCommands.md)