prips

Langue: en

Autres versions - même langue

Version: 264357 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)


BSD mandoc

NAME

prips - print IP address on a given range

SYNOPSIS

[-c ] [-d delim ] [-e exclude ] [-f format ] [-i incr ] start end
[-c ] [-d delim ] [-e exclude ] [-f format ] [-i incr ] CIDR-block
-h

DESCRIPTION

The tool can be used to print all of the IP address in a given range. It can enhance the usability of tools that are made to work on only one host at a time, e.g. whois(1).

The tool accepts the following command-line options:

-c
Print range in CIDR notation.
-d delim
Set the delimiter 'x' where 0 =< x =< 255.
-e <x.x.x,x.x>
Exclude ranges from the output.
-f format
Set the format of addresses (hex, dec, or dot).
-h
Show summary of options.
-i incr
Set the increment to 'x'.

ENVIRONMENT

The tool's operation is not influenced by any environment variables.

FILES

The tool's operation is not influenced by any files.

EXAMPLES

Display all the addresses in a reserved subnet:
prips 192.168.32.0 192.168.32.255

The same, using CIDR notation:

prips 192.168.32/24

Display only the usable addresses in a class A reserved subnet using a space instead of a newline for a delimiter:

prips -d 32 10.0.0.1 10.255.255.255

Display every fourth address in a weird block:

prips -i 4 192.168.32.7 192.168.33.5

Determine the smallest CIDR block containing two addresses:

prips -c 192.168.32.5 192.168.32.11

DIAGNOSTICS

Ex -std

SEE ALSO

ipsc(1), gipsc(1)

STANDARDS

No standards were harmed in the writing of the tool.

HISTORY

The tool was originally written by An Daniel Kelly and later adopted by An Peter Pentchev . This manual page was originally written by An Juan Alvarez for the Debian GNU/Linux system and later added to the distribution and converted to mdoc format by An Peter Pentchev .

AUTHORS

An Daniel Kelly Aq dan@vertekcorp.com An Juan Alvarez Aq jalvarez@fluidsignal.com An Peter Pentchev Aq roam@ringlet.net

BUGS

Please report any bugs in the tool to its current maintainer, An Peter Pentchev .