rim

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2015 License: MIT Imports: 13 Imported by: 0

README

===============================
RIM - Remote Interfaces Monitor
===============================

Command line tool to get status of remote network interfaces on linux servers. It's like a ``vmstat`` for remote NICs.

On a multicore machine can concurrently handle hundreds of servers per time, fast.

It reads information exposed through ``/proc`` file system using ssh connections so no remote agents are needed on targets. Even *linux bridges* are included in report.

.. contents::

Usage examples
==============

Put target hostnames in a file, one per line es.: ``~/data/target_hosts.txt``. It is possible to specify a different port than ``22`` using syntax::

        myhost.tld[:port]

Find top-talkers
----------------

Interfaces most active receiving by Kb/s::

        rim -f ~/data/target_hosts.txt -n | sort -k3 -n -r | head -30

Interfaces most active transmitting by Packets/s::

        rim -f ~/data/target_hosts.txt -n | sort -k6 -n -r | head -30

Spot problems
-------------

Many anomalies on network interfaces can be easily spotted via Drops/s and Errors/s which are printed in columns 7-10::

        rim -f ~/data/target_hosts.txt -n | sort -k7 -k8 -n -r | head -30

``-n`` do not show titles. Without ``-p`` rim will try no password authentication and ``ssh-agent`` as fallback. Default user is root, another one can be used with ``-u`` flag.

Note
----

In case of problems getting info from remote hosts errors are printed to ``stderr`` so you must redirect it to stdout to propagate them throgh pipes::

        rim -f ~/data/target_hosts.txt -n 2>&1 | sort -k7 -k8 -n -r | less

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/golang.org/x/crypto/ssh
Package ssh implements an SSH client and server.
Package ssh implements an SSH client and server.
_workspace/src/golang.org/x/crypto/ssh/agent
Package agent implements a client to an ssh-agent daemon.
Package agent implements a client to an ssh-agent daemon.
_workspace/src/golang.org/x/crypto/ssh/terminal
Package terminal provides support functions for dealing with terminals, as commonly found on UNIX systems.
Package terminal provides support functions for dealing with terminals, as commonly found on UNIX systems.
_workspace/src/golang.org/x/crypto/ssh/test
This package contains integration tests for the code.google.com/p/go.crypto/ssh package.
This package contains integration tests for the code.google.com/p/go.crypto/ssh package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL