Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

PCNS redirecting to different IP address

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.

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
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • PCNS redirecting to different IP address
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 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
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
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
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:49 AM . Last Modified: ‎2024-02-29 10:59 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:49 AM . Last Modified: ‎2024-02-29 10:59 PM

PCNS redirecting to different IP address

I have PCNS 4.0 running on an OS X system that has multiple IP interfaces.

Connections to the HTTP interface get redirected to HTTPS but on a different IP address than the initial HTTP connection (see below).

Since that IP address is not reachable from the client the redirection fails.

Is there any way to change this behavior e.g. by limiting the IP addresses PCNS listens on or redirecting to the same IP address the HTTP connection went to?

Stefan

% telnet 192.168.1.211 3052
Trying 192.168.1.211...
Connected to 192.168.1.211.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 302 Found
Location: https://172.16.142.1:6547
Content-Length: 0
Server: Jetty(9.1.3.v20140225)

Connection closed by foreign host.

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
  • Tags:
  • network
  • pcns
  • ssl
  • web
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

I guess I was wrong with that assumption.

The address it is redirecting to is the highest one in the system: 192.168.168.1/24

$ ip addr  | grep inet\ 

    inet 127.0.0.1/8 scope host lo

    inet 169.254.0.2/16 brd 169.254.255.255 scope global idrac

    inet 192.168.12.44/24 brd 192.168.12.255 scope global bond0

    inet 192.168.12.83/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.12.81/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.12.164/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.12.80/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.168.1/24 brd 192.168.168.255 scope global bond1

Nevertheless thanks for your suggestion. Will try to assign a higher one as secondary IP on the public interface and see if that works.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 9
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:49 AM . Last Modified: ‎2024-02-29 10:59 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:49 AM . Last Modified: ‎2024-02-29 10:59 PM

Stefan,

What IP address is listed in pcnsconfig.ini? Also, are you entering the IP address or domain name in the web browser and if domain name what IP address is associated with that name?

Note: When you attempted to connect to PCNS using http it will automatically redirect you to https for security.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:49 AM . Last Modified: ‎2024-02-29 10:59 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:49 AM . Last Modified: ‎2024-02-29 10:59 PM

Hi Bill,

IP address listed as localHostAddress in the Networking section of pcnsconfig.ini is 192.168.1.211 (see below).

In the browser I enter http://192.168.1.211:3052 and get redirected to https://172.16.142.1:6547

The client has no route to 172.16.142.1 and the browser times out after a while, complaining that the server at 172.16.142.1 takes too long to respond (naturally). 

The system running PCNS has several IP addresses, one of which is 172.16.142.1, but the only IP address accessible from the LAN the web client is sitting on is 192.168.1.211.

It seems that PCNS does not use localHostAddress to construct the URI for the HTTP 302 redirect.

Any other solution available for multihomed systems?

Stefan

/Users/Shared/Applications/APC/PowerChute/group1/pcnsconfig.ini
...

[Networking]
protocol = https
httpPort = 3052
httpsPort = 6547
NetworkConfig = IPV4
VirtualInstall =
MulticastAddress =
IPv6NetworkConfig = unicast
localHostAddress = 192.168.1.211
UnicastAddress =
...

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:59 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:59 PM

The same problem still exists in 4.1.

I'm running is on a RHEL 6.7 cluster node with a public interface bond0 (192.168.12.55) and a private cluster inteconnect bond1 (192.168.12.2).

The IP Address 192.168.12.55 in UPS Configuration - PowerChute Agents links to http://192.168.12.55:3052/ but then the browser gets redirected to https://192.168.12.2:6547/

That is certainly useless because the cluster interconnect is just a crossover cable between the nodes and not accessible to the client.

PCNS will apparently always redirect to the lowest non-loopback IP in the system.

What one would expect is a more deterministic behavior e.g. redirect to 

a) the same IP address the client is connecting to or

b) to the IP address specified in pcnsconfig.ini => Networking => localHostAddress

Can this please be fixed in a future release?

Thanks

Stefan

/opt/APC/PowerChute/group1/pcnsconfig.ini:

