BTS

Issue1329

Title Make ip-screen display each IP only once
Priority wish Status chatting
Superseder Nosy List korn
Assigned To Topics

Created on 2014-11-18.21:03:09 by korn, last changed 2014-11-19.09:03:33 by korn.

Messages
msg4901 (view) Author: korn Date: 2014-11-19.09:03:32
On Tue, Nov 18, 2014 at 09:47:44PM +0000, Michael Prokop wrote:

> > If the same IP is present on more than one interface, ip-screen will list it
> > several times, e.g.
> 
> > # ip-screen 
> > 169.254.255.254 | 169.254.0.1 | 169.254.255.254 | 169.254.0.1 | 169.254.0.1 |
> > 169.254.15.254
> 
> > This takes up precious space in the status line.
> 
> Ah, indeed.
> 
> > It would also be nice to be able to exclude IPs from being printed at all
> > (individually or by subnet), for example by way of an environment variable or
> > command line option.
> 
> Hm, so you actually invoke ip-screen on the command line, or would
> you adjust the GNU screen configuration as needed then? FTR,

I would adjust the screen configuration or export the relevant environment
variable before starting screen.

There are other ways of obtaining a list of IPs on the command line (e.g.
via ip addr sh, or ifdata).

Andras

-- 
              Piracy is not a synonym for copyright infringement.
msg4897 (view) Author: mika Date: 2014-11-18.21:47:44
* Andras Korn wrote in grml's BTS on 20141118 / 22:03:

> If the same IP is present on more than one interface, ip-screen will list it
> several times, e.g.

> # ip-screen 
> 169.254.255.254 | 169.254.0.1 | 169.254.255.254 | 169.254.0.1 | 169.254.0.1 |
> 169.254.15.254

> This takes up precious space in the status line.

Ah, indeed.

> It would also be nice to be able to exclude IPs from being printed at all
> (individually or by subnet), for example by way of an environment variable or
> command line option.

Hm, so you actually invoke ip-screen on the command line, or would
you adjust the GNU screen configuration as needed then? FTR,
ip-screen was mainly written for usage inside GNU screen and for
performance reasons written in C:

  http://git.grml.org/?p=grml-scripts-core.git;a=blob;f=compile/ip-screen.c;hb=HEAD

regards,
-mika-
msg4895 (view) Author: korn Date: 2014-11-18.21:03:08
If the same IP is present on more than one interface, ip-screen will list it
several times, e.g.

# ip-screen 
169.254.255.254 | 169.254.0.1 | 169.254.255.254 | 169.254.0.1 | 169.254.0.1 |
169.254.15.254

This takes up precious space in the status line.

It would also be nice to be able to exclude IPs from being printed at all
(individually or by subnet), for example by way of an environment variable or
command line option.
History
Date User Action Args
2014-11-19 09:03:33kornsetmessages: + msg4901
2014-11-18 21:47:44mikasetstatus: unread -> chatting
messages: + msg4897
2014-11-18 21:03:09korncreate