The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

idoit-layer3-nets - get i-doit layer3 nets

VERSION

version 0.4.0

SYNOPSIS

  idoit-layer3-nets [ options ]

OPTIONS AND ARGUMENTS

Options

--config path

Read configuration values from a file found at the given path.

--help / -?

The program shows a short help text and exits.

--man

The program shows this man page and exits.

--csv

The report is printed as CSV.

--json

The report is printed as JSON.

--pretty

Given together with option --json, the output is printed as readable formatted JSON.

--import-csv filename

Import layer3 networks from the named CSV file.

--version

The program shows its version and exits.

CONFIGURATION FILE

This file should contain lines with a key and a value separated by equal sign (=) or colon (:). The key and the value may be enclosed in single (') or double (") quotation marks. Leading and trailing white space is removed as well as a comma (,) at the the end of the line.

The program needs the following keys in the file:

key

The API key for i-doit.

url

The URL of the i-doit instance.

username

The username for the login (optional).

password

The password for the login (optional).

CSV FILE

The CSV file for the import of networks should have the following columns:

network

The network to be imported, optionally followed by a slash and the number of netmask bits.

If the slash and the bits is missing, the network is considered a single address.

title

The title of the network.

If this field or column is missing, the network is used in CIDR notation.

description

The description for the network.

If this field or column is missing, the description will be empty.

The script will only import networks into i-doit that were not previously known.

If the same network appears multiple times in the CSV file, only the first record will be imported.

AUTHOR

Mathias Weidner mamawe@cpan.org

LICENCE AND COPYRIGHT

Copyright (c) 2023, Mathias Weidner mamawe@cpan.org. All rights reserved.

This software is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.