You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
853 B

# 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