idoit-layer3-nets - get i-doit layer3 nets
version 0.4.0
idoit-layer3-nets [ options ]
Read configuration values from a file found at the given path.
The program shows a short help text and exits.
The program shows this man page and exits.
The report is printed as CSV.
The report is printed as JSON.
Given together with option --json, the output is printed as readable formatted JSON.
--json
Import layer3 networks from the named CSV file.
The program shows its version and exits.
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:
The API key for i-doit.
The URL of the i-doit instance.
The username for the login (optional).
The password for the login (optional).
The CSV file for the import of networks should have the following columns:
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.
The title of the network.
If this field or column is missing, the network is used in CIDR notation.
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.
Mathias Weidner mamawe@cpan.org
mamawe@cpan.org
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.
To install WebService::IdoitAPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::IdoitAPI
CPAN shell
perl -MCPAN -e shell install WebService::IdoitAPI
For more information on module installation, please visit the detailed CPAN module installation guide.