On 2014-02-19 03:04, Tim Rice wrote:> If you've got a AP9630 card these notes may be useful. > > # APC ap9630 notes: > # Use firmware 6.0.6 or later if you want SNMPv3 > # Configuration->Shutdown > # In "Start of Shutdown" section, set "Low Battery Duration" and > # "Shutdown Delay" to get enough grace time for the ESXI shutdown > # Optionally, in "End of Shutdown" section set "Return Delay" to 60 seconds. > #Thanks a lot for the suggestion, I'll give it a spin :)> Now here are the OIDs (pick one) to actually turn the UPS off > after the shutdown delay. > > # reboot gracefully (APC) (stays off until utility power is restored) > UPS_OID=".1.3.6.1.4.1.318.1.1.1.6.2.2.0 integer 3" > # turn off UP gracefully (APC) (stays off even if power is restored) > #UPS_OID=".1.3.6.1.4.1.318.1.1.1.6.2.1.0 integer 3"These seem like config file entries... where do they go? I don't see UPS_OID in /etc/nut/* (for that 2.6.3 installation) Also, just to make sure, the "reboot gracefully" part does indeed reboot the UPS and its load "instantly" (after the timeout) if the wall power is already back by the time the UPS goes down due to this command, right? Thanks, //Jim Klimov
On Wed, 19 Feb 2014, Jim Klimov wrote:> On 2014-02-19 03:04, Tim Rice wrote: > > Now here are the OIDs (pick one) to actually turn the UPS off > > after the shutdown delay. > > > > # reboot gracefully (APC) (stays off until utility power is restored) > > UPS_OID=".1.3.6.1.4.1.318.1.1.1.6.2.2.0 integer 3" > > # turn off UP gracefully (APC) (stays off even if power is restored) > > #UPS_OID=".1.3.6.1.4.1.318.1.1.1.6.2.1.0 integer 3" > > These seem like config file entries... where do they go? > I don't see UPS_OID in /etc/nut/* (for that 2.6.3 installation)They go in a custom shutdown script the runs a snmpset command.> Also, just to make sure, the "reboot gracefully" part does indeed > reboot the UPS and its load "instantly" (after the timeout) if the > wall power is already back by the time the UPS goes down due to > this command, right?Correct.> Thanks, > //Jim Klimov-- Tim Rice Multitalents (707) 456-1146 tim at multitalents.net
On Feb 19, 2014, at 11:18 AM, Tim Rice wrote:> On Wed, 19 Feb 2014, Jim Klimov wrote: > >> On 2014-02-19 03:04, Tim Rice wrote: >>> Now here are the OIDs (pick one) to actually turn the UPS off >>> after the shutdown delay. >>> >>> # reboot gracefully (APC) (stays off until utility power is restored) >>> UPS_OID=".1.3.6.1.4.1.318.1.1.1.6.2.2.0 integer 3"This OID is curiously commented out in drivers/apc-mib.c, and has been since the beginning of our revision control history. I don't see why we couldn't add it back in as an instant command. I wonder if there was some confusion with .1.3.6.1.4.1.318.1.1.1.6.1.1.0 (upsBasicControlConserveBattery), which is currently mapped to "shutdown.return">>> # turn off UP gracefully (APC) (stays off even if power is restored) >>> #UPS_OID=".1.3.6.1.4.1.318.1.1.1.6.2.1.0 integer 3"This should map to the "shutdown.stayoff" instant command. -- Charles Lepple clepple at gmail