Skip to content

Create dot files for graphviz which visualize servers connections by netstat output

Notifications You must be signed in to change notification settings

tom--bo/sabaviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create dot files for graphviz which visualize servers connections by netstat output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages