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

Visualize hardware racks #17

Closed bheisig closed 5 years ago

bheisig commented 6 years ago
bheisig commented 5 years ago

Preview without colors:

$ idoitcli rack "*A001"
Visualize hardware rack

Hamburg > Data Center > Hall A > Rack Colo A001                 [#23064]

    ╔══╦════════════════════════════════════════════════════════════╦══╗
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║42║ ☺ █ webapp001.example.com               [server] [#324712] ║42║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║41║ ☹ █ webapp002.example.com               [server] [#324734] ║41║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║40║ ██████████████████████████████████████████████████████████ ║40║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║38║ ◯ █ coreswitch001.example.com           [switch] [#324734] ║38║
    ╠══╣                                                            ╠══╣
    ║37║                                                            ║37║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║36║ ██████████████████████████████████████████████████████████ ║36║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║35║ ██████████████████████████████████████████████████████████ ║35║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║34║ ☺ █ testapp001.intern.example.com          [vm] [#1234567] ║34║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║33║                                                            ║33║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║32║                                                            ║32║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║30║                                                            ║30║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║29║                                                            ║29║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║28║                                                            ║28║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║27║                                                            ║27║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║26║                                                            ║26║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║25║                                                            ║25║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║24║                                                            ║24║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║23║                                                            ║23║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║22║                                                            ║22║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║21║                                                            ║21║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║20║                                                            ║20║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║19║                                                            ║19║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║18║                                                            ║18║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║17║                                                            ║17║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║16║                                                            ║16║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║15║                                                            ║15║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║14║                                                            ║14║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║13║                                                            ║13║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║12║                                                            ║12║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║11║                                                            ║11║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║10║                                                            ║10║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║09║                                                            ║09║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║08║                                                            ║08║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║07║                                                            ║07║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║06║                                                            ║06║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║05║                                                            ║05║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║04║                                                            ║04║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║03║                                                            ║03║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║02║                                                            ║02║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ║01║                                                            ║01║
    ╠══╬════════════════════════════════════════════════════════════╬══╣
    ╚══╩════════════════════════════════════════════════════════════╩══╝
bheisig commented 5 years ago

✔ This feature has been completed by the last couple of commits. It will be shipped with the next release.

In lack of proper API calls these minor features couldn't be implemented:

Ideas for future improvements:

Hint: If you don't know the name/id of a rack get a list of all hardware racks:

idoitcli read rack