--- 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 |
| 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 |
|---|---|---|
| `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 |
|---|---|---|
| `find` | Various options | Finds connections to Docbase. |
| 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 | 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 |
|---|---|---|
| `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 |
|---|---|---|
| `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 | 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 |
|---|---|---|
| `ls` | **\[IncludeTabletmp\[\].files\]** | This command is used only to create the HTTP connections.Lists files and folders in the specified folder. |
| 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 |
|---|---|---|
| `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. |