sabaviz creates dot files(.dot) for graphviz, which visualize servers connections based on netstat output.
sabaviz does ssh and netstat, and furthermore does ssh based on past serevrs output. It is better to specify options (exclude-processes, exclude-ports, host-check, max, test), for not doing ssh to all hosts in first servers connection.
$ sabaviz -max 20 --exclude-processes ssh,ldap --exclude-ports 22 --host-check internal.domain.name target.host.name > graph.dot
Then you will get graph.dot for Graphviz. To get image, use dot command.
dot -Tpng graph.dot -o graph.png
To install, use
$ go get -d github.com/tom--bo/sabaviz
- Fork (https://github.com/tom--bo/sabaviz/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...command and confirm that it passes
- Create a new Pull Request