ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: diver <diver666@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Куда делся rsh?
Date: Fri, 13 Jul 2012 19:10:01 +0300
Message-ID: <CAK2uZ2fk86k9E02Srpwzbdi6C-89GDvTnsJaKCJe=N94+ABAeg@mail.gmail.com> (raw)
In-Reply-To: <500044BD.2050201@mail.ru>

2012/7/13 Denis Nazarov :

> а чем тогда кошернее будет учитывать трафик в локалке?
> А то mrtg настроил, но он только ширину показывает,
> а мне бы по машинкам еще, хотел по старинке ipcad+rsh+парсить вывод
По SSH и ключикам, например так

#!/bin/bash
INPUT=`ssh user@aa.dd.rr cat /proc/net/dev|grep eth1|awk {'print
$1'}|awk -F ":" {'print $2'}`
OUTPUT=`ssh user@aa.dd.rr cat /proc/net/dev|grep eth1|awk {'print $9'}`
DATE=`date +%s`
NAME='TG'
echo $INPUT
echo $OUTPUT
echo $DATE
echo $NAME

-- 
LRU: #407670

  reply	other threads:[~2012-07-13 16:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13 15:40   ` Michael Shigorin
2012-07-13 15:54     ` Denis Nazarov
2012-07-13 16:10       ` diver [this message]
2012-07-13 17:06         ` Denis Nazarov
2012-07-14  6:42           ` Alexei Takaseev
2012-07-14  9:40             ` Denis Nazarov
2012-07-14 12:49               ` Sergey
2012-07-14 13:08                 ` Alexei Takaseev
2012-07-14 13:49                   ` Sergey
2012-07-14 15:00                     ` Alexei Takaseev
2012-07-14 15:51                       ` Sergey
2012-07-14 17:15                         ` Alexei Takaseev
2012-07-13 21:41       ` Michael Shigorin
2012-07-14 12:46       ` Sergey
2012-07-14 21:12     ` Dmitry V. Levin
2012-07-15 22:00       ` Michael Shigorin
2012-07-15 22:32         ` Dmitry V. Levin
2012-07-16  1:02           ` Alexei Takaseev
2012-07-16  3:18             ` Denis Nazarov
2012-07-16  7:35             ` Michael Shigorin
2012-07-17  0:54               ` Alexei Takaseev
2012-07-17 11:30           ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK2uZ2fk86k9E02Srpwzbdi6C-89GDvTnsJaKCJe=N94+ABAeg@mail.gmail.com' \
    --to=diver666@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git