Service Mapping commands not requiring a privileged user

reference australia Updated Sep 10, 2026 40 min read r_NonSudoCommands.md
Raw file servicenow.com

Most of commands utilized by Service Mapping for discovery and mapping do not require elevated rights.

Review this list of commands to understand how Service Mapping uses them and to make sure that the virtual security of your company is not compromised.

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

Operating systems

Command

Parameter

Description

awk

various options

Parses the string.

istat

file_name

Gets last modification time of file.

nslookup

hostname

Resolve DNS host name.

ping

-c count ip/host

Pings the host.

arp -an

various options

Shows ARP table.

grep

String to search

Finds string in previous command output.

traceroute

-n ip_address

Shows layer 3 network route to target host.

netstat

-an

-Aan

Shows open network connections.

ps

-eo user, pid, ppid, comm, args

Gets the process list.

find

Directory and parameters to search

Searches for files by name or type.

|Command|Parameter|Description| |-------|---------|-----------| |`ping`|**-c count ip/host**|Pings the host.| |`arp -an`| |Shows the ARP table.| |`grep`|String to search|Finds string in previous command output.| |`awk`|various options|Parses the string.| |`traceroute`|**-n ip\_address**|Shows layer 3 network route to target host.| |`netstat`|**-an**|Shows open network connections.| |`ps`|**-eo user, pid, ppid, comm, args**|Gets the process list.| |`find`|Directory and parameters for search|Searches for files by name or type.|
Commands Parameter Description
sysvar SYSNAME Gets the system name.
hostname Retrieves the device name.
grep String to search Finds the string in command output.
hostname - Gets the hostname.
netstat -g | awk '{if (NR>4) print \$1,\$3}' Gets network information.
netstat -r | awk '{if (NR>3) print \$1,\$2,\$5}' Gets gateway information.
netstat -h | awk '{if (NR>4) print \$1}' | grep -v '127.0.0.1' Gets IP array.
netstat -R ALL | awk '{if (NR>1) print \$0}' Gets interfaces.
netstat df -k | awk '{print \$1,\$2}' |sed -e s'/(//' | sed -e s'/)//' 2> /dev/null Gets the file system information.
ps - Gets the process list.
ls Various options Lists files and folders in the specified folder.
cat file-name Shows the file content.
cut Various options Splits the output according to entered parameters.
uname l, v, rm, s Gets the OS type.

Commands

Parameter

Description

nslookup

hostname

Resolves the DNS host name.

ping

-c count ip

host

Pings the host.

arp

-an/n

Shows the ARP table.

lp n

-an/n

Shows the ARP table.

grep

String to search

-v

hypervisor

proc

cpuinfo

-i 'attached scsi'

var

log

dmesg

'SCSI device'

'Disk

UUID

Finds the string in previous command output.

awk

Various options

Parses the string.

netstat

-an

Shows open network connections.

ss

-an

Shows open network connections.

ps

-eo user, pid, ppid, comm, args, wwwx

Gets the process list.

egrep

Various options

Searches text in previous command output.

find

Directory and parameters for search

Searches for files by name or type.

traceroute

-n ip_address

Shows the layer 3 network route to target host.

df

-kP, echo

Extracts the information about the file system, including the size in KB.

uptime

Various options

Shows the current time, how long the system has been running, and how many users are currently logged on. It also shows the system load averages for the past 1, 5, and 15 minutes.

date

Various options

Displays the date in the time zone on which Linux operating system is configured.

perl

-e 'print time

Opens the Perl shell and prints time.

command

-v vxprint

This command is used in the Debug mode.

uname

-a

-r

Displays the information about the system.

ipfconfig

-a

Shows the configuration of the network interface.

ip

route list

-4 -o addr show

-6 -o a

r

String to parse

Displays information about network interface, including the routing table.

route

-n

Shows the IP routing table.

ip r

 

Shows the IP routing table.

sed

-n '2!p'

Executes a function using the SED stream editor.

bash

-c

Executes the command using the UNIX shell or command language.

waagent

-version 2>/dev/null

Displays the information extracted from the Microsoft Azure Linux agent.

|Command|Parameter|Description| |-------|---------|-----------| |`nslookup`|**hostname**|Resolves the DNS host name.| |`ping`|**-c count ip/host**|Pings the host.| |`arp`|**-an**|Shows the ARP table.| |`grep`|String to search|Finds the string in previous command output.| |`awk`|Various options|Parses the string.| |`traceroute`|**-n ip\_address**|Shows the layer 3 network route to target host.| |`netstat`|**-an**|Shows the open network connections.| |`zoneadm`|**List**|Shows the list of zones.| |`egrep`|Various options|Searches text in previous command output.| |`find`|Directory and parameters|Searches for files by name or type.|
Query Description
Select * from Win32_ComputerSystem Gets the server basic information like serial number.
Select LastModified from CIM_LogicalFile Where Name=... Gets the last modification time of a file.
Select AddressWidth from Win32_Processor Gets the computer architecture (32 bit or 64 bit).
Select * From Win32_Process where (ProcessId = ?) Gets the process list running on the computer.
Select Name from CIM_LogicalDisk Gets the file systems on the computer, such as C: or D:.
Select FileName, Extension from CIM_Directory where Drive=’drive’ and Path='path' Gets the list of files in a specific directory.

Command

Parameter

Description

get_process_info.exe

Process_id

Extracts information on the processes using executable created by ServiceNow.

type

File_name

Shows the text file content.

nslookup

Host_name

