DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:advrack

advrack Plugin

Compatible with DokuWiki

Binky

plugin Display block representation of standard racks, mounted servers and server cages

Last updated on
2014-05-11
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to rack

Tagged with cage, rack, server

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. 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: 2016-04-05 15:28 by 94.79.170.42