curl http://username:password@api.somesite.com/test/blah?reboot=true
APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Hi! I stuck with some scripting here. My goal is getting any access to AP7920 outlets actions via direct link or POST like:
curl http://username:password@api.somesite.com/test/blah?reboot=true
But I don't see any way to do it.
Second my try is failed as well because ssh troubles. I updated firmware to apc_hw02_aos390_rpdu374 but this didn't resolve the issue.
The questions - Does apc have any ways to reboot outlet from script?
Many thanks!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Get a copy of the PowerNet MIB from here (Listed as "Firmware Upgrades: MIB"):
http://www.apc.com/us/en/tools/download/
Also get a copy of GetIF:
http://www.wtcs.org/snmp4tpc/getif.htm
Put the PowerNetMIB in GetIF's MIB folder. Then you can use GetIF (MBrowser tab after entering the NMC's IP) to walk the device (iso should be selected, just hit "start") and see what it provides over SNMP. The MIB documents all variables provided across all APC devices so the walk narrows things down to just what your device supports. GetIF also allows you to get and set individual variables, so you can play around with what you're automating.
Actual scripting depends on your platform. If you're using Windows, Net-SNMP is a good choice:
https://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Whatever. I used "expect" and it works. But this feature with direct links (api) in web would be very usable in the automation (e.g. testing)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
We recommend using SNMP for automation.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Do you have link on docs or examples?
Thank you
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-27 11:41 PM . Last Modified: 2024-03-19 12:00 AM
Get a copy of the PowerNet MIB from here (Listed as "Firmware Upgrades: MIB"):
http://www.apc.com/us/en/tools/download/
Also get a copy of GetIF:
http://www.wtcs.org/snmp4tpc/getif.htm
Put the PowerNetMIB in GetIF's MIB folder. Then you can use GetIF (MBrowser tab after entering the NMC's IP) to walk the device (iso should be selected, just hit "start") and see what it provides over SNMP. The MIB documents all variables provided across all APC devices so the walk narrows things down to just what your device supports. GetIF also allows you to get and set individual variables, so you can play around with what you're automating.
Actual scripting depends on your platform. If you're using Windows, Net-SNMP is a good choice:
https://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.