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-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
Hello,
At refuse4research.org I have 3 Smart-UPS 2200 XLs with AP9617 cards in them running the latest firmware. All is running perfectly from an APC point of view.
However, the data center is inside a secure network and thus I can't access the UPS status pages from the outside world.
Prior to upgrading to the 9617s I had older NMC's where the web pages were a bit less integrated. Using this command from a linux script I could get a copy of the UPS status to the linux box which would then ftp it to my public web server at refuse4research.org.
wget user=zzzzzz password=###### -t 20 retry-connrefused waitretry=20 192.168.0.203/upsstat.htm
upsstat was a nice clean page with very few links and no frame.
With the 9617s I see that I can get raw data out either by a similar get or via FTP from the UPS itself, but I'm really looking for something more presentable to the public.
Ideally, I'd like the section I've circled in the attached image.
Can I get someone at APC to layout all possible .htm pages that I could call from a AP9617? Maybe I can use a few of them in combination to display what I'm looking for.
Thanks!!
Michael D. Shook | refuse4research.org | Mike@OmegaTower.com | Eastern Time Zone
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Thanks, did that to get a static set, but I'd rather not do that every time if I don't have to. If a techie at APC could open the code and tell me all the.....
Hang on a minute, I have the code. I wonder if I can see all the image calls from the code.....
Michael D. Shook | refuse4research.org | Mike@refuse4research.org | Eastern Time Zone
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-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
let me look into it and see what we can provide to you. i will post back in a day or two.
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-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
just to make things go quicker, can you tell me what network management card model you were using before that worked the way you wanted and what firmware version it was at for AOS and APP?
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-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
ok, after some research, a point was made that the NMC is designed to have all of its pages stored locally so that is why we do things a certain way. for AP9617, the only option that we can offer that might work:
You can try to access the card's core.css file (http://
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
Sorry, for the delay, they were AP9606, and while I don't remember the versions, here is what the web page used to look like: http://refuse4research.org/status/results/UPS.htm
Thanks for your suggestions, and I'll give them a try.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
As for your suggestions, I see what you mean about getting the css file, and I will certainly do that, but what I'd really like to give is a web page with no links to UPS "thingys" that can't be clicked on because the UPS isn't actually the serving up the page. In the "old system" 🙂 the menu was an outer frame and the contents were an inner frame. I could get the card to just serve up the inner frame without any of the menu options, just the content.
I guess you could call the page I'm looking for just a stupid, non-functioning status recap report.
Thanks for your help!!
Michael D. Shook | refuse4research.org | Mike@refuse4research.org | Eastern Time Zone
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-07-01 01:02 AM . Last Modified: 2024-03-06 02:12 AM
>
So that just leaves any images that uphome.htm might need.
>
You might try using wget with -p / page-requisites, -k / convert-links, and -R / --reject (to avoid overwriting the custom css file).
In the future if you want to create your own pages, you could turn on SNMP and use PHP's built-in SNMP support.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Alrighty, I think I have the htm part sorted out by setting the display css to none for the elements I don't want. (http://refuse4research.org/status/results/UPS-NEW.htm) So, that leaves two things:
1) What images is upshome.htm potentially going to call (ie. red x, green check, etc..) and how do I get a copy of them?
2) How do I get the linux wget command to work with the way that the website logs in now?
Thanks for your help!!!
Michael D. Shook | refuse4research.org | Mike@refuse4research.org | Eastern Time Zone
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Ok, got the wget sorted out:
wget -nv --post-data='login_username=USERNAME&login_password=PASSWORD' http://###.###.###.###/Forms/login1 2>&1 >/dev/null | grep -1 NMC | sed -e 's/.*URL://g' -e 's/home.*/uphome.htm/' > hash.txt
wget -t 20 retry-connrefused waitretry=20 -i hash.txt
wget http://###.###.###.###/logoff.htm
So that just leaves any images that uphome.htm might need.
Current output can be found here: http://refuse4research.org/status/results/UPS%20A.htm
Michael D. Shook | refuse4research.org | Mike@refuse4research.org | Eastern Time Zone
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 01:03 AM . Last Modified: 2024-03-06 02:12 AM
Thanks, did that to get a static set, but I'd rather not do that every time if I don't have to. If a techie at APC could open the code and tell me all the.....
Hang on a minute, I have the code. I wonder if I can see all the image calls from the code.....
Michael D. Shook | refuse4research.org | Mike@refuse4research.org | Eastern Time Zone
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.