[Networking]

protocol = https
httpPort = 3052
httpsPort = 6547
NetworkConfig = IPV4
VirtualInstall =
MulticastAddress =
IPv6NetworkConfig = unicast
localHostAddress = 192.168.12.55
UnicastAddress =

$ ip addr show bond0 scope global
7: bond0: mtu 1500 qdisc noqueue state UP
link/ether b8:2a:72:d1:94:32 brd ff:ff:ff:ff:ff:ff
inet 192.168.12.55/24 brd 192.168.12.255 scope global bond0
inet 192.168.12.86/24 brd 192.168.12.255 scope global secondary bond0
inet 192.168.12.82/24 brd 192.168.12.255 scope global secondary bond0
inet 192.168.12.81/24 brd 192.168.12.255 scope global secondary bond0
inet 192.168.12.164/24 brd 192.168.12.255 scope global secondary bond0
inet 192.168.12.85/24 brd 192.168.12.255 scope global secondary bond0
inet 192.168.12.80/24 brd 192.168.12.255 scope global secondary bond0
[root@aspendpc5 ~]# ip addr show bond1 scope global
8: bond1: mtu 1500 qdisc noqueue state UP
link/ether b8:2a:72:d1:94:33 brd ff:ff:ff:ff:ff:ff
inet 192.168.168.2/24 brd 192.168.168.255 scope global bond1

  • Tags:
  • pcns
  • redirect
Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:59 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:59 PM

Stefan,

When you open your browser and type https://192.168.12.55:6547 is the user interface opened or are you being redirected to https://192.168.12.2:6547? And to verify, when you open a browser and type http://192.168.12.55:3052 you get redirected to https://192.168.12.2:6547? 

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

> When you open your browser and type https://192.168.12.55:6547 is the user interface opened

Yes

> or are you being redirected to https://192.168.12.2:6547?

No

> when you open a browser and type http://192.168.12.55:3052 you get redirected to https://192.168.12.2:6547?

Yes.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

There is a workaround for this issue.

 On the PCNS machine you can add the IP address that PCNS is re-directing to, to the /etc/hosts file or C:\Windows\system32\drivers\etc\hosts file and re-start the PCNS service/daemon.

Example: We have PCNS installed on a machine with multiple NICs including some which use VirtualBox private IP range (192.168.56.x). When we enter http://correct IP:3052, PCNS re-directs to https://192.168.56.1:6547 similar to what's happening at your location.

As a workaround we added 192.168.56.1 to C:\Windows\system32\drivers\etc\hosts file and re-started the service. Then when we enter http://10.216.254.162:3052, PCNS will re-direct using the FQDN instead of the IP address.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

Bill,

The workaround does not work for us:

1) we have an entry for the private IP in /etc/hosts and it has a name that cannot be deleted

2) we are not using DNS: referral to a FQDN will not succeed

3) results of the workaround are erratic: on one system it works, on the other it doesn't

Stefan

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

On 9/23/2015 1:06 AM, Stefan said:

PCNS will apparently always redirect to the lowest non-loopback IP in the system.

If that is indeed the case, then it would seem that the simplest workaround would be to just move your private, disconnected networks (be they cluster crossover, internal VMs, or whatever) to numerically higher subnets - 192.168.254.0/24, for example.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

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

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-07-08 12:50 AM . Last Modified: ‎2024-02-29 10:58 PM

I guess I was wrong with that assumption.

The address it is redirecting to is the highest one in the system: 192.168.168.1/24

$ ip addr  | grep inet\ 

    inet 127.0.0.1/8 scope host lo

    inet 169.254.0.2/16 brd 169.254.255.255 scope global idrac

    inet 192.168.12.44/24 brd 192.168.12.255 scope global bond0

    inet 192.168.12.83/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.12.81/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.12.164/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.12.80/24 brd 192.168.12.255 scope global secondary bond0

    inet 192.168.168.1/24 brd 192.168.168.255 scope global bond1

Nevertheless thanks for your suggestion. Will try to assign a higher one as secondary IP on the public interface and see if that works.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
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 board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of