Skip to content

Instantly share code, notes, and snippets.

@marshyski
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshyski/48f1b3de98217edf1951 to your computer and use it in GitHub Desktop.
Save marshyski/48f1b3de98217edf1951 to your computer and use it in GitHub Desktop.
System Info RHEL/CentOS 7
#!/bin/bash
env && echo
runlevel && echo
hostname -f && echo
cat /etc/hosts && echo
systemctl | grep active | grep -v 'waiting\|exited\|waiting\|abandoned' && echo
iptables -L && echo
firewall-cmd --state && echo
netstat -tlpn && echo
lsmod | sort && echo
sysctl -a | sort && echo
sestatus && echo
free -m && echo
rpm -qa | sort && echo
service --status-all && echo
chkconfig --list && echo
puppet config print && echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment