Line 186: |
Line 186: |
| | | |
| Issuing commands could shutdown your server unexpectedly!}} | | Issuing commands could shutdown your server unexpectedly!}} |
| + | |
| = SME 9 = | | = SME 9 = |
| | | |
Line 272: |
Line 273: |
| You can now modify the variables you wish using a command similar to the following (Note the order of the arguments is important, and you may need quotes around the value being set, "20"): | | You can now modify the variables you wish using a command similar to the following (Note the order of the arguments is important, and you may need quotes around the value being set, "20"): |
| upsrw -s battery.charge.low=20 -u admin -p admin UPS | | upsrw -s battery.charge.low=20 -u admin -p admin UPS |
| + | |
| + | For remote host (slave UPS ), we need to add the IP from master UPS to run command. |
| + | upsrw -s battery.charge.low=20 -u admin -p admin UPS@192.168.2.1 |
| | | |
| Where the value after '''-s''' should be one of the parameters identified by the '''upsrw ups''' command. You can of course verify your changes using | | Where the value after '''-s''' should be one of the parameters identified by the '''upsrw ups''' command. You can of course verify your changes using |
Line 294: |
Line 298: |
| upscmd -l UPS | | upscmd -l UPS |
| | | |
− | You can now issue a command to the UPS with similar to the following: | + | You can now issue a command to the localhost UPS with similar to the following: |
| upscmd -u admin -p admin UPS test.battery.start | | upscmd -u admin -p admin UPS test.battery.start |
| + | |
| + | For remote host (slave UPS ), we need to add the IP from master UPS to run command. |
| + | upscmd -u admin -p admin UPS@192.168.2.1 test.battery.start |
| | | |
| 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. |