Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Success Stories Corner

Anyway to use rack power distribution unit application apis from an angular front end?

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.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Communities
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Anyway to use rack power distribution unit application apis from an angular front end?
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
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.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5022
voidstar_apc
Janeway voidstar_apc
195
Erasmus_apc
Sisko Erasmus_apc
111
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
View All
Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
agalu129_apc
Ensign agalu129_apc
Ensign

Posted: ‎2021-07-22 01:27 AM

0 Likes
8
1029
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

Anyway to use rack power distribution unit application apis from an angular front end?

This was originally posted on APC forums on 12/7/2020


Hi there,

I'm working on an application that will be able to control power switches located on the rack power distribution unit application. Is there anyway to whitelist my angular front end application so that i can make post and get requests to the rack power distribution unit application apis? I tried calling the apis but keep getting an "No Access-Control_Allow-Headers" error. I looked further into this and it seems my frontend requires a nmc object key that is used in the endpoint. (e.g http://xxx.xx.xxx.xx/NMC/kQtlr8AEz8bRMchJ73RGiA/home.htm . But I'm not sure on how to retrieve this key as I assume this key is retrieved when logging into the application. I also tried calling the login apis first but still get Access-Control-Allow-Headers errors. Any help would be great.

 

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
  • Tags:
  • api
  • application
  • distribution
  • power
  • rack
  • unit
Reply
Share
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1032
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This reply was originally posted by Gavan on APC forums on 12/22/2020


That's not really how SNMP works.

The commands are standard for all SNMP devices the only thing that changes is the target OID and the value set. The list of OIDs associated with the PDUs can be found in the Powernet MIB. (Like I said you'd need to be familiar with SNMP)

-Gavan

See Answer In Context

Reply
Share
Replies 8
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1031
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This reply was originally posted by Gavan on APC forums on 12/8/2020


I don't think this method is supported but for what your trying to accomplish I'd recommend using either an SSH script that will log-in and run the command to control the outlets or using SNMP to turn the outlets on or off.

-Gavan

Reply
Share
agalu129_apc
Ensign agalu129_apc
Ensign

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1031
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This was originally posted on APC forums on 12/10/2020


I've opted to use a nodejs server to that communicates with the pdu whenever my web app makes a request. The nodejs server will send ssh commands to the pdu. I was wondering though if there is any documentation on what ssh commands I can use to communicate with the pdu to login, turn on/off switches?

 

Thanks for the help,

Albert

Reply
Share
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1031
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This reply was originally posted by Gavan on APC forums on 12/11/2020


The easiest way is to log into the PDU via SSH and then issue the ? command, some commands are slightly different for different units and firmwares:

apc>?

System Commands:
---------------------------------------------------------------------------
For command help: command ?

? about alarmcount boot bye cd
clrrst console date delete dir dns
eapol email eventlog exit firewall format
ftp help lang lastrst ledblink logzip
netstat ntp ping portspeed prompt pwd
quit radius reboot resetToDef session smtp
snmp snmptrap snmpv3 system tcpip tcpip6
user userdflt web whoami xferINI xferStatus

Device Commands:
---------------------------------------------------------------------------
alarmList bkLowLoad bkNearOver bkOverLoad bkReading bkPeakCurr
bkRestrictn devLowLoad devNearOver devOverLoad devReading devPeakLoad
devStartDly dispID humAlGen humLow humMin humHyst
humReading humStatus lcd lcdBlink logToFlash olAssignUsr
olCancelCmd olDlyOff olDlyOn olDlyReboot olGroups olName
olOff olOffDelay olOn olOnDelay olRbootTime olReboot
olStatus olUnasgnUsr phLowLoad phNearOver phOverLoad phReading
phPeakCurr phRestrictn prodInfo sensorName tempAlGen tempHigh
tempMax tempHyst tempPeak tempReading tempStatus userAdd
userDelete userList userPasswd

apc>olOff ?
Usage: olOff -- Turn an outlet or group of outlets off.
The id# may be from 1 up to 32 depending on NPS group size.
olOff [:]

 

-Gavan

Reply
Share
agalu129_apc
Ensign agalu129_apc
Ensign

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1032
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This was originally posted on APC forums on 12/14/2020


Thanks for the response Gavan. Do you know if the rack pdus generate a privateKey that I can use to ssh and authenticate myself into the pdu?

Reply
Share
agalu129_apc
Ensign agalu129_apc
Ensign

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1031
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This was originally posted on APC forums on 12/14/2020


Also where can i find this private key once sshed into the rack pdu?

Reply
Share
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1032
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This reply was originally posted by Gavan on APC forums on 12/15/2020


The SSH implementation doesn't support key authentication, you'll need to provide a user name and password.

If you want an easier to implement option the I still recommend SNMP, this command will turn of outlet 1 immediately: 

(Easier in terms of implementation, you'd need to understand how SNMP works first undecided) 

snmpset -v 1 -c public 192.168.0.1 1.3.6.1.4.1.318.1.1.12.3.3.1.1.1 i 2

-Gavan

Reply
Share
agalu129_apc
Ensign agalu129_apc
Ensign

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1031
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This was originally posted on APC forums on 12/16/2020


Thanks I will probably use SNMP instead then. Where can I see the commands I can use for SNMP? Can't seem to find any instruction in the documentation for the Rack PDUs. Also would I be able to authenticate into the PDUs with just a username and password because that is all I have access to at the moment?

Reply
Share
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-22 01:27 AM

0 Likes
0
1033
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-07-22 01:27 AM

This reply was originally posted by Gavan on APC forums on 12/22/2020


That's not really how SNMP works.

The commands are standard for all SNMP devices the only thing that changes is the target OID and the value set. The list of OIDs associated with the PDUs can be found in the Powernet MIB. (Like I said you'd need to be familiar with SNMP)

-Gavan

Reply
Share
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account?Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2023 Schneider Electric, Inc