Line 114: |
Line 114: |
| | | |
| ====Connecting multiple UPS's==== | | ====Connecting multiple UPS's==== |
− | To be added http://bugs.contribs.org/show_bug.cgi?id=629
| + | As reference to http://bugs.contribs.org/show_bug.cgi?id=629 and https://bugs.koozali.org/show_bug.cgi?id=626#c2 |
| + | |
| + | 1- you will need to do<syntaxhighlight lang="bash"> |
| + | mkdir -p /etc/e-smith/templates-custom/ups/ups.conf/ |
| + | cp /etc/e-smith/templates/ups/ups.conf/UPS /etc/e-smith/templates-custom/ups/ups.conf/UPS2 |
| + | </syntaxhighlight>then edit content to replace the header to UPS2 and Model and Device to Model2 and Device2 |
| + | |
| + | |
| + | 2- Then you need to do<syntaxhighlight lang="bash"> |
| + | mkdir -p /etc/e-smith/templates-custom/ups/upsmon.conf/ |
| + | cp /etc/e-smith/templates/ups/upsmon.conf/MONITOR /etc/e-smith/templates-custom/ups/ups.conf/MONITOR2 |
| + | </syntaxhighlight>Then edit it to change UPS to UPS2. Then you set Device2 and Model2. |
| + | |
| + | |
| + | |
| + | 3- Repeat the steps 1 and 2 for as many UPS you have, then finish by<syntaxhighlight lang="bash"> |
| + | signal-event console-save |
| + | </syntaxhighlight> |
| | | |
| ===UPS Variables and Commands=== | | ===UPS Variables and Commands=== |
Line 294: |
Line 311: |
| | | |
| =====Changing battery date===== | | =====Changing battery date===== |
− | an example to update you battery date upon changing it. (use your own password)<syntaxhighlight lang="bash">
| + | An example to update you battery date upon changing it. (use your own password)<syntaxhighlight lang="bash"> |
| upsrw -s battery.mfr.date=2020/08/31 -u admin -p admin UPS | | upsrw -s battery.mfr.date=2020/08/31 -u admin -p admin UPS |
| </syntaxhighlight> | | </syntaxhighlight> |
Line 315: |
Line 332: |
| Where the command '''test.battery.start''' is a valid command for your UPS as previously determined by '''upscmd -l UPS'''. Depending upon the command issued you may get broadcast messages and emails relating to and confirming what the UPS is doing. | | Where the command '''test.battery.start''' is a valid command for your UPS as previously determined by '''upscmd -l UPS'''. Depending upon the command issued you may get broadcast messages and emails relating to and confirming what the UPS is doing. |
| | | |
− | After you are done, clean up by disabling the '''upsc''' administrative privileges: | + | After you are done, clean up by disabling the '''upsc''' administrative privileges. |
| {{Warning box|Before issuing any commands verify what they do for your particular UPS via the relevant documentation and ensure that the command meets your intended behavioural requirement! | | {{Warning box|Before issuing any commands verify what they do for your particular UPS via the relevant documentation and ensure that the command meets your intended behavioural requirement! |
| | | |