plugin:advrack
Table of Contents
advrack Plugin
Compatible with DokuWiki
- 2022-07-31 "Igor" no
- 2020-07-29 "Hogfather" no
- 2018-04-22 "Greebo" unknown
- 2017-02-19 "Frusterick Manners" unknown
Similar to rack
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Configuration and Settings
Most of what you would want to configure is doable through the advrack syntax itself. Please read further to learn how to control most aspects of the advrack settings.
Examples/Usage
To define a rack, you must write a JSON snippet to describe your rack, the equipment it contains, what attributes you want to give to each server, cage, module, etc.
Here's an example of a rack with couple servers and other equipment in cages, showing all possible options.
<advrack> [ { "options": { "index": 1, "height": "42U", "width": "19in", "label": "rack # 1", "tooltip": { "content": { "title": "test rack", "text": "rack contains test equipment!" } } }, "servers": [ { "index": 1, "height": "1U", "label": "fuse panel", "fill-color": "lightblue", "tooltip": { "content": { "title": "DC Atca Fuse Panel", "text": "DC mains: 2x50Amps breaker for each side, A & B" }, "position": { "my": "bottom left", "at": "top right", "target": "mouse" }, "style": { "classes": "qtip-light qtip-shadow qtip-rounded" } } }, { "index": 2, "height": "2U", "label": "prod server", "tooltip": { "content": { "title": "Production Server", "text": "server 2" }, "position": { "my": "bottom left", "at": "top right", "target": "mouse" }, "style": { "classes": "qtip-light qtip-shadow qtip-rounded" } } } ], "cages": [ { "index": 6, "height": "12u", "label": "reserved for project X", "decks": [ { "height": "1U", "type": "block", "label": "separate fuse panel" } ] }, { "index": 30, "height": "10U", "tooltip": { "content": { "title": "CC1", "text": "Main Process Distributor" } }, "decks": [ { "type": "block", "height": "1U", "tooltip": { "content": { "title": "Power Supply Deck", "text": "Dual DC Power Supply Units" }, "position": { "my": "bottom left", "at": "top right", "target": "mouse" }, "style": { "classes": "qtip-light qtip-shadow qtip-rounded" } }, "blocks": [ { "label": "Primary System Board", "fill-color": "olive" }, { "label": "Backup System Board", "fill-color": "orange" } ] }, { "type": "block", "height": "1U", "tooltip": { "content": { "title": "High Speed Fan Modules", "text": "6K RPM multi-speed fan + sensors" }, "position": { "my": "bottom left", "at": "top right", "target": "mouse" }, "style": { "classes": "qtip-light qtip-shadow qtip-rounded" } }, "blocks": [ { "label": "A", "fill-color": "lightblue" }, { "label": "B", "fill-color": "fuchsia" }, { "label": "C", "fill-color": "aqua" }, { "label": "D", "fill-color": "lime" }, { "label": "E", "fill-color": "red", "tooltip": { "content": { "title": "Status", "text": "Faulty - pending management approval to buy new unit" } } } ] }, { "type": "blade", "height": "6U", "blades": [ { "label": "blade#1", "fill-color": "yellow", "tooltip": { "content": { "title": "App Blade", "text": "Main Process" } } }, { "label": "blade#2" }, { "label": "blade#3" }, { "label": "blade#4" }, { "label": "blade#5" }, { "label": "blade#6" }, { "label": "blade#7" }, { "label": "blade#8" }, { "label": "blade#9" }, { "label": "blade#10" }, { "label": "blade#11" }, { "label": "blade#12" } ] }, { "type": "block", "height": "2U", "tooltip": { "content": { "title": "DC Battery", "text": "Backup #1" } }, "blocks": [ { "label": "Battery #1", "fill-color": "lightblue" }, { "label": "Battery #2", "fill-color": "lightgreen", "tooltip": { "content": { "title": "DC Battery", "text": "Backup #2" } } }, { "label": "Battery #3", "fill-color": "lightyellow" } ] } ] } ] } ] </advrack>
Change Log
ToDo/Wish List
- Re-write the whole thing in OOP style to make the code more maintainable!
- Allow bottom→up indexing (index 1 being bottom instead of top)
plugin/advrack.txt · Last modified: 2022-08-24 16:24 by mRiston