-
Notifications
You must be signed in to change notification settings - Fork 0
/
it.pl
49 lines (41 loc) · 805 Bytes
/
it.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use File::Glob ':bsd_glob';
use Term::ANSIColor qw/color :constants/;
use Getopt::Long qw/GetOptions :config bundling/;
use File::Basename 'basename';
use File::Path 'make_path';
use List::Util 'any';
my $BLUE = color('ansi69');
my $CYAN = color('ansi45');
my $S = color('bold');
my $R = color('reset');
# Help
sub help() {
print <<MSG;
${S}SYNOPSIS${R}
${S}OPTIONS${R}
ips vs it?
Import
- it ip -a?
it ip/dc : list by default
it 1.1.1.1/'DC' : info
- file
- DB
Input
- IP => all info
Info
- ISP
- range, free?, pub/priv/...
- location: DC, rack, host name?
${S}DESCRIPTION${R}
MSG
exit;
}
# Arguments
GetOptions (
'h|help' => \&help
) or die RED.'Error in command line arguments'.RESET, "\n";
# API