|
Cookbook /
CalculateAvailabilitySummary: The recipe adds markup for calculating availability
Version: 1.0
Prerequisites: -
Status: Production
Maintainer: Christian Ridderström
Categories:
Questions answered by this recipeHow can I use special PmWiki markup to help me calculate (estimate) the availability of a system consisting of components connected in series? How can I use special PmWiki markup to help me calculate (estimate) the availability of a system based on its parameters for mean time between failure (MTBF) and mean time to repear (MTTR)? DescriptionSpecial markup for calculating availability Notes
Installation and useTo install the script, download calculate_availability.phpΔ and place it for instance in your cookbook directory. Then add something like the following line to your configuration file. include_once("UsageSyntax synopsis:
Example: (:calc-avail 99.99% :)
Example: (:calc-avail mtbf=5.5y mttr=12h :)
Example: (:calc-avail :)
The arguments are used as follows <nn> A number 0-100 of availability in percent, e.g. 99.9.
% The percent sign after the number is mandatory.
<MTBF> A number (e.g. 12.5) indicating mean time between failure.
<unit> A mandatory character indicating the unit, where
'y' = Year (365 days per week)
'm' = Month (30 days per week)
'w' = Week (7 days/per week)
'd' = Day
'h' = Hour (24 hours per day)
<MTTR> A number (e.g. .5) indicating mean time to repeair.
<unit> A character indicating the unit, same as described above.
The first form, e.g. The second form works like the first form, except that instead of specifying the availability in percent, you specify it in terms of MTBF and MTTR. The third form prints the accumulated availability, and then resets the accumulated availability to 1 so that a new calculation can be started. ExamplesTwo examples of how to use the markup. Example 1Simple example, calculating availability of two components in series with availabilities of 99.9% and 99.5% respectively.
Example 2
Release Notes
CommentsSee Also
Contributors
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |