Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get SolarisSystem information
printf "System Info for CBM Servers\n\n" >> ~/SystemInformation.txt
printf "\nProduction\n\n" >> ~/SystemInformation.txt
printf "\nOS Release:\n" >> ~/SystemInformation.txt
cat /etc/release >> SystemInformation.txt
printf "\nHostname:\n" >> ~/SystemInformation.txt
hostname >> SystemInformation.txt
printf "\nIP Address:\n" >> ~/SystemInformation.txt
/usr/sbin/ifconfig -a | awk 'BEGIN { count=0; } { if ( $1 ~ /inet/ ) { count++; if( count==2 ) { print $2; } } }' >> SystemInformation.txt
printf "\n\nRAM Info\n" >> ~/SystemInformation.txt
prtconf |grep Mem >> SystemInformation.txt
printf "\nCPU information\n" >> ~/SystemInformation.txt
psrinfo -pv >> SystemInformation.txt
printf "\n\nFile System Info\n" >> ~/SystemInformation.txt
df -h >> SystemInformation.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.