bheisig / i-doit-cli

Access your CMDB on the command line interface
GNU Affero General Public License v3.0
13 stars 1 forks source link

Print list of IP addresses #23

Closed bheisig closed 5 years ago

bheisig commented 5 years ago

A "picture" says more than thousand words…

$ idoitcli iplist "*0815"
Print list of IP addresses

Cloud Storage VLAN 0815                                         [#42128]

    Contact:                                           j.doe@example.com
    John Doe                                            +49 555 12345678

    Net address:     10.23.42.0/24         In use:            1/255
    VLAN ID:         42                    Next free address: 10.23.42.2
    Default gateway: 10.23.42.1

╔═════════════════╦════════════════════════════════════════════════════╗
║      10.23.42.1 ║ ☺ █ gateway001.example.com      [server] [#324712] ║
╠═════════════════╬════════════════════════════════════════════════════╣
║      10.23.42.2 ║ free █████████████████████████████████████████████ ║
╠═════════════════╬════════════════════════════════════════════════════╣
║    10.23.42.254 ║ free █████████████████████████████████████████████ ║
╚═════════════════╩════════════════════════════════════════════════════╝