Linux/Unix
dmesg
Full command usage:
-
dmesg
Purpose:
Kernel version identification & disk data collection.
df
Full command usage:
-
df
-
df -TPl -x tmpfs -B 1 2>/dev/null
-
df -TP -t cifs
Purpose:
Disk/Filesystem discovery.
find
Full command usage:
-
find <All supported arguments>
Purpose:
Identification of file locations.
getconf
Full command usage:
-
getconf PAGE_SIZE
Purpose:
Truncated process detection.
grep
Full command usage:
-
grep <All supported arguments>
Purpose:
Searches through either information piped to it or files in the current directory.
hostname
Full command usage:
-
hostname 2>/dev/null
-
hostname -I
Purpose:
Collect hostname data.
ifconfig
Full command usage:
-
ifconfig -a 2>/dev/null
-
ifconfig <interface name>
Purpose:
Collect last logged users.
last
Full command usage:
-
-n 10 -i
Purpose:
Collect last logged users.
locate
Full command usage:
-
locate <filepath>
Purpose:
File location identification.
lscpu
Full command usage:
-
lscpu
Purpose:
Identification of KVM.
lsmod
Full command usage:
-
lsmod
Purpose:
Uniqueness determination.
ps
Full command usage:
-
ps -eo pid,ppid,comm,args
Purpose:
Process collection
test
Full command usage:
-
test -f “<filepath>“
Purpose:
Validation of file existence.
uname
Full command usage:
-
uname -a 2>/dev/null
-
uname -spm 2>/dev/null
-
uname -sm 2>/dev/null
-
uname -M 2>/dev/null
-
uname -u 2>/dev/null
-
uname -p 2>/dev/null
-
uname -i 2>/dev/null
-
uname -r 2>/dev/null
Purpose:
Collect OS & hardware data.
whereis
Full command usage:
-
whereis -b dmidecode
-
whereis -b nsenter
-
whereis lsof
Purpose:
Source/binary location identification.
Solaris Only
arp
Full command usage:
-
arp -an
Purpose:
MAC Address discovery.
df
Full command usage:
-
df -lk 2>/dev/null
Purpose:
Disk discovery.
echo
Full command usage:
-
echo $PATH
Purpose:
Support PATH dependent logic.
hostid
Full command usage:
-
hostid 2>/dev/null
Purpose:
Serial number discovery.
iostat
Full command usage:
-
iostat -En
Purpose:
Solaris Disk data discovery.
kstat
Full command usage:
-
stat -m cpu_info
Purpose:
Solaris CPU data collection.
prtconf
Full command usage:
-
prtconf
-
/usr/sbin/prtconf -V 2>/dev/null
Purpose:
Device property discovery.
ps
Full command usage:
-
/usr/ucb/ps awwwx
Purpose:
Process discovery.
prtdiag
Full command usage:
-
/usr/sbin/prtdiag -v
Purpose:
Virtualization detection.
psrinfo
Full command usage:
-
psrinfo -p
-
psrinfo -p 2>/dev/null
Purpose:
CPU & socket data collection.
sneep
Full command usage:
-
sneep 2>/dev/null
Purpose:
Chassis discovery.
zpool
Full command usage:
-
zpool list
Purpose:
Filesystem data collection.
AIX Only
df
Full command usage:
-
df -kI 2>/dev/null
Purpose:
Disk discovery.
echo
Full command usage:
-
echo `uname -v 2>/dev/null`.`uname -r 2>/dev/null`
Purpose:
Collecting OS data points.
getconf
Full command usage:
-
getconf DISK_SIZE
Purpose:
Device disk size determination.
HP-UX Only
cstm
Full command usage:
-
echo "selclass qualifier hard;info;wait;infolog"|cstm 2>/dev/null
-
cstm 2>/dev/null << EOF selclass qualifier cpu;info;wait;il EOF
-
cstm 2>/dev/null << EOF selclass qualifier memory;info;wait;il EOF
Purpose:
Collecting data related to Disks, Memory & CPU and firmware.
echo
Full command usage:
-
echo "runningprocs/d"
-
echo itick_per_tick/D
-
echo "selclass qualifier hard;info;wait;infolog"|cstm 2>/dev/null
-
echo `uname -v 2>/dev/null`.`uname -r 2>/dev/null`
Purpose:
Collecting OS, Disk & CPU data points.
getconf
Full command usage:
-
getconf MACHINE_MODEL 2>/dev/null
-
getconf SC_HT_ENABLED 2>/dev/null
Purpose:
Determine processor threading and architecture.
hostid
Full command usage:
-
hostid 2>/dev/null
Purpose:
Serial number discovery.