APC Management-1.3.6.1.4.1.318.1.3.27

I have taken the APC management script provided by alexrich​​ - APC Web Management Card-1.3.6.1.4.1.318.1.3.27.ConfigMgmt-Commands  - to add things which fit for APC's today. One of the things about APC's is that they have different command menus from Cisco entirely. Another is what is the best data to go with. I have coddled this into a working template format by modifying some of the values and treating individual commands as their own configs. When going through Device Template Management, I have set this template as follows:

pastedImage_0.png.

Major props to wluther​ for Re: Is it possible to run multiple commands via one command in a device template  , you basically enabled me to make this into some magic. I'm also filtering out E000: Success as the "more command", so that it skips parsing it.

I set detstatus -all and upsabout as the "running config"  and snmp/ntp/tcpip/dns as the "startup config" - because there really aren't running/startup, but this is a good way to at least have a historical APC status. I added prompt -s long to be the terminal reset so that you can see the login being used for the APC's (and thus what credential) and about as the command for version (which works well/enough). Example, here's what you get from detstatus -all:

detstatus -all

E000: Success

Status of UPS: Online - Green Mode

Last Transfer: None

Input Status: Acceptable

Next Battery Replacement Date: 04/03/2021

Runtime Remaining: 1 hr 26 min 0 sec

Battery State Of Charge: 100.0 %

Output Voltage: 122.4 VAC

Output Frequency: 60.0 Hz

Output Watts Percent: 20.1 %

Output VA Percent: 16.2 %

Output Current: 1.91 A

Output Efficiency: 95.0 %

Output Energy: 1959.223 kWh

Input Voltage: 122.4 VAC

Input Frequency: 60.0 Hz

Battery Voltage: 27.0 VDC

Battery Temperature: 30.6 C, 87.0 F

Self-Test Result: Passed via management device

Self-Test Date: 11/01/2017

Which is all immensely useful, or upsabout which gets you:

upsabout

E000: Success

Model: Smart-UPS 1500

SKU: SMT1500

Serial Number: $(REMOVED FOR TEMPLATE EXAMPLE)

Firmware Revision: UPS 09.3 (ID18)

Manufacture Date: 07/27/2016

Apparent Power Rating: 1440 VA

Real Power Rating: 1000 W

Battery SKU: RBC7

Parents Comment Children
No Data