General hardware, software, and environment information to collect

Gather the following information for each host or client machine:
  • Operating system version
  • Operating system patches or maintenance level
  • Operating system environment variables
  • Operating system configuration & error reporting
  • Operating system kernel parameters
  • Operating system processes
  • Mounted file systems and disk resources
  • Hostname information and network information
Use the following commands to gather the information. Read the operating system manual pages and product documentation for usage and other information, if necessary.



AIX
Command
Collects
prtconfMachine hardware information, machine model, CPUs, network
uname -a or oslevel -qoperating system version
/usr/sbin/instfix -ivqoperating system patches or maintenance level
envoperating system environment variable
errptoperating system configuration and error reporting
/usr/sbin/lsattr -E -l sys0operating system kernel parameters
ulimit -aoperating system current ulimit (system resources) settings
ps -ef > ps.logoperating system processes, saved in ps.log file
mountList of the mounted file systems with location of scratch and permanent disk resources
df -gDescription of the amount of space available on each mounted file system
ifconfig -aNetwork interfaces on the system, including the associated IP address
hostnameFully-qualified DNS name for this system
Collect:  /etc/services
          /etc/hosts
          /etc/profile
          /etc/security/limits.conf
System configuration files
Linux
Command
Collects
uname -aoperating system version
/bin/rpm -qaoperating system patches or maintenance level
envoperating system environment variable
/bin/dmesgoperating system configuration and error reporting
/sbin/sysctl -aoperating system kernel parameters
ulimit -aoperating system current ulimit (system resources) settings
ps -ef > ps.logoperating system processes, saved in ps.log file
mountList of the mounted file systems with location of scratch and permanent disk resources
df -a -kDescription of the amount of space available on each mounted file system
ifconfig -aNetwork interfaces on the system, including the associated IP address
hostname -fFully-qualified DNS name for this system
Collect:  /etc/services
          /etc/hosts
          /etc/profile
          /etc/security/limits.conf
System configuration files
Solaris
Command
Collects
prtdiagMachine hardware information, CPUs
uname -aoperating system version
showrevoperating system level summary
patchadd -poperating system System patches
envoperating system environment variable
sysdefoperating system System Definition
ulimit -aoperating system current ulimit (system resources) settings
ps -ef > ps.logoperating system processes, saved in ps.log file
mountList of the mounted file systems with location of scratch and permanent disk resources
df -kDescription of the amount of space available on each mounted file system
ifconfig -aNetwork interfaces on the system, including the associated IP address
hostnameDNS name for this system
/usr/bin/dmesgoperating system configuration and error reporting
Collect:  /etc/services
          /etc/hosts
          /etc/profile
          /etc/security/limits.conf
System configuration files
HP-UX
Command
Collects
modelMachine hardware model
uname -aoperating system version
swlistoperating system Software installed
envoperating system environment variable
sysdefoperating system System Definition
ulimit -foperating system current ulimit (system resources) settings
ps -ef > ps.logoperating system processes, saved in ps.log file
showmount -eList of the mounted file systems with location of scratch and permanent disk resources
bdfDescription of the amount of space available
ifconfig lo0Network interfaces on the system, including the associated IP address
hostnameDNS name for this system
Collect:  /etc/services
          /etc/hosts
          /etc/profile
          /etc/security/limits.conf
System configuration files
Windows
Command
Collects
systeminfoHardware information summary
winver or veroperating system version
winmsd   or
start /wait msinfo32.exe /category SystemSummary+SWEnv /report summary.txt
operating system patches or maintenance level.
Creates summary.txt file with system information
setoperating system environment variable
  • cscript C:\windows\system32\eventquery.vbs /L application /R 1000 /V
  • cscript C:\windows\system32\eventquery.vbs /L system /R 1000 /V
  • cscript C:\windows\system32\eventquery.vbs /L security /R 1000 /V
operating system configuration and error reporting
REG QUERY HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /SSoftware installed in the system
netstat -an netstat.logNetwork connections
Collect:
    
<drive>:\WINDOWS\system32\drivers\etc\hosts

    <drive>:\WINDOWS\system32\drivers\etc\services 
System configuration file

Popular posts from this blog

Shrink you container size up to 95%.

alma linux: dnf Module yaml error: Unexpected key in data