Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Service Mapping commands not requiring a privileged user

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

CommandParameterDescription
`awk`various optionsParses the string.
`istat`file_nameGets last modification time of file.
`nslookup`hostnameResolve DNS host name.
`ping`-c count ip/hostPings the host.
`arp -an`various optionsShows ARP table.
`grep`String to searchFinds string in previous command output.
`traceroute`-n ip_addressShows layer 3 network route to target host.
`netstat`

-an

-Aan

Shows open network connections.
`ps`-eo user, pid, ppid, comm, argsGets the process list.
`find`Directory and parameters to searchSearches for files by name or type.
CommandParameterDescription
ping-c count ip/hostPings the host.
arp -an Shows the ARP table.
grepString to searchFinds string in previous command output.
awkvarious optionsParses the string.
traceroute-n ip_addressShows layer 3 network route to target host.
netstat-anShows open network connections.
ps-eo user, pid, ppid, comm, argsGets the process list.
findDirectory and parameters for searchSearches for files by name or type.
CommandsParameterDescription
sysvarSYSNAMEGets the system name.
hostname Retrieves the device name.
grepString to searchFinds 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.
netstatdf -k | awk '{print \$1,\$2}' |sed -e s'/(//' | sed -e s'/)//' 2> /dev/nullGets the file system information.
ps-Gets the process list.
lsVarious optionsLists files and folders in the specified folder.
catfile-nameShows the file content.
cutVarious optionsSplits the output according to entered parameters.
unamel, v, rm, sGets the OS type.
CommandsParameterDescription
`nslookup`hostnameResolves the DNS host name.
`ping`

-c count ip

host

Pings the host.
`arp`-an/nShows the ARP table.
`lp n`-an/nShows 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 optionsParses the string.
`netstat`-anShows open network connections.
`ss`-anShows open network connections.
`ps`-eo user, pid, ppid, comm, args, wwwxGets the process list.
`egrep`Various optionsSearches text in previous command output.
`find`Directory and parameters for searchSearches for files by name or type.
`traceroute`-n ip_addressShows the layer 3 network route to target host.
`df`-kP, echoExtracts the information about the file system, including the size in KB.
`uptime`Various optionsShows the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
`date`Various optionsDisplays the date in the time zone on which Linux operating system is configured.
`perl`-e 'print timeOpens the Perl shell and prints time.
`command`-v vxprintThis command is used in the Debug mode.
`uname`

-a

-r

Displays the information about the system.
`ipfconfig`-aShows 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`-nShows the IP routing table.
`ip r` Shows the IP routing table.
`sed`-n '2!p'Executes a function using the SED stream editor.
`bash`-cExecutes the command using the UNIX shell or command language.
`waagent`-version 2>/dev/nullDisplays the information extracted from the Microsoft Azure Linux agent.
CommandParameterDescription
nslookuphostnameResolves the DNS host name.
ping-c count ip/hostPings the host.
arp-anShows the ARP table.
grepString to searchFinds the string in previous command output.
awkVarious optionsParses the string.
traceroute-n ip_addressShows the layer 3 network route to target host.
netstat-anShows the open network connections.
zoneadmListShows the list of zones.
egrepVarious optionsSearches text in previous command output.
findDirectory and parametersSearches for files by name or type.
QueryDescription
Select * from Win32_ComputerSystemGets 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_ProcessorGets 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_LogicalDiskGets 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.
CommandParameterDescription
`get_process_info.exe`Process_idExtracts information on the processes using executable created by ServiceNow.
`type`File_nameShows the text file content.
`nslookup`Host_nameDNS lookup
`arp`-aShows the ARP table.
`netstat`-anoShows the network connections.
`findstr`Various optionsFinds 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_addressShows the layer 3 network route to the target host.

Applications

CommandParameterDescription
show partitionVarious optionsGet the partition configured.
sh-run all-partitionsVarious optionsGet details like virtual-server, port, service group, and pool members information.
show slb virtual-server all-partitionsVarious optionsGet the status of the virtual server and hit count details.
CommandParameterDescription
dirVarious options(For Windows only) Lists files and folders in the specified folder.
msg_server-VGets the version.
ping-n 1(For Windows only) Verifies that the host is answering.
netstatVarious optionsLists open ports.
ssVarious optionsLists open ports.
CommandParameterDescription
netstatVarious optionsGets open ports on
ssVarious optionsLists open ports.
hostname-Gets the hostname.
dirVarious optionsLists all files in the specified folder.
CommandParameterDescription
`httpd`-VGets the version.
`cut`Various optionsSplits 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`-uThis command is used only for discovering the Weblogic connectivity. Sorts the output.
CommandParameterDescription
`httpd.exe`-VGets 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.
CommandParameterDescription
`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`-nameCreates 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 optionsLists the open ports.
`find`-nameThis 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.
CommandParameterDescription
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
version.sh/version.bat-Gets the Tomcat version.
netstatVarious options(Windows only) Lists the open ports.
CommandParameterDescription
dirVarious options(On Windows only) Lists files and folders in the specified folder.
netstatVarious options(On Windows only) Lists open ports.
grepVarious options(On Windows only) Extracts strings from the output.
CommandParameterDescription
`show`/gtm pool [wide_ip_pool_4_cmd[1].pool] membersThis command is used only to create connections to pool members. Gets the pool members.
`list`/gtm server [servers_from_cmd[].server] addressesThis command is used only to create connections to pool members. Lists the alias server addresses.
CommandParameterDescription
`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.
CommandParameterDescription
show cm traffic-group – getVarious optionsThis command is used to get traffic and clustering information.
CommandParameterDescription
findstrVarious options(For Windows only) Extracts strings from the output.
netstatVarious options(For Windows only) Lists open ports.
CommandParameterDescription
`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 optionsThis 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.
CommandParameterDescription
tnspingVarious optionsRetrieves information about Oracle connections.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
CommandParameterDescription
findVarious optionsFinds the base init configuration file path.
locateVarious optionsFinds the base init configuration file path if the 'find' command fails.
nodetool versionVarious optionsRetrieves the Apache Cassandra version.
nodetool describeclusterVarious optionsRetrieves the cluster name.
nodetool infoVarious optionsRetrieves the data center and rack information
nodetool ringVarious optionsRetrieves the workload running for Apache Cassandra.
nodetool tablestatsVarious optionsRetrieves list of keyspaces available on a cluster.
dse–vRetrieves the DataStax Cassandra version.
dsetool ringVarious optionsRetrieves the workload running for DataStax Cassandra.
CommandParameterDescription
showcontext, runningShows the requested information.
include-Extracts strings from the output.
echo-Displays strings to the output.
CommandParameterDescription
showgslb-config domain-listShows the domain list.
showgslb-config dns ruleShows the DNS rule output.
showgslb-config answer-groupShow the VIP answer.
CommandParameterDescription
`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.
CommandParameterDescription
qfarm Discovers epic icons.
CommandParameterDescription
get_xenapp_apps.ps1[entry_point.icon_path]Runs powershell commands that retrieve the Citrix icon info from the Citrix repository.
powershellVarious optionsRuns powershell commands.
CommandParameterDescription
cscript//NoLogoRuns 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.
CommandParameterDescription
`show`cs policy, cs action,cs Policy, lb vserverThis command is used only for discovering outgoing connections. Shows the requested information.
`grep`Various optionsExtracts strings from the output.
CommandParameterDescription
`show`ns.confThis command is used only for discovering outgoing connections if SNMP or SSH credentials are not provided. Shows the contents of the ns.conf file.
CommandParameterDescription
findstrVarious options(For Windows only) Extracts strings from the output.
dirVarious options(For Windows only) Lists files and folders in the specified folder.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
CommandParameterDescription
findstrVarious options(On Windows only) Extracts strings from the output.
tasklistVarious optionsLists all running tasks.
netshhttp show servicestateShows a snapshot of the HTTP service.
CommandParameterDescription
systemctl list-units --type serviceVarious optionsShow the service status.
/bin/systemctl status "+service_name+".serviceVarious optionsShow the service status.
service --status-allVarious optionsShow the service status.
read /etc/servicesVarious optionsAllows access to the file.
CommandParameterDescription
lsVarious options(On Unix only) Lists files and folders in the specified folder.
tailVarious options(On Unix only) Displays the end of the output.
CommandParameterDescription
tnspingVarious optionsRetrieves information about Oracle connections.
netstatVarious optionsLists open ports.
ssVarious optionsLists open ports.
CommandParameterDescription
netstatVarious optionsLists open ports.
CommandParameterDescription
netstatVarious optionsLists open ports.
CommandParameterDescription
`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 optionsDeletes 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.
CommandParameterDescription
findstrVarious options(For Windows only) Extracts strings from the output.
dirVarious options(For Windows only) Lists files and folders in the specified folder.
CommandParameterDescription
`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.
CommandParameterDescription
source[installed_dir]db2profileSets the DB2 variables.
db2list database directoryDisplays the DB2 installation parameters.
grepVarious optionsExtracts strings from the output.
head-1Displays 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.
CommandParameterDescription
`db2cmd`/c /w /iLists the DB2 directories.
`db2`list database directoryDisplays the DB2 installation parameters.
`find`Various optionsFinds specific strings in files, folders, or standard output.
`dir`Various optionsLists files and folders in the specified folder.
`db2level`-Displays the DB2 version.
`echo`Various optionsThis command is used only for storage connectivity. Prints the strings in the output.
`findstr`Various optionsThis command is used only for storage connectivity.Extracts strings from the output.
`for`Various optionsThis command is used only for storage connectivity. Runs loops.
CommandParameterDescription
netstatVarious optionsGets the DB2 name.
CommandParameterDescription
netstatVarious optionsLists open ports.
findVarious optionsFinds specific strings in files and folders.
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
CommandParameterDescription
versionInfo.sh-Gets the Websphere Application Server version.
CommandParameterDescription
"oeconsol 'D OMVS,A=ALL' | grep "+$taskname-Gets the Websphere Application Server task.
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}’ Gets attributes for processes.
$install_dir+"/bin/versionInfo.sh | grep Version | tail -1" Gets the version from script.
$install_dir+"/properties/version/BASE.product" Gets the version from version file (failover).
"ls "+$conf_dir+"/*/*/applications/*/deployments/*/META-INF/application.xml | xargs grep \"<context-root>/"+$uri_search+"\""+" 1>/tmp/app.txt 2>/dev/null; cat /tmp/app.txt" Gets the list of URI files.
$ear_directory_name+"/*/*/*/wsdl/*.wsdl" Reads the wsdl files under the discovered inclusion on the Ear directory.
CommandParameterDescription
`grep`Various optionsExtracts 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.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
netstatVarious optionsLists the open ports.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
`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 BROKERRESOURCESDisplays 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.
CommandParameterDescription
mqsiprofile-Sets the variables for WebSphere Message Broker.
mqsireportbroker[broker name]Gets the WebSphere Message Broker information.
ps-efGets the process information.
mqsibrowse[broker name] -t BROKERRESOURCESDisplays the Message Broker information resources.
db2 Displays DB2 installation parameters: database directory and node directory.
CommandParameterDescription
`mqsiprofile`-Sets the variables for WebSphere Message Broker.
`mqsireportbroker`[broker name]Gets the WebSphere Message Broker information.
`mqsibrowse`[broker name] -t BROKERRESOURCESDisplays 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`$ODBCINIThis command is used only to create connections to IBM DB2. Prints strings in the output.
CommandParameterDescription
mqsiprofile-SSets the variables for WebSphere Message Broker.
mqsireportbroker[broker name]Gets the WebSphere Message Broker information.
ps-efGets the process information.
mqsibrowse[broker name] -t BROKERRESOURCESDisplays the Message Broker information resources.
CommandParameterDescription
dspmq-Gets the queue manager status.
dspmqver-Gets the queue manager version.
runmqsc[queue manager]Gets the queue information.
CommandParameterDescription
grepVarious optionsExtracts strings from the output.
dspmq-Gets the queue manager status.
dspmqver-Gets the queue manager version.
runmqsc[queue manager]Gets the queue information.
CommandParameterDescription
netstat-a | grep "+$portGets the IBM MQ name.
df-k | grep MQ"Gets the file system.
"echo "+$netstat_info[1].mq_name+" | cut -c1-4"-Gets the queue manager name.
"oeconsol '-"+$queue_manager+" display qmgr ALL' "-Gets the MQ logical name information.
"oeconsol '-"+$queue_manager+" display queue ("+$entry_point.queue_name+") ALL' | tr \"(\" \"#\" | tr \")\" \"\""-Gets the MQ queue information together with the information on its connections.
"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.
CommandParameterDescription
dspmq-Gets the queue manager status.
dspmqver-Gets the queue manager version.
runmqsc[queue manager]Gets the queue information.
CommandParameterDescription
dspmq-Gets the queue manager status.
dspmqver-Gets the queue manager version.
runmqsc[queue manager]Gets the queue information.
CommandParameterDescription
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(On Windows only) Finds specific strings in files and folders.
netstatVarious options(On Windows only) Lists open ports.
CommandParameterDescription
find-nameFinds files and folders in the specified folder.
xargsgrep <string>Finds strings in all files found in the output file.
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
netstatVarious optionsLists open ports.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
CommandParameterDescription
find-nameFinds files and folders in the specified folder.
xargsgrep <string>Finds strings in the files found in the output file.
grepVarious optionsExtracts strings from the output.
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
netstatVarious optionsLists open ports.
ssVarious optionsLists open ports.
CommandParameterDescription
`netstat`Various optionsLists open ports.
`hostname`-Gets the hostname.
`dir`Various optionsLists files and folders in the specified folder.
`tasklist`Various optionsLists all running tasks.
`del`Various optionsDeletes the XML file containing the old binding information.
`echo`Various optionsPrints 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 optionsThis command is used only if PowerShell is not operational.Finds specific strings in the files and folders.
`findstr`Various optionsExtracts strings from the output.
CommandParameterDescription
netstatVarious optionsLists open ports.
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
echoVarious optionsPrints strings in the output.
CommandParameterDescription
`echo`Various optionsPrints strings in the output.
`del`Various optionsDeletes 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.
CommandParameterDescription
netstatVarious optionsLists open ports.
hostname-Gets the hostname.
tasklistVarious optionsLists all running tasks.
CommandParameterDescription
netstatVarious optionsLists open ports.
hostname-Gets the hostname.
tasklistVarious optionsLists all running tasks.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
CommandParameterDescription
`netstat`Various optionsLists open ports.
`hostname`-Gets the hostname.
`dir`Various optionsLists files and folders in the specified folder.
`tasklist`Various optionsLists all running tasks.
`echo`Various optionsPrints strings in the output.
`del`Various optionsDeletes 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 optionsExtracts strings from the output.
`find`Various optionsFinds specific strings in files and folders.
CommandParameterDescription
`appcmd.exe`Various optionsThis command is used only for IIS version 7 and later.Retrieves information about the specified application name.
CommandParameterDescription
`appcmd.exe`Various optionsThis command is used only for IIS version 7 and later.Retrieves information about the specified application name.
`iisapp.vbs`Various optionsThis command is used only for IIS version 6.Retrieves information about the specified application name.
`dir`Various optionsLists files and folders in the specified folder.
`findstr`Various optionsExtracts strings from the output.
`find`Various optionsFinds specific strings in files and folders.
`netstat`Various optionsLists open ports.
CommandParameterDescription
`ildasm.exe`text that contains process exe pathThis file is necessary for performing the put file operation on the ILDisassembler alias. This file disassembles strings from the command .exe file.
`.findstr`Various optionsGets the strings from the output.
`dir`Various optionsLists 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.
CommandParameterDescription
`netstat`Various optionsLists open ports.
`hostname`-Gets the hostname.
`dir`Various optionsLists files and folders in the specified folder.
`tasklist`Various optionsLists all running tasks.
`del`Various optionsDeletes the XML file containing old binding information.
`echo`Various optionsPrints 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 optionsThis command is used only if PowerShell is not operational.Finds specific strings in the files and folders.
`findstr`Various optionsExtracts strings from the output.
CommandParameterDescription
hostname-Gets the hostname.
CommandParameterDescription
`findstr`Various optionsExtracts strings from the output.
`hostname`-Gets the hostname.
`findstr`Various optionsExtracts 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.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
netstatVarious optionsLists open ports.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
netstatVarious optionsLists open ports.
sqlservr.exe Gets the version of the database from the executable file.
CommandParameterDescription
`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.
CommandParameterDescription
`findstr`Various options\(On Windows only\) Extracts strings from the output.
`netstat`Various optionsLists open ports.
`ss`Various optionsLists open ports.
`ps`--pid=[process.pid] --no-headers -o " %U : %p : %a”Gets the userid parameter value.
`mysqld-nt/mysqld/mysqld.exe`-VGets 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`mysqlThis command is used only to create cluster node connections, primary replications, and the secondary.Gets the full path of MySQL cluster nodes.
CommandParameterDescription
`netstat`Various optionsLists open ports.
`ss`Various optionsLists open ports.
`ndb_mgmd`

-V

and

-e show

Gets the version and status of the MySQL Cluster MGM node.
CommandParameterDescription
`nginx`-vGets the version.
`egrep`-v -e ^# -e "\t#"This command is used if necessary to create HTTP connections.Ignores special characters.
CommandParameterDescription
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
export-(For Unix only) Sets variables.
echoVarious optionsPrints strings in the output.
sqlplusVarious optionsCreates the connection to the Oracle instance.
awkVarious options(For Unix only) Manipulates the output.
netstatVarious options(For Windows only) Gets open ports.
CommandParameterDescription
export-(On Unix only) Sets a variable.
echoVarious optionsPrints strings in the output.
sqlplusVarious optionsCreates connection to the Oracle instance.
set-(On Windows only) Sets a variable.
netstatVarious options(On Windows only) Lists open ports.
CommandParameterDescription
findstrVarious options(For Windows only) Extracts strings from the output.
dirVarious options(For Windows only) Lists files and folders in the specified folder.
netstatVarious options(For Windows only) Lists open ports.
awkVarious options(For Unix only) Manipulates the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
dirVarious optionsLists files and folders in the specified folder.
findVarious optionsFinds specified strings in the file and folders.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
dirVarious optionsLists files and folders in the specified folder.
findVarious optionsFinds specified strings in the file and folders.
CommandParameterDescription
`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.
CommandParameterDescription
`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 optionsLists open ports.
CommandParameterDescription
`findstr`Various optionsExtracts strings from the output.
`dir`Various optionsLists files and folders in the specified folder.
`find`Various optionsThis command is used only to create the Web Services connections. Finds specified strings in the file and folders.
`netstat`Various optionsLists open ports.
CommandParameterDescription
`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.
CommandParameterDescription
psadminVarious optionsRetrieves information from the PeopleSoft repository or server.
tnspingVarious optionsRetrieves information about the database instance given to the tnsping command.
sqlplusVarious optionsConnects to the database instance and runs the sql query.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
dirVarious optionsLists files and folders in the specified folder.
findVarious optionsFinds specified strings in the file and folders.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
dirVarious optionsLists files and folders in the specified folder.
findVarious optionsFinds specified strings in the file and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious optionsLists files and folders in the specified folder.
findstrVarious optionsExtracts strings from the output.
findVarious optionsFinds specific strings in files and folders.
CommandParameterDescription
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
findVarious options(For Windows only) Finds specific strings in files and folders.
versionInfo.sh-Gets the Websphere Application Server version.
CommandParameterDescription
`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`-nameThis command is used only to create web service connections. Finds files and folders for specific name.
`tmadmin`-vGets the Tuxedo version.
`netstat`VariousGets open ports.
`ss`Various optionsLists open ports.
CommandParameterDescription
`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`-nameThis command is used only to create web service connections. Finds files and folders for specific name.
CommandParameterDescription
postgres-vGets the version.
findstrVarious options(For Windows only) Extracts strings from the output.
dirVarious options(For Windows only) Lists files and folders in the specified folder.
CommandParameterDescription
ps-efDisplays the currently running process.
grepVarious optionsSearches 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.
awkVarious optionsManipulates the output.
hostname-sDisplays the Fully Qualified Domain Name (FQDN).
hostname-fDisplays the short host name.
CommandParameterDescription
findstrVarious options(For Windows only) Extracts strings from the output.
type- 
tnspinginstanceThis command is used to create connections to Oracle.
CommandParameterDescription
`findstr`Various options\(For Windows only\) Extracts strings from the output.
`dir`Various optionsLists files and folders in the specified folder.
`tnsping`instanceThis command is used to create connections to Oracle. Gets the version.
CommandParameterDescription
dirVarious options(For Windows only) Lists files and folders in the specified folder.
disp + work-VGets the version.
ping-n 1(For Windows only) Verifies that the host is answering.
netstatVarious optionsLists open ports.
ssLists open ports.Lists open ports.
CommandParameterDescription
dirVarious options(For Windows only) Lists files and folders in the specified folder.
disp + work-VGets 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.
netstatVarious optionsLists open ports.
CommandParameterDescription
dirVarious options(For Windows only) Lists files and folders in the specified folder.
disp + work-VGets the version.
ping-n 1(For Windows only) Verifies that the host is answering.
netstatVarious optionsLists open ports.
ssLists open ports.Lists open ports.
CommandParameterDescription
hdbsql-vGets the version.
CommandParameterDescription
`hdbsql`Various options- Gets schemas info - Gets time zone - Gets disk size
CommandParameterDescription
dirVarious options(For Windows only) Lists files and folders in the specified folder.
jlaunch-VGets the version.
ping-n 1(For Windows only) Verifies that the host is answering.
netstatVarious optionsLists the open ports.
CommandParameterDescription
dirVarious options(For Windows only) Lists files and folders in the specified folder.
msg_server-VGets the version.
ping-n 1(For Windows only) Verifies that the host is answering.
netstatVarious optionsLists the open ports.
ssLists open ports.Lists open ports.
CommandParameterDescription
MsMdSrv.exe-nGets the instance name.
netstatVarious optionsLists the open ports.
CommandParameterDescription
`MsMdSrv.exe`-nGets the instance name.
`dir`Various optionsLists files and folders in the specified folder.
`findstr`Various optionsExtracts strings from the output.
`find`Various optionsFinds 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.
CommandParameterDescription
`dir`Various optionsLists files and folders in the specified folder.
`findstr`Various optionsExtracts strings from the output.
`find`Various optionsFinds 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.
CommandParameterDescription
slapd-dirserv-D [instance] -vGets the version.
netstatVarious optionsLists the open ports.
CommandParameterDescription
configutil-Gets the JES configuration.
CommandParameterDescription
dataserverv-vGets the version.
dirVarious options(For Windows only) Lists files and folders in the specified folder.
CommandParameterDescription
findstrVarious optionsExtracts strings from the output.
netstatVarious optionsLists open ports.
ping-n 1[ip]Verifies that the SQL server is running.
CommandParameterDescription
hostname-Gets the hostname.
"IFS=$'\n';for i infind " + $tra_home + " -type fgrep -v /tmpegrep \".process$
CommandParameterDescription
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.
forVarious options(On Unix only) Runs loops.
echoVarious options(On Unix only) Prints strings in the output.
ifVarious options(On Unix only) Starts a condition.
wc-l(On Unix only) Counts the output lines.
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
netstatVarious optionsLists open ports.
CommandParameterDescription
hostname-Gets the hostname.
cd-(On Unix only) Changes directory.
chmod-(On Unix only) Changes file permissions.
forVarious options(On Unix only) Runs loops.
echoVarious options(On Unix only) Prints strings in the output.
ifVarious options(On Unix only) Starts a condition.
wc-l(On Unix only) Counts the output lines.
dirVarious options(On Windows only) Lists files and folders in the specified folder.
findstrVarious options(On Windows only) Extracts strings from the output.
netstatVarious optionsLists open ports.
ssLists open ports.Lists open ports.
cutVarious options(On Unix only) Splits the output line.
CommandParameterDescription
rm-f /tmp/ems.cmdPrepares 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.
echoVarious optionsPrints strings in the output.
CommandParameterDescription
rm-f /tmp/ems.cmdPrepares 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.
echoVarious 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