Create dot files for graphviz which visualize servers connections by netstat output
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CHANGELOG.md
README.md
cli.go
cli_test.go
graph.go
main.go
sabaviz.go
version.go

README.md

sabaviz

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.

Description

Usage

$ 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.

For example

dot -Tpng graph.dot -o graph.png

top-page

Install

To install, use go get:

$ go get -d github.com/tom--bo/sabaviz

Contribution

  1. Fork (https://github.com/tom--bo/sabaviz/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

tom--bo