-----BEGIN PGP SIGNED MESSAGE-----
On Saturday, 2021-04-03 at 23:54 +0200, Atri Bhattacharya wrote:
On Fri, 2021-04-02 at 22:42 +0200, Carlos E. R.
I became aware of this intersting tool:
cer@Telcontar:~> rpm -qi ipcalc
However, our version is obsolete, from 2005:
Mageia 8 has version
The current repo is (apparently) <https://gitlab.com/ipcalc/ipcalc>,
updated past year.
Here's a first attempt at the update:
Would be very grateful if you can try it out and let me know if it
needs more work before I send an sr to the devel project.
Thanks, but I don't know how to download an rpm from there :-?
I suppose it is:
I installed that one, and it works. I don't have a test suite to check it
fully, but it seems to work. It supports some switches the old version did
not have, like "-i" (which is why I noticed the version was old).
cer@Telcontar:~> ipcalc -v
ipcalc: ip address expected
Usage: ipcalc [OPTION...]
-c, --check Validate IP address
-r, --random-private=PREFIX Generate a random private IP network using
the supplied prefix or mask.
-S, --split=PREFIX Split the provided network using the
-d, --deagrregate=IP1-IP2 Deaggregate the provided address range
-i, --info Print information on the provided IP address
--all-info Print verbose information on the provided IP
Specific info options:
--reverse-dns Print network in a the reverse DNS format
-a, --address Display IP address
-b, --broadcast Display calculated broadcast address
-m, --netmask Display netmask for IP
-n, --network Display network address
-p, --prefix Display network prefix
--minaddr Display the minimum address in the network
--maxaddr Display the maximum address in the network
--addresses Display the maximum number of addresses in
--addrspace Display the address space the network
-h, --hostname Show hostname determined via DNS
-o, --lookup-host=STRING Show IP as determined via DNS
-g, --geoinfo Show Geographic information about the
-4, --ipv4 Explicitly specify the IPv4 address family
-6, --ipv6 Explicitly specify the IPv6 address family
--class-prefix When specified the default prefix will be determined
by the IPv4 address class
--no-decorate Print only the requested information
-j, --json JSON output
-s, --silent Don't ever display error messages
-v, --version Display program version
-?, --help Show this help message
--usage Display brief usage message
I notice something that some people will not like, but this is for
upstream: it prints text in colour, and colours that even for me are
difficult to read (dark blue on black terminal). I don't see an option to
I notice that the "--geoinfo" option does not produce output, but it would
surprise me if it actually worked.
Carlos E. R.
(from openSUSE 15.2 x86_64 at Telcontar)
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----