1. How do adjust UPS' clock by command line ?
2 .how to change the UPS login password by command line ?
3. how to schedule "One-time shutdown" by command line. for example , I would like schedule shutdown the UPS by July 21 16:00PM , and turn back on Jly 22 18:00PM. ( I know how to do it by GUI （see attachment), but since we have more than 200 UPS, I prefer do it by command line )
4. how to double check the above "shutdown schedule" by command line ?
Thanks a lot for your help!
I think for some of this, you will need to upgrade to the latest firmware version v6.0.6 for either Smart UPS or Symmetra Single Phase. If you do not have that type of device, you may not be able to do some of this via command line.
If you haven't already, go to the command line and type ? or help and it will show you the commands. If you're not sure how to use that command, type it and ?. That means, if you don't know how to use the date command, type date ? and it will show you how to use it.
This is done below on v5.1.7 but v6.0.6 if you ever upgrade or if some cards are on 6.0.6 already could have different syntax.
1.) Use the date command. It depends how you want to adjust it and how you'd type it. Syntax is below.
Usage: date -- Configuration Options
date [-d <"datestring"> (Format must match current -f setting)]
[-t <"timestring">] (24-hour format, 00:00:00)
[-f <mm/dd/yyyy | dd.mm.yyyy | mmm-dd-yy | dd-mmm-yy | yyyy-mm-dd>]
[-z <-12:00 | -11:00 | -10:00 | -09:00 | -08:00 | -07:00 | -06:00
-05:00 | -04:00 | -03:30 | -03:00 | -02:00 | -01:00 | 00:00
+01:00 | +02:00 | +03:00 | +03:30 | +04:00 | +04:30 | +05:00
+05:30 | +05:45 | +06:00 | +06:30 | +07:00 | +08:00 | +09:00
+09:30 | +10:00 | +11:00 | +12:00>]
2.) Use the user command.
Usage: user -- Configuration Options
user [-an <admin name>]
[-ap <admin password>]
[-dn <device name>]
[-dp <device password>]
[-rn <read-only name>]
[-rp <read-only password>]
3. and 4.) I do not yet see the ability to do this beyond putting the UPS to sleep for a specified amount of hours using the cfgshutdn command and then using the ups command to tell it to go ahead and sleep.
Usage: cfgshutdn -- Configure UPS shutdown parameters
cfgshutdn [-all] (Show all applicable shutdown parameters for this UPS)
[-sd <000 | 090 | 180 | 270 | 360 | 450 | 540 | 630>] (Shutdown
Delay, in seconds)
[-lo <02 | 05 | 08 | 11 | 14 | 17 | 20 | 23>] (Low Battery
Duration, in minutes)
[-rd <000 | 060 | 120 | 180 | 240 | 300 | 360 | 420>] (Return
Delay, in seconds)
[-rsc <00 | 15 | 30 | 45 | 60 | 75 | 90>] (Minimum Return State of
Charge, in percent)
[-sl <0.0 to 359.9>] (Sleep Time, in hours)
Usage: ups -- Initiate UPS Control
ups [-c <Off | GraceOff | On | Reboot |
GraceReboot | Sleep | GraceSleep>]
[-r <Start | Stop>] (UPS Runtime Calibration)
[-s Start] (UPS Selftest)
[-st] (UPS Status)
[-a Start] (Test UPS short alarm)
Another option that will work for you with many UPSs is using the config.ini file. You can just make the .ini file (and name it anything you want as long as its .ini) and delete EVERYTHING besides the [Scheduling] section so that you can upload the same configuration to each card without disturbing any other UPS settings that may be UPS specific. See below from an NMC I have what you have in the config.ini to edit:
; Schedule a shutdown event of the UPS.
; Format: Event# = Status, Interval, Turn Off Time, Turn On Time, PCNS, Name
; Status: Enabled/Disabled/Delete
; Interval: Once, Daily, 1 Week, 2/4/8 Weeks
; Turn Off Time: Time (Daily), Day Time (Weekly), or Date Time (Once)
; Turn On Time: Time (Daily), Day/'Same Day' Time (Weekly), or Date Time (Once)
; PCNS: Enabled/Disabled (PowerChute Network Shutdowns)
; Name: Text description
<more events available but I just deleted them to save space>
That little blurb above from a real file tells you how to type it.
This knowledge base tells you how to accomplish the mass configuration to multiple devices using that modified config.ini -> How can I mass configure an Network Management Card (NMC) or NMC embedded product? | FAQs | Schneider Electric US