parent
b1756cd3f4
commit
40f6aa443c
1 changed files with 18 additions and 6 deletions
@ -1,10 +1,22 @@ |
||||
# Statesnap |
||||
Ever had to reboot server you don't know well and were anxoious about whether all services will startup? |
||||
This script might help by snaping state of things such as: |
||||
# 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 proces name |
||||
- Firewall rules dump |
||||
- List of opened TCP/UDP ports along with process name |
||||
- Firewall rules |
||||
- Routing table |
||||
- Mount points |
||||
|
||||
After restart, you can use the script to view color diff's of latest snaps made, making it easy to find out what isn't working or missing. |
||||
## 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 |
||||
|
||||
Loading…
Reference in new issue