DNS lookup

arp

-a

Shows the ARP table.

netstat

-ano

Shows the network connections.

findstr

Various options

Finds the string in the previous command output.

dir

/q

/s /b

Lists files in the directories.

paping

--nocolor -c 1 -p

port_num

ip_address

Utility to run TCP ping against given host.

ping

-n 1

ip_address/host

Pings the host.

tracert

Ip_address

Shows the layer 3 network route to the target host.

## Applications
Command Parameter Description
show partition Various options Get the partition configured.
sh-run all-partitions Various options Get details like virtual-server, port, service group, and pool members information.
show slb virtual-server all-partitions Various options Get the status of the virtual server and hit count details.
Command Parameter Description
dir Various options (For Windows only) Lists files and folders in the specified folder.
msg_server -V Gets the version.
ping -n 1 (For Windows only) Verifies that the host is answering.
netstat Various options Lists open ports.
ss Various options Lists open ports.
Command Parameter Description
netstat Various options Gets open ports on
ss Various options Lists open ports.
hostname - Gets the hostname.
dir Various options Lists all files in the specified folder.

Command

Parameter

Description

httpd

-V

Gets the version.

cut

Various options

Splits the output line.

opmnctl

status -fmt %cmp32%prt32%por40%pid

and

@farm status -noheaders -fsep "|" -fmt %cmp%prt%clu%ins%por

This command is used only for discovering the OC4J connectivity.Gets the status of the OPMN CTRL service.

sort

-u

This command is used only for discovering the Weblogic connectivity. Sorts the output.

Command

Parameter

Description

httpd.exe

-V

Gets the version.

opmnctl

status -fmt %cmp32%prt32%por40%pid

and

@farm status -noheaders -fsep "|" -fmt %cmp%prt%clu%ins%por

This command is used only for discovering the OC4J connectivity.Gets the status of the OPMN CTRL service.

Command

Parameter

Description

dir

Various options

(On Windows only) Lists files and folders in the specified folder.

findstr

Various options

(On Windows only) Extracts strings from the output.

find

Various options

(For Windows only) Finds specific strings in files and folders.

find

-name

Creates the web services connections. Finds specific strings in files and folders.

version.sh/version.bat

-

Gets the Tomcat version.

java -cp " + $install_directory + "/lib/catalina.jar org.apache.catalina.util.ServerInfo

-

Gets the Tomcat version.

netstat

Various options

Lists the open ports.

find

-name

This command is used only for creating the web services connections. Finds specific strings in files and folders.

ss

Various options

(For Linux only) Lists the open ports.

|Command|Parameter|Description| |-------|---------|-----------| |`dir`|Various options|\(On Windows only\) Lists files and folders in the specified folder.| |`findstr`|Various options|\(On Windows only\) Extracts strings from the output.| |`find`|Various options|\(For Windows only\) Finds specific strings in files and folders.| |`version.sh/version.bat`|**-**|Gets the Tomcat version.| |`netstat`|Various options|\(Windows only\) Lists the open ports.|
Command Parameter Description
dir Various options (On Windows only) Lists files and folders in the specified folder.
netstat Various options (On Windows only) Lists open ports.
grep Various options (On Windows only) Extracts strings from the output.

Command

Parameter

Description

show

/gtm pool [wide_ip_pool_4_cmd[1].pool] members

This command is used only to create connections to pool members.

Gets the pool members.

list

/gtm server [servers_from_cmd[].server] addresses

This command is used only to create connections to pool members.

Lists the alias server addresses.

Command

Parameter

Description

b

rule [rule name] list

and

virtual address [entry_point.ip_address]

This command is used only for creating connections from rules.Lists existing rules on BIGPipe.

list

ltm rule [rule name]

and

data-group wts_routing_destination_prod | grep -A 1 [ep_uri]

This command is used only for creating connections from rules.Lists existing rules on TMSH.

|Command|Parameter|Description| |-------|---------|-----------| |`show cm traffic-group – get`|Various options|This command is used to get traffic and clustering information.|
Command Parameter Description
findstr Various options (For Windows only) Extracts strings from the output.
netstat Various options (For Windows only) Lists open ports.

Command

Parameter

Description

findstr

Various options

(For Windows only) Extracts strings from the output.

dir

Various options

(For Windows only) Lists files and folders in the specified folder.

find

Various options

This command is used only to create connections to Control M Server.Finds file and folder paths.

xargs

grep <string>

This command is used only to create connections to IBM CTRL-M Server.Runs the command on all lists from the output.

|Command|Parameter|Description| |-------|---------|-----------| |`tnsping`|Various options|Retrieves information about Oracle connections.|
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
Command Parameter Description
find Various options Finds the base init configuration file path.
locate Various options Finds the base init configuration file path if the 'find' command fails.
nodetool version Various options Retrieves the Apache Cassandra version.
nodetool describecluster Various options Retrieves the cluster name.
nodetool info Various options Retrieves the data center and rack information
nodetool ring Various options Retrieves the workload running for Apache Cassandra.
nodetool tablestats Various options Retrieves list of keyspaces available on a cluster.
dse –v Retrieves the DataStax Cassandra version.
dsetool ring Various options Retrieves the workload running for DataStax Cassandra.
Command Parameter Description
show context, running Shows the requested information.
include - Extracts strings from the output.
echo - Displays strings to the output.
Command Parameter Description
show gslb-config domain-list Shows the domain list.
show gslb-config dns rule Shows the DNS rule output.
show gslb-config answer-group Show the VIP answer.

Command

Parameter

Description

powershell

Add-PSSnapin Citrix.Broker.Admin.V2; Get-BrokerApplication -Name [entry_point.name] | select Name,CommandLineExecutable**,CommandLineArguments**,WorkingDirectory,ApplicationType,BrowserName | Format-List

and

Add-PSSnapin Citrix.Broker.Admin.V2; Get-BrokerApplication -Name [entry_point.name] | select Name,CommandLineExecutable,CommandLineArguments,WorkingDirectory,ApplicationType,BrowserName | Format-List

And

Add-PSSnapin Citrix.Broker.Admin.V2; Get-BrokerMachine -DesktopGroupName ‘ [delivery_groups[1].name]

Gets applications managed by this Delivery Controller.

|Command|Parameter|Description| |-------|---------|-----------| |`qfarm`| |Discovers epic icons.|
Command Parameter Description
get_xenapp_apps.ps1 [entry_point.icon_path] Runs powershell commands that retrieve the Citrix icon info from the Citrix repository.
powershell Various options Runs powershell commands.
Command Parameter Description
cscript //NoLogo Runs VB scripts without a popup box.
GetAppsInFolder.wsf [entry_point.icon_path] Runs vbscript commands that retrieve the Citrix icon info from the Citrix repository.

Command

Parameter

Description

show

cs policy, cs action,cs Policy, lb vserver

This command is used only for discovering outgoing connections.

Shows the requested information.

grep

Various options

Extracts strings from the output.

Command

Parameter

Description

show

ns.conf

This command is used only for discovering outgoing connections if SNMP or SSH credentials are not provided.

Shows the contents of the ns.conf file.

|Command|Parameter|Description| |-------|---------|-----------| |`findstr`|Various options|\(For Windows only\) Extracts strings from the output.| |`dir`|Various options|\(For Windows only\) Lists files and folders in the specified folder.|
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
find Various options (For Windows only) Finds specific strings in files and folders.
Command Parameter Description
findstr Various options (On Windows only) Extracts strings from the output.
tasklist Various options Lists all running tasks.
netsh http show servicestate Shows a snapshot of the HTTP service.
Command Parameter Description
systemctl list-units --type service Various options Show the service status.
/bin/systemctl status "+service_name+".service Various options Show the service status.
service --status-all Various options Show the service status.
read /etc/services Various options Allows access to the file.
Command Parameter Description
ls Various options (On Unix only) Lists files and folders in the specified folder.
tail Various options (On Unix only) Displays the end of the output.
Command Parameter Description
tnsping Various options Retrieves information about Oracle connections.
netstat Various options Lists open ports.
ss Various options Lists open ports.
Command Parameter Description
netstat Various options Lists open ports.
Command Parameter Description
netstat Various options Lists open ports.

Command

Parameter

Description

dmqdocbroker

-s -c getdocbasemap

and

-t [computer_system.primaryHostname] -s -c getdocbasemap

and

-s -c getservermap [docbas]

-t [computer_system.primaryHostname] -s -c getdocbasemap

[docbase]

Gets the docbase information.

del

Various options

Deletes the XML file containing the old binding information.

BTSTask

ExportBindings /Destination:%TEMP%\MyBindings.xml /Database:[MgmtDbName] /server:[serverName]

This command is used only if there are not MSSQL credentials.Extracts the binding info and places it into the XML file.

|Command|Parameter|Description| |-------|---------|-----------| |`findstr`|Various options|\(For Windows only\) Extracts strings from the output.| |`dir`|Various options|\(For Windows only\) Lists files and folders in the specified folder.|

Command

Parameter

Description

findstr

Various options

(For Windows only) This command is used only to create CICS connections.Extracts strings from the output.

dir

Various options

(For Windows only) This command is used only to create CICS connections. Lists files and folders in the specified folder.

type

-

(For Windows only) This command is used only to create CICS connections. Displays the file content in the output.

|Command|Parameter|Description| |-------|---------|-----------| |`source`|**\[installed\_dir\]db2profile**|Sets the DB2 variables.| |`db2`|list database directory|Displays the DB2 installation parameters.| |`grep`|Various options|Extracts strings from the output.| |`head`|**-1**|Displays only the first line from the output.| |`db2level`|**-**|Displays the DB2 version.| |`cat`|**-**|Displays the file content in the output.| |`xargs`|**-I \{\} echo list tablespace containers for \{\} ';'**|This command is used only to create storage connections. Runs the command on all lists from the output.|

Command

Parameter

Description

db2cmd

/c /w /i

Lists the DB2 directories.

db2

list database directory

Displays the DB2 installation parameters.

find

Various options

Finds specific strings in files, folders, or standard output.

dir

Various options

Lists files and folders in the specified folder.

db2level

-

Displays the DB2 version.

echo

Various options

This command is used only for storage connectivity. Prints the strings in the output.

findstr

Various options

This command is used only for storage connectivity.Extracts strings from the output.

for

Various options

This command is used only for storage connectivity. Runs loops.

|Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Gets the DB2 name.|
Command Parameter Description
netstat Various options Lists open ports.
find Various options Finds specific strings in files and folders.
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
Command Parameter Description
versionInfo.sh - Gets the Websphere Application Server version.
Command Parameter Description
`"oeconsol 'D OMVS,A=ALL' grep "+$taskname` -
netstat -a | grep "+$port+" | awk '{print $1}' Gets the task name from the listening port.
`ps -ef -o user,pid,ppid,comm awk '{print $1,$2,$3,$4}’`
`$install_dir+"/bin/versionInfo.sh grep Version tail -1"`
$install_dir+"/properties/version/BASE.product" Gets the version from version file (failover).
`"ls "+$conf_dir+"///applications//deployments//META-INF/application.xml xargs grep "/"+$uri_search+"""+" 1>/tmp/app.txt 2>/dev/null; cat /tmp/app.txt"`
$ear_directory_name+"/*/*/*/wsdl/*.wsdl" Reads the wsdl files under the discovered inclusion on the Ear directory.

Command

Parameter

Description

grep

Various options

Extracts strings from the output.

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| |-------|---------|-----------| |`dir`|Various options|Lists files and folders in the specified folder.| |`findstr`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists the open ports.| |`find`|Various options|Finds specific strings in files and folders.|

Command

Parameter

Description

find

-name

-type

This command is used only for creating the Web Services connections. Finds files and folders for the specific name.

mqsiprofile

-

Sets the variables for WebSphere Message Broker.

mqsireportbroker

[broker name]

Gets the WebSphere Message Broker information.

mqsibrowse

[broker name] -t BROKERRESOURCES

Displays the Message Broker information resources.

echo

$ODBCINI

(On Unix only) This command is used only to create connections to IBM DB2. Prints strings in the output.

|Command|Parameter|Description| |-------|---------|-----------| |`mqsiprofile`|**-**|Sets the variables for WebSphere Message Broker.| |`mqsireportbroker`|**\[broker name\]**|Gets the WebSphere Message Broker information.| |`ps`|**-ef**|Gets the process information.| |`mqsibrowse`|**\[broker name\] -t BROKERRESOURCES**|Displays the Message Broker information resources.| |`db2`| |Displays DB2 installation parameters: database directory and node directory.|

Command

Parameter

Description

mqsiprofile

-

Sets the variables for WebSphere Message Broker.

mqsireportbroker

[broker name]

Gets the WebSphere Message Broker information.

mqsibrowse

[broker name] -t BROKERRESOURCES

Displays the Message Broker information resources.

find

-name

-type

This command is used only for creating the Web Services connections. Finds files and folders for the specific name.

echo

$ODBCINI

This command is used only to create connections to IBM DB2. Prints strings in the output.

|Command|Parameter|Description| |-------|---------|-----------| |`mqsiprofile`|**-**|SSets the variables for WebSphere Message Broker.| |`mqsireportbroker`|**\[broker name\]**|Gets the WebSphere Message Broker information.| |`ps`|**-ef**|Gets the process information.| |`mqsibrowse`|**\[broker name\] -t BROKERRESOURCES**|Displays the Message Broker information resources.|
Command Parameter Description
dspmq - Gets the queue manager status.
dspmqver - Gets the queue manager version.
runmqsc [queue manager] Gets the queue information.
Command Parameter Description
grep Various options Extracts strings from the output.
dspmq - Gets the queue manager status.
dspmqver - Gets the queue manager version.
runmqsc [queue manager] Gets the queue information.
Command Parameter Description
netstat -a | grep "+$port Gets the IBM MQ name.
df -k | grep MQ" Gets the file system.
`"echo "+$netstat_info[1].mq_name+" cut -c1-4"` -
"oeconsol '-"+$queue_manager+" display qmgr ALL' " - Gets the MQ logical name information.
`"oeconsol '-"+$queue_manager+" display queue ("+$entry_point.queue_name+") ALL' tr "(" "#" tr ")" """`
"oeconsol '-"+$queue_manager+" display queue ("+$name+")'" - Gets the MQ queue information.
"oeconsol '-"+$queue_manager+" display channel(*) CONNAME where(QMNAME EQ "+$remote_queue_mngr_name+")'" - Gets the channel information.
"oeconsol '-"+$queue_manager+" display qlocal(*) '" Gets the local queue information.
Command Parameter Description
dspmq - Gets the queue manager status.
dspmqver - Gets the queue manager version.
runmqsc [queue manager] Gets the queue information.
Command Parameter Description
dspmq - Gets the queue manager status.
dspmqver - Gets the queue manager version.
runmqsc [queue manager] Gets the queue information.
Command Parameter Description
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
find Various options (On Windows only) Finds specific strings in files and folders.
netstat Various options (On Windows only) Lists open ports.
Command Parameter Description
find -name Finds files and folders in the specified folder.
xargs grep <string> Finds strings in all files found in the output file.
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
find Various options (For Windows only) Finds specific strings in files and folders.
netstat Various options Lists open ports.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
Command Parameter Description
find -name Finds files and folders in the specified folder.
xargs grep <string> Finds strings in the files found in the output file.
grep Various options Extracts strings from the output.
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
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

netstat

Various options

Lists open ports.

hostname

-

Gets the hostname.

dir

Various options

Lists files and folders in the specified folder.

tasklist

Various options

Lists all running tasks.

del

Various options

Deletes the XML file containing the old binding information.

echo

Various options

Prints strings in the output.

powershell

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-ExchangeServer -status -Identity [hostname]| export-clixml $env:TEMP\exchange_pwrshell_output.xml

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer -status -Identity [hostname]| export-clixml $env:TEMP\exchange_pwrshell_output.xml

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-ExchangeServer| format-table -autosize -HideTableHeaders Name,Fqdn,IsMailboxServer

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer | format-table -autosize -HideTableHeaders Name,Fqdn,IsMailboxServer

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-MailboxServer | format-list

This command is used only if you do not use TCP connections.Gets the CAS status, server roles, and Exchange setup structure.

Important: Do not use the dollar sign ($) in credentials for Exchange CAS, because Service Mapping uses the dollar sign for pattern variables in the Powershell command.

find

Various options

This command is used only if PowerShell is not operational.Finds specific strings in the files and folders.

findstr

Various options

Extracts strings from the output.

|Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Lists open ports.| |`dir`|Various options|Lists files and folders in the specified folder.| |`findstr`|Various options|Extracts strings from the output.| |`find`|Various options|Finds specific strings in files and folders.|
Command Parameter Description
echo Various options Prints strings in the output.

Command

Parameter

Description

echo

Various options

Prints strings in the output.

del

Various options

Deletes the XML file containing the old binding information.

BTSTask

ExportBindings /Destination:%TEMP%\MyBindings.xml /Database:[MgmtDbName] /server:[serverName]

This command is used only if there are not MSSQL credentials.Extracts the binding information and places it into the XML file.

|Command|Parameter|Description| |-------|---------|-----------| |`netstat`|Various options|Lists open ports.| |`hostname`|**-**|Gets the hostname.| |`tasklist`|Various options|Lists all running tasks.|
Command Parameter Description
netstat Various options Lists open ports.
hostname - Gets the hostname.
tasklist Various options Lists all running tasks.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.

Command

Parameter

Description

netstat

Various options

Lists open ports.

hostname

-

Gets the hostname.

dir

Various options

Lists files and folders in the specified folder.

tasklist

Various options

Lists all running tasks.

echo

Various options

Prints strings in the output.

del

Various options

Deletes the XML file containing the old binding information.

powershell

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-ExchangeServer -status -Identity [entry_point.host_name]| export-clixml $env:TEMP\exchange_pwrshell_output.xml

and

"Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer -status -Identity [entry_point.host_name] | export-clixml $env:TEMP\exchange_pwrshell_output.xml

This command is used only if you do not use TCP connections.Gives the CAS status, server roles, and Exchange setup structure.

Important: Do not use the dollar sign ($) in credentials for Exchange Hub Transport Server, because Service Mapping uses the dollar sign for pattern variables in the powershell command.

findstr

Various options

Extracts strings from the output.

find

Various options

Finds specific strings in files and folders.

Command

Parameter

Description

appcmd.exe

Various options

This command is used only for IIS version 7 and later.Retrieves information about the specified application name.

Command

Parameter

Description

appcmd.exe

Various options

This command is used only for IIS version 7 and later.Retrieves information about the specified application name.

iisapp.vbs

Various options

This command is used only for IIS version 6.Retrieves information about the specified application name.

dir

Various options

Lists files and folders in the specified folder.

findstr

Various options

Extracts strings from the output.

find

Various options

Finds specific strings in files and folders.

netstat

Various options

Lists open ports.

Command

Parameter

Description

ildasm.exe

text that contains process exe path

This file is necessary for performing the put file operation on the ILDisassembler alias. This file disassembles strings from the command .exe file.

.findstr

Various options

Gets the strings from the output.

dir

Various options

Lists all files in the specified folder.

connection_strings_browser.exe

[encrypted_configs[*].Name]

This command is used only for creating database encrypted connections. This file is necessary for performing the put file operation on theConnectionStringsBrowser alias.

Decrypts the database connections.

Command

Parameter

Description

netstat

Various options

Lists open ports.

hostname

-

Gets the hostname.

dir

Various options

Lists files and folders in the specified folder.

tasklist

Various options

Lists all running tasks.

del

Various options

Deletes the XML file containing old binding information.

echo

Various options

Prints strings in the output.

powershell

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer -status -Identity [entry_point.host_name]| export-clixml $env:TEMP\exchange_pwrshell_output.xml

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer -status | export-clixml $env:TEMP\exchange_pwrshell_output.xml

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-ExchangeServer -status -Identity [entry_point.host_name]| export-clixml $env:TEMP\exchange_pwrshell_output.xml

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ClusteredMailBoxServerStatus | format-table -Property OperationalMachines

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer | format-table -autosize -HideTableHeaders Name,Fqdn,IsHubTransportServer

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-ExchangeServer | format-table -autosize -HideTableHeaders Name,Fqdn,IsHubTransportServer

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-StorageGroup -server [hostname] | select SystemFolderPath | Export-Csv out.csv -notype;cat out.csv

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; Get-StorageGroup | select SystemFolderPath | Export-Csv out.csv -notype;cat out.csv

and

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-MailboxDatabase | select LogFolderPath | format-table -autosize -hideTableHeaders; Get-MailboxDatabase | select EdbFilePath| format-table -autosize -hideTableHeaders;Get-MailboxDatabase | select TemporaryDataFolderPath| format-table -autosize -hideTableHeaders

This command is used only if you do not use TCP connections.Gets the status, server roles, and the setup structure of Exchange Mailbox.

Important: Do not use the dollar sign ($) in credentials for Exchange Mailbox, because Service Mapping uses the dollar sign for pattern variables in the Powershell command.

find

Various options

This command is used only if PowerShell is not operational.Finds specific strings in the files and folders.

findstr

Various options

Extracts strings from the output.

|Command|Parameter|Description| |-------|---------|-----------| |`hostname`|**-**|Gets the hostname.|

Command

Parameter

Description

findstr

Various options

Extracts strings from the output.

hostname

-

Gets the hostname.

findstr

Various options

Extracts strings from the output.

sqlcmd

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Q select nvcname###inboundtransporturl FROM adm_ReceiveLocation rl, bts_receiveport rp where rl.receiveportid=rp.nid

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect nID,nvcName,nApplicationID from bts_receiveport

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect nID,nvcName,nApplicationID from bts_sendport

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect nOrcPortID,nReceivePortID,nSendPortid from bts_orchestration_port_binding

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect nID,nOrchestrationID from bts_orchestration_port

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect nID,nvcFullName from bts_orchestration

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect ah.Name###bo.nvcNamespace.bo.nvcName###ase.Name from bts_orchestration bo, adm_Host ah,adm_server ase,adm_Server2HostMapping ash where bo.nAdminHostID = ah.ID and ase.ID = ash.ServerID and ah.ID = ash.HostID

and

-Stcp:[computer_system.primaryManagementIP],[port] -d [entry_point.database] -U [username] -P '[password]' -y 0 -h-1 -Qselect nID,nSendPortID,nvcAddress from bts_sendport_transport

This command is used only to discover Microsoft BizTalk.Gets the BizTalk information from the database.

|Command|Parameter|Description| |-------|---------|-----------| |`findstr`|Various options|Extracts strings from the output.| |`netstat`|Various options|Lists open ports.|
Command Parameter Description
findstr Various options Extracts strings from the output.
netstat Various options Lists open ports.
sqlservr.exe Gets the version of the database from the executable file.

Command

Parameter

Description

mongo

--eval db.printShardingStatus()

Retrieves the status of MondoDB that is used for load balancing.

mongo

--db.Name()

Retrieves the name of the database connected to MongoDB server.

Command

Parameter

Description

findstr

Various options

(On Windows 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.

mysqld-nt/mysqld/mysqld.exe

-V

Gets the version.

mysql

--user=[username] --password=[password] --port=[jdbc_port] --skip-column-names --silent --execute="SHOW ENGINE NDB STATUS;;”

and

--user=[username] --password=[password] --port=[jdbc_port] --skip-column-names --silent --execute="SHOW SLAVE STATUS;;”

and

--user=[username] --password=[password] --port=[jdbc_port] --skip-column-names --silent --execute="select host from information_schema.processlist where command like '%%binlog%%';;”

This command is used only to create cluster node connections, primary replications, and the secondary.Gets the deployment structure of the MySQL server.

which

mysql

This command is used only to create cluster node connections, primary replications, and the secondary.Gets the full path of MySQL cluster nodes.

Command

Parameter

Description

netstat

Various options

Lists open ports.

ss

Various options

Lists open ports.

ndb_mgmd

-V

and

-e show

Gets the version and status of the MySQL Cluster MGM node.

Command

Parameter

Description

nginx

-v

Gets the version.

egrep

-v -e ^# -e "\t#"

This command is used if necessary to create HTTP connections.Ignores special characters.

|Command|Parameter|Description| |-------|---------|-----------| |`dir`|Various options|\(On Windows only\) Lists files and folders in the specified folder.| |`findstr`|Various options|\(On Windows only\) Extracts strings from the output.| |`find`|Various options|\(For Windows only\) Finds specific strings in files and folders.| |`export`|**-**|\(For Unix only\) Sets variables.| |`echo`|Various options|Prints strings in the output.| |`sqlplus`|Various options|Creates the connection to the Oracle instance.| |`awk`|Various options|\(For Unix only\) Manipulates the output.| |`netstat`|Various options|\(For Windows only\) Gets open ports.|
Command Parameter Description
export - (On Unix only) Sets a variable.
echo Various options Prints strings in the output.
sqlplus Various options Creates connection to the Oracle instance.
set - (On Windows only) Sets a variable.
netstat Various options (On Windows only) Lists open ports.
Command Parameter Description
findstr Various options (For Windows only) Extracts strings from the output.
dir Various options (For Windows only) Lists files and folders in the specified folder.
netstat Various options (For Windows only) Lists open ports.
awk Various options (For Unix only) Manipulates the output.
find Various options (For Windows only) Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
findstr Various options Extracts strings from the output.
dir Various options Lists files and folders in the specified folder.
find Various options Finds specified strings in the file and folders.
Command Parameter Description
findstr Various options Extracts strings from the output.
dir Various options Lists files and folders in the specified folder.
find Various options Finds specified strings in the file and folders.

Command

Parameter

Description

export

-

Sets the variable.

sqlplus

-s [username]/[password]@[entry_point.instance]

This command is used only for getting the advanced queue information.Gets the Oracle version and information about advance queue.

echo

-e set head off feed off pages 0 line 3000\\n\"select NAME || '##' || QUEUE_TABLE || '##' || QID || '##' || QUEUE_TYPE || '##' || RETENTION from DBA_QUEUES where OWNER = UPPER([entry_point.scheme]);

and

set head off feed off pages 0 line 3000\\n\"select NAME || '##' || QUEUE_TABLE || '##' || QID || '##' || QUEUE_TYPE || '##' || RETENTION from DBA_QUEUES where OWNER = UPPER([entry_point.scheme]);

and

select member as NEEBULA from v\$logfile;

and

select value as NEEBULA from v\$parameter where name='log_archive_dest'

and

select file_name as NEEBULA from dba_data_files;

and

select DB_LINK,HOST from DBA_DB_LINKS

This command is used only for getting the advance queue information. Gets the information about advance queue, storage devices, and database links.

lsnrctl

version

And

services

This command is used only for discovering the real application cluster (RAC) version. Gets the RAC version.

Command

Parameter

Description

set

-

Sets the variable.

sqlplus

-s [username]/[password]@[entry_point.instance]

This command is used only for getting the advance queue information.Gets the Oracle version and information about advance queue.

echo

-e set head off feed off pages 0 line 3000\\n\"select NAME || '##' || QUEUE_TABLE || '##' || QID || '##' || QUEUE_TYPE || '##' || RETENTION from DBA_QUEUES where OWNER = UPPER([entry_point.scheme]);

and

set head off feed off pages 0 line 3000\\n\"select NAME || '##' || QUEUE_TABLE || '##' || QID || '##' || QUEUE_TYPE || '##' || RETENTION from DBA_QUEUES where OWNER = UPPER([entry_point.scheme]);

and

select member as NEEBULA from v\$logfile;

and

select value as NEEBULA from v\$parameter where name='log_archive_dest'

and

select file_name as NEEBULA from dba_data_files;

and

select DB_LINK,HOST from DBA_DB_LINKS

This command is used only for getting the advance queue information. Gets the information about advance queue, storage devices, and database links.

lsnrctl

version

And

services

This command is used only for discovering the real application cluster (RAC) version. Gets the RAC version.

netstat

Various options

Lists open ports.

Command

Parameter

Description

findstr

Various options

Extracts strings from the output.

dir

Various options

Lists files and folders in the specified folder.

find

Various options

This command is used only to create the Web Services connections. Finds specified strings in the file and folders.

netstat

Various options

Lists open ports.

Command

Parameter

Description

lsnrctl

version

and

status

Gets the version and status of the Oracle Net Listener.

export

-

Sets the variable.

crsctl

status res -t

and

config service -d

Gets the services status and configuration.

|Command|Parameter|Description| |-------|---------|-----------| |`psadmin`|Various options|Retrieves information from the PeopleSoft repository or server.| |`tnsping`|Various options|Retrieves information about the database instance given to the tnsping command.| |`sqlplus`|Various options|Connects to the database instance and runs the sql query.|
Command Parameter Description
findstr Various options Extracts strings from the output.
dir Various options Lists files and folders in the specified folder.
find Various options Finds specified strings in the file and folders.
Command Parameter Description
findstr Various options Extracts strings from the output.
dir Various options Lists files and folders in the specified folder.
find Various options Finds specified strings in the file and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options Lists files and folders in the specified folder.
findstr Various options Extracts strings from the output.
find Various options Finds specific strings in files and folders.
Command Parameter Description
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
find Various options (For Windows only) Finds specific strings in files and folders.
versionInfo.sh - Gets the Websphere Application Server version.

Command

Parameter

Description

findstr

Various

(For Windows only) Extracts strings from the output

dir

Various

(For Windows only) Lists all existing files in the given folder.

find

Various

(For Windows only) Finds specific strings in files and folders.

find

-name

This command is used only to create web service connections.

Finds files and folders for specific name.

tmadmin

-v

Gets the Tuxedo version.

netstat

Various

Gets open ports.

ss

Various options

Lists open ports.

Command

Parameter

Description

findstr

Various

(For Windows only) Extracts strings from the output

dir

Various

(For Windows only) Lists all existing files in the given folder.

find

Various

(For Windows only) Finds specific strings in files and folders.

find

-name

This command is used only to create web service connections.

Finds files and folders for specific name.

|Command|Parameter|Description| |-------|---------|-----------| |`postgres`|**-v**|Gets the version.| |`findstr`|Various options|\(For Windows only\) Extracts strings from the output.| |`dir`|Various options|\(For Windows only\) Lists files and folders in the specified folder.|
Command Parameter Description
ps -ef Displays the currently running process.
grep Various options Searches plain-text data sets for lines that match the regular expression.
grep -v <string> Searches plain-text data sets for lines that do not match the regular expression.
ps -ef | grep corosync | grep -v grep' Checks if the corosync process is running on the server. If the process is running, the Red Hat Cluster is running on this server.
ifconfig - Displays the current network configuration information.
ip a - Displays the current network configuration information.
awk Various options Manipulates the output.
hostname -s Displays the Fully Qualified Domain Name (FQDN).
hostname -f Displays the short host name.
Command Parameter Description
findstr Various options (For Windows only) Extracts strings from the output.
type -
tnsping instance This command is used to create connections to Oracle.

Command

Parameter

Description

findstr

Various options

(For Windows only) Extracts strings from the output.

dir

Various options

Lists files and folders in the specified folder.

tnsping

instance

This command is used to create connections to Oracle. Gets the version.

|Command|Parameter|Description| |-------|---------|-----------| |`dir`|Various options|\(For Windows only\) Lists files and folders in the specified folder.| |`disp + work`|**-V**|Gets the version.| |`ping`|**-n 1**|\(For Windows only\) Verifies that the host is answering.| |`netstat`|Various options|Lists open ports.| |`ss`|Lists open ports.|Lists open ports.|
Command Parameter Description
dir Various options (For Windows only) Lists files and folders in the specified folder.
disp + work -V Gets the version.
ping -c 1 (For Unix only) Verifies that the host is answering.
ping -n 1 (For Windows only) Verifies that the host is answering.
netstat Various options Lists open ports.
Command Parameter Description
dir Various options (For Windows only) Lists files and folders in the specified folder.
disp + work -V Gets the version.
ping -n 1 (For Windows only) Verifies that the host is answering.
netstat Various options Lists open ports.
ss Lists open ports. Lists open ports.
Command Parameter Description
hdbsql -v Gets the version.

Command

Parameter

Description

hdbsql

Various options

  • Gets schemas info
  • Gets time zone
  • Gets disk size
|Command|Parameter|Description| |-------|---------|-----------| |`dir`|Various options|\(For Windows only\) Lists files and folders in the specified folder.| |`jlaunch`|**-V**|Gets the version.| |`ping`|**-n 1**|\(For Windows only\) Verifies that the host is answering.| |`netstat`|Various options|Lists the open ports.|
Command Parameter Description
dir Various options (For Windows only) Lists files and folders in the specified folder.
msg_server -V Gets the version.
ping -n 1 (For Windows only) Verifies that the host is answering.
netstat Various options Lists the open ports.
ss Lists open ports. Lists open ports.
Command Parameter Description
MsMdSrv.exe -n Gets the instance name.
netstat Various options Lists the open ports.

Command

Parameter

Description

MsMdSrv.exe

-n

Gets the instance name.

dir

Various options

Lists files and folders in the specified folder.

findstr

Various options

Extracts strings from the output.

find

Various options

Finds specified strings in the file and folders.

sqlcmd

-Stcp:[computer_system.primaryManagementIP],[port] -y 0 -h-1 -E -Qselect convert(varchar(max), convert(varbinary(max),packagedata))from msdb.dbo.sysssispackages where name = '[name]' -o [tmp_dir]/[name].xml

and

-Stcp:[computer_system.primaryManagementIP],[port] -y 0 -h-1 -E -Qselect convert(varchar(max), job_id)###[command]@@@ from msdb.dbo.sysjobsteps

and

-Stcp:[computer_system.primaryManagementIP],[port] -y 0 -h-1 -E -Qselect [name]###convert(varchar(max), job_id) from msdb.dbo.sysjobs

This command is used only for discovering jobs.

Command

Parameter

Description

dir

Various options

Lists files and folders in the specified folder.

findstr

Various options

Extracts strings from the output.

find

Various options

Finds specified strings in the file and folders.

sqlcmd

-Stcp:[computer_system.primaryManagementIP],[port] -h-1 -E -QSELECT [name]###DB FROM msdb.dbo.sysssispackages

and

-Stcp:[computer_system.managementIP],[port] -h-1 -E -QSELECT [name]###DB FROM msdb.dbo.sysssispackages

and

-Stcp:[computer_system.primaryManagementIP],[port] -h-1 -E -QSELECT [name]###JOB FROM msdb.dbo.sysjobs

and

-Stcp:[computer_system.managementIP],[port] -h-1 -E -Q SELECT [name]###JOB FROM msdb.dbo.sysjobs

This command is used only if you need to discover jobs.

|Command|Parameter|Description| |-------|---------|-----------| |`slapd-dirserv`|**-D \[instance\] -v**|Gets the version.| |`netstat`|Various options|Lists the open ports.|
Command Parameter Description
configutil - Gets the JES configuration.
Command Parameter Description
dataserverv -v Gets the version.
dir Various options (For Windows only) Lists files and folders in the specified folder.
Command Parameter Description
findstr Various options Extracts strings from the output.
netstat Various options Lists open ports.
ping -n 1[ip] Verifies that the SQL server is running.
Command Parameter Description
hostname - Gets the hostname.
"IFS=$'\n';for i in find " + $tra_home + " -type f grep -v /tmp egrep ".process$
Command Parameter Description
TibcoFilesParser.ksh - (For Unix only) This file is necessary for performing the put file operation. It replaces all tags in Tibco configuration files and puts them under the /tmp folder.
hostname - Gets the hostname.
cd - (On Unix only) Changes directory.
chmod - (On Unix only) Changes file permissions.
for Various options (On Unix only) Runs loops.
echo Various options (On Unix only) Prints strings in the output.
if Various options (On Unix only) Starts a condition.
wc -l (On Unix only) Counts the output lines.
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
netstat Various options Lists open ports.
Command Parameter Description
hostname - Gets the hostname.
cd - (On Unix only) Changes directory.
chmod - (On Unix only) Changes file permissions.
for Various options (On Unix only) Runs loops.
echo Various options (On Unix only) Prints strings in the output.
if Various options (On Unix only) Starts a condition.
wc -l (On Unix only) Counts the output lines.
dir Various options (On Windows only) Lists files and folders in the specified folder.
findstr Various options (On Windows only) Extracts strings from the output.
netstat Various options Lists open ports.
ss Lists open ports. Lists open ports.
cut Various options (On Unix only) Splits the output line.
Command Parameter Description
rm -f /tmp/ems.cmd Prepares the EMS script.
tibemsadmin -server tcp://+[computer_system.primaryManagementIP]:[port] -user [username] -password [password] -script [script] Connects to the EMS administrator and gets the list of EMS Queue consumers.
echo Various options Prints strings in the output.
Command Parameter Description
rm -f /tmp/ems.cmd Prepares the EMS script.
tibemsadmin -server tcp://+[computer_system.primaryManagementIP]:[port] -user [username] -password [password] -script [script] Connects to the EMS administrator and gets the list of EMS Queue consumers.
echo Various options (On Windows only) Prints strings in the output.

Parent Topic:Prerequisites for performing top-down discovery using Service Mapping

Related topics

Service Mapping commands requiring a privileged user

Search documentation
Search document titles and file paths on the australia branch