---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Non-privileged SSH commands

# Non-privileged SSH commands during probe-based discovery {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read

These tables display the SSH commands run by Discovery probes on target devices during horizontal discovery. These SSH commands don't require elevated privileges to run.

## Operating systems {#discovery-ssh-probe-commands__section_md1_5jd_11b}

For information on commands used by Service Mapping during the top-down discovery, see [Service Mapping commands requiring a privileged user](https://servicenow-prod.fluidtopics.net/KmX~uDsV3RoqnUbrW~2SFA "Service Mapping uses commands requiring elevated rights to discover and map Unix-based hosts in your organization. In addition to configuring necessary credentials, configure servers in your organization to allow Service Mapping to run these commands with elevated rights.") and [Service Mapping commands not requiring a privileged user](https://servicenow-prod.fluidtopics.net/PWerd39b5nEL~pJPadH4lQ "Most of commands utilized by Service Mapping for discovery and mapping do not require elevated rights.").  
{#discovery-ssh-probe-commands__table_zzv_4md_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| lsattr | -El sys0 -a modelname -F value |
| lslpp | -Lc |
| /etc/ifconfig | -au; netstat -in |
| instfix | -i \| grep AIX_ML |
| oslevel | -r |
| echo \`lsattr | -El sys0 -a systemid \| cut ... |
| rmsock |   |
| lsdev | * -C -F 'name,status' -c memory\|grep '\^mem' * -C -F 'name,status' -c processor -S a {#discovery-ssh-probe-commands__ul_xq4_5y3_w2c} |
| ps | -aef -o "pid,ppid,args" |
[Table 1. AIX commands]

{#discovery-ssh-probe-commands__table_zzv_4md_11b}  
{#discovery-ssh-probe-commands__table_vs2_nqd_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| arp | -n |
| bash | variable |
| cat | * /sys/hypervisor/compilation/compiled_by * /sys/devices/virtual/dmi/id/product_uuid * /etc/\*release * /proc/cpuinfo * /var/lib/dpkg/status * /proc/mounts * /proc/scsi/scsi * /etc/iscsi/initiatorname.iscsi * /sys/hypervisor/compilation/compiled_by {#discovery-ssh-probe-commands__ul_tkm_xy3_w2c} |
| grep MemTotal | /proc/meminfo |
| ifconfig | -a \&\& route -n |
| sh | variable |
| rpm | -q -a --qf |
| ls | * -d /sys/block/\* \| grep '\^/sys/block/\\(dm-\|sd\|sr\\)' * /sys/class/scsi_host/host\*/protocol 2\> /dev/null * /sys/class/scsi_host/host\*/info 2\> /dev/null * -d /sys/class/fc_host/host\* {#discovery-ssh-probe-commands__ul_inv_1z3_w2c} |
| shopt | -s extglob |
| findmnt | -l -n -o SOURCE,TARGET 2\>/dev/null |
| find | /sys/class/iscsi_session -maxdepth 1 -type l |
| fcoeadm | -i |
| ip | * neighbor 2\> /dev/null * address show \&\& ip route {#discovery-ssh-probe-commands__ul_ijz_gz3_w2c} |
| hostname | -f 2\> /dev/null |
| dnsdomainname | 2\> /dev/null |
| grep | * \^\[\[:space:\]\]\*domain /etc/resolv.conf * \^\[\[:space:\]\]\*search /etc/resolv.conf {#discovery-ssh-probe-commands__ul_cs1_lz3_w2c} |
| wget | * --spider -t 1 -T 1 * -qO- {#discovery-ssh-probe-commands__ul_rgb_mz3_w2c} |
| curl | --connect-timeout 1 |
| python | -c |
| sudo cat | /sys/devices/virtual/dmi/id/product_uuid |
[Table 2. Linux commands]

{#discovery-ssh-probe-commands__table_vs2_nqd_11b}  
{#discovery-ssh-probe-commands__table_q4l_hh3_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| ps | -elx |
| echo itick_per_usec/D | \| adb -k /stand/vm... |
| sh | variable |
| model |   |
| uname | * -i * -r {#discovery-ssh-probe-commands__ul_xqn_nz3_w2c} |
| swlist | -l product \| grep -v 'PH.._' |
| echo 'memory_installed_in_machine/D' | \| a... |
| netstat | -in \| grep -v Name |
| lanscan | -ia |
| typeset | -i2 |
| ioscan | -fnkC processor \| grep PROCESSOR \| wc -l |
[Table 3. HP-UX commands]

{#discovery-ssh-probe-commands__table_q4l_hh3_11b}  
{#discovery-ssh-probe-commands__table_ahg_yn3_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| kstat | cpu_info |
| pkginfo | -l \| egrep 'PKGINST\|NAME\|CATEGO... |
| prtconf | * \| grep Memory * \| grep 'System Configuration:' * -pv 2\>/dev/null {#discovery-ssh-probe-commands__ul_as3_pz3_w2c} |
| ifconfig | -a; netstat -pnr -f inet |
| arp | -an |
| showrev | -p |
| sneep | -T |
| bash | variable |
| pkg | list |
| iostat | -En \| awk '/\^c/' |
| zpool | * list * status \| awk '$1 == "NAME", $1 == ""' {#discovery-ssh-probe-commands__ul_ltw_qz3_w2c} |
| df | -k |
| fcinfo | hba-port |
| zonename |   |
| zoneadm |   |
| zonecfg | -z |
| hostid |   |
| uname | -r |
| nawk |   |
| ps | * -o pid,ppid * -awwx {#discovery-ssh-probe-commands__ul_hxz_rz3_w2c} |
| pfiles |   |
[Table 4. Solaris commands]

{#discovery-ssh-probe-commands__table_ahg_yn3_11b}  
{#discovery-ssh-probe-commands__table_t53_wbj_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| system_profiler | * SPHardwareDataType SPMemoryDataType -xml * SPSerialATADataType SPSASDataType SPFireWireDataType -xml * SPNetworkDataType -xml;ifconfig \| grep '\\Winet6\\W' * SPSoftwareDataType -xml * SPHardwareDataType -xml * SPApplicationsDataType -xml {#discovery-ssh-probe-commands__ul_wjc_scj_11b} |
| last | \| grep -m 1 console |
| hostname | 2\> /dev/null |
| grep | * '\^\[\\s\]\*domain' /etc/resolv.conf * '\^\[\\s\]\*search' /etc/resolv.conf {#discovery-ssh-probe-commands__ul_zjf_tz3_w2c} |
[Table 5. Mac commands]

{#discovery-ssh-probe-commands__table_t53_wbj_11b}  
{#discovery-ssh-probe-commands__table_wcv_11k_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| ps | * awwxo pid,ppid,command \| sed -n '/\<defunct\>/!p' * -ef {#discovery-ssh-probe-commands__ul_kfg_vz3_w2c} |
| sh | variable |
| cat | variable |
| variable | -version |
| uname | -a |
| df | -kP |
| uptime;env | LC_ALL=C date '+%a %b %e %H:%M %Z %Y' |
| echo | \\echo \`uname -I\` \`hostname\` \`uname -Iv\`.\`uname -Ir\` 2\>\&1\`\` |
| awk |   |
| grep |   |
| find |   |
| uuencode | -m |
| base64 | -w 0 |
| wc | -c |
| nohup |   |
| vmware | -v 2\>\&1 |
| systemctl | status cloudian-s3 2\>\&1 |
[Table 6. UNIX commands]

{#discovery-ssh-probe-commands__table_wcv_11k_11b}  
{#discovery-ssh-probe-commands__table_vdk_pmn_s2c__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| echo | \\lshmc -V 2\>\&1\`\` |
[Table 7. HMC OS commands]

{#discovery-ssh-probe-commands__table_vdk_pmn_s2c}

## Web servers {#discovery-ssh-probe-commands__section_a14_n2j_11b}

{#discovery-ssh-probe-commands__table_jvn_sfj_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| httpd_command | -V |
[Table 8. Apache commands]

{#discovery-ssh-probe-commands__table_jvn_sfj_11b}  
{#discovery-ssh-probe-commands__table_tmj_lgj_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| cat | variable |
| find -L ${dirname} | -name web.xml -print 2\>/dev/null |
[Table 9. Tomcat commands]

{#discovery-ssh-probe-commands__table_tmj_lgj_11b}  
{#discovery-ssh-probe-commands__table_czl_23j_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | * get-nginxcfg * get-nginx-ver {#discovery-ssh-probe-commands__ul_yzh_k3j_11b} |
[Table 10. NGINX commands]

{#discovery-ssh-probe-commands__table_czl_23j_11b}

## Databases {#discovery-ssh-probe-commands__section_t3m_yvj_11b}

{#discovery-ssh-probe-commands__table_mzf_5wj_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| lsnrctl | status |
[Table 11. Oracle commands]

{#discovery-ssh-probe-commands__table_mzf_5wj_11b}  
{#discovery-ssh-probe-commands__table_nrg_cyj_11b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| cat | variable |
| variable | -V |
[Table 12. SQL commands]

{#discovery-ssh-probe-commands__table_nrg_cyj_11b}  
{#discovery-ssh-probe-commands__table_z3j_x1m_b1b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| cat | variable |
| sh | variable |
| variable | -lv \| grep \^${processID} |
| echo | "version" \| hbase shell |
[Table 13. HBase commands]

{#discovery-ssh-probe-commands__table_z3j_x1m_b1b}

## Applications {#discovery-ssh-probe-commands__section_t3m_q2m_b1b}

{#discovery-ssh-probe-commands__table_wsg_gfm_b1b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
[Table 14. ESX - OS commands]

{#discovery-ssh-probe-commands__table_wsg_gfm_b1b}  
{#discovery-ssh-probe-commands__table_tw3_4fm_b1b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| tmsh | show sys version 2\>\&1 |
[Table 15. F5 - OS commands]

{#discovery-ssh-probe-commands__table_tw3_4fm_b1b} {#discovery-ssh-probe-commands__table_tyf_bgm_b1b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| variable | -v |
[Table 16. HAProxy commands]

{#discovery-ssh-probe-commands__table_tyf_bgm_b1b}  
{#discovery-ssh-probe-commands__table_hl4_hgm_b1b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| find | -name web.xml -print |
| cat | variable |
[Table 17. JBoss commands]

{#discovery-ssh-probe-commands__table_hl4_hgm_b1b}  
{#discovery-ssh-probe-commands__table_dlr_rgm_b1b__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| sh | variable |
| virsh | Various capabilities |
[Table 18. KVM commands]

{#discovery-ssh-probe-commands__table_dlr_rgm_b1b}  
{#discovery-ssh-probe-commands__table_clg_bmn_s2c__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| puppet | * --version * config print {#discovery-ssh-probe-commands__ul_pcn_yz3_w2c} |
| hostname | --fqdn |
[Table 19. Puppet commands]

{#discovery-ssh-probe-commands__table_clg_bmn_s2c}

## Storage {#discovery-ssh-probe-commands__section_bpw_yrk_52c}

{#discovery-ssh-probe-commands__table_azy_1sk_52c__entry__2}

| Command (ECC queue name) | Parameters |
|-|-|
| purehw | list --all --nvp --type ch |
| vxprint | -AQmb |
| vxdisk | path |
| sudo vxdisk | list \| awk 'NR \> 1' |
| pureblade | list 2\>\&1 |
[ ]

{#discovery-ssh-probe-commands__table_azy_1sk_52c}
**Related concepts**   

* [Discovery commands for probes and patterns](https://servicenow-prod.fluidtopics.net/ATbmi05od6rcXEGKXzCwZw "Discovery commands are used for both probe and pattern-based discovery to access configuration items (CIs) in your environment.")

