Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84475members
353693posts

AP7920 remote access via web\ssh in script

APC UPS Data Center & Enterprise Solutions Forum

Schneider Electric support forum for our Data Center and Business Power UPS, UPS Accessories, Software, Services, and associated commercial products designed to share knowledge, installation, and configuration.

Solved
muirdok_apc
Crewman
Crewman
0 Likes
4
415

AP7920 remote access via web\ssh in script

This was originally posted on APC forums on 5/19/2016


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!

Tags (4)

Accepted Solutions
voidstar_apc
Janeway
Janeway
0 Likes
0
415

Re: AP7920 remote access via web\ssh in script

This was originally posted on APC forums on 1/26/2017


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/

See Answer In Context

4 Replies 4
muirdok_apc
Crewman
Crewman
0 Likes
0
415

Re: AP7920 remote access via web\ssh in script

This was originally posted on APC forums on 5/19/2016


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)

voidstar_apc
Janeway
Janeway
0 Likes
0
417

Re: AP7920 remote access via web\ssh in script

This was originally posted on APC forums on 5/19/2016


We recommend using SNMP for automation.

muirdok_apc
Crewman
Crewman
0 Likes
0
417

Re: AP7920 remote access via web\ssh in script

This was originally posted on APC forums on 1/26/2017


Do you have link on docs or examples?

Thank you

voidstar_apc
Janeway
Janeway
0 Likes
0
416

Re: AP7920 remote access via web\ssh in script

This was originally posted on APC forums on 1/26/2017


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/