and renders a rack overview (HTML table) with devices (computer, router, switches, ...).
Devices are defined within a TWiki table. Following columns are supported:
tag is an example. Feel free to modify the attributes (
). Hint: Put a
)).
Attribute |
Description |
Example/Default |
racks |
a comma separated list of rack names to show; if omitted all racks found on topics (see topic attribute) are shown |
racks="rack1,rack2" |
topic |
a comma separated list of source topics |
topic="%TOPIC%" |
unitcolumnbgcolor |
background color of the unit column |
unitcolumnbgcolor="white" |
Behavior: |
columnwidth |
column width |
columnwidth="50px" |
devicebgcolor |
default device background color |
devicebgcolor="#f0f0f0" |
devicefgcolor |
default device foreground color |
devicefgcolor="#000000" |
emptybgcolor |
default empty unit background color |
emptybgcolor="#f0f0f0" |
emptyfgcolor |
default empty unit foreground color |
emptyfgcolor="#000000" |
textdir |
defines text direction; allowed values: topdown , leftright ( only supported for dir="leftright" and dir="rightleft" yet) |
textdir="leftright" |
maxheight |
defines the maximum height auf the visible rack table |
undefined / maxheight="680px" |
enablejstooltips |
enables/disables JavaScript tooltips |
enablejstooltips="1" |
name |
entry of the first cell (header of the unit row) |
name="U" |
fontsize |
font size of the text (in px, pt, em, ... or xx-small, x-small, small, medium, large,x-large, xx-large, smaller, larger); don't forget to reduce the iconsize if you reduce the fontsize |
fontsize="small" |
unitcolumnfgcolor |
foreground color of the unit column |
unitcolumnfgcolor="black" |
unitcolumnformat |
format of the unit column (replacement: %U - unit) |
unitcolumnformat="%U" |
Formatting: |
iconsize |
icon size |
iconsize="16" |
Icons: |
connectedtoicon |
if a 'connected to' entry exists this icon will be displayed with the entry as tooltip |
connectedtoicon="%M%" |
notesicon |
if a 'notes' entry exists this icon will be displayed with the note as tooltip |
notesicon="%P%" |
conflicticon |
if a conflict exists this icon will be displayed |
conflicticon="%S%" |
clicktooltip |
if enabled JavaScript tooltips are only shown with a mouse click to the table cell instead of 'mouse over' (related: enablejstooltips, clicktooltiptext) |
clicktooltip="off" |
displayconnectedto |
if enabled the 'connected to' text entry will be displayed in the table cell instead of the 'connected to' icon |
displayconnectedto="off" |
displaynotes |
if enabled the 'notes' entry will be displayed in the table cell instead of the 'notes' icon |
displaynotes="off" |
displayowner |
if enabled the 'owner' entry will be displayed in the table cell |
displayowner="off" |
displaystats |
if enabled the statistics will be displayed |
displaystats="on" |
displayunitcolumn |
if enabled the unit column will be displayed (related: unitcolumnpos , unitcolumnformat ) |
displayunitcolumn="1" |
ownericon |
only used for JavaScript tooltips |
ownericon="%ICON{persons}%" |
unitcolumnpos |
positions of the unit column: left , right , both (left and right ), all (both and between racks) |
unitcolumnpos="left" |
rackstatformat |
rack statistics format (replacements: %EU - empty units; %LEB - largest empty block; %OU - occupied units) |
rackstatformat="Empty: %EUU %BR%Largest Empty Block: %LEBU %BR%Occupied: %OUU" |
autotopic |
set it on and every rack name is automatically used as source topic for the device definition (racks attribute is required and the value is attached to the topic attribute value); useful if you define your racks and devices on topics with the same names as the racks |
autotopic="off" |
dir |
sets the direction of the units: topdown - unit 1 is at the top of the rack; bottomup - unit 1 is at the bottom of the rack; leftright - units are shown horizontal with unit 1 at the left; rightleft - units are shown horizontal with unit 1 at the right |
dir="bottomup" |
statformat |
statistics format (replacements: %R - rack count; %EU - empty units; %LEB - largest empty block; %OU - occupied units; %U - # units) |
statformat="#Racks: %R, #Units: %U, Occupied: %OUU, Empty: %EUU, Largest Empty Block: %LEBU" |
emptytext |
text for empty units (replacements: %U - unit number; %R - rack name) |
emptytext="empty" |
tooltipbgcolor |
tooltip background color (default: color from definition table) |
tooltipbgcolor="" |
toolitpfgcolor |
tooltip foreground color (default: color from definition table) |
tooltipfgcolor="" |
tooltipformat |
tooltip format (replacements: %DEVICE% : device name; %FORMFACTOR% : form factor; %RACK% : rack name; %SUNIT% : starting unit; %EUNIT% : ending unit; %OWNER% : onwer; %NOTES% : notes; %OWNERICON% : owner icon; %NOTESICON% : notes icon; %CONNECTEDTOICON% : 'connected to' icon; %CLOSEBUTTON% : a close button) |
tooltipformat="<b><span title="Device name"> %DEVICE%: </span></b> <span title="Form factor">%FORMFACTOR%</span> (<span title="Start-End units">%SUNIT%-%EUNIT%</span>, <span title="Rack name">%RACK%</span>)<div title="Owner">%OWNERICON% %OWNER% </div><div title="Connected to">%CONNECTEDTOICON% %CONNECTEDTO% </div><div title="Notes">%NOTESICON% %NOTES% </div><div style="font-size:xx-small;text-align:right;"><span style="background-color:red;" title="Close tooltip">%CLOSEBUTTON%</span></div>" |
tooltipfixleft |
tooltip position fix (skin dependent) |
tooltipfixleft=-163 |
tooltipfixtop |
tooltip position fix (skin dependent) |
tooltipfixtop=0 |
clicktooltiptext |
tooltip text if clicktooltip is enabled |
clicktooltiptext="click for information" |
steps |
unit steps to display (useful if you use only every steps unit of a rack) |
steps="1" |
units |
units to show |
units="46" |
Plugin settings are stored as preferences variables. To reference
a plugin setting write
, i.e.
You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.