czoczo d493432d77 added forgotten spaces for better formating 1 month ago
README.md added forgotten spaces for better formating 1 month ago
statesnap.sh changed output text formating, netowrk port info from ss instead of netstat 1 month ago

README.md

statesnap

  • It’s your first login to server as admin and need small/fast system inventory?
  • Not sure which services to expect to come up after reboot?
  • Want to know what changed after a restart?

If any of the above questions is true for you, this script might just be right for you.

how?

statesnap.sh simply records output of commands such as: ss, ps, ip and iptables with timestamp. This allows diff view of last recorded ‘snap’ compared to current situation. It provides information about:

  • List of unique processes names
  • List of opened TCP/UDP ports along with process name
  • Firewall rules
  • Routing table
  • Mount points

usage

./statesnap.sh Usage: ./statesnap.sh [command]

snap - Make server status snapshot
diff - Make a diff comparison against latest snapshot
clear - Delete all previous snapshots