Welcome to the new Schneider Electric Community

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

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
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
82126members
349639posts

publish AP9617 web page to another web server

APC UPS Data Center Backup Solutions Forum

Schneider Electric support forum for Data Center UPS, software and services including our APC offers designed to share knowledge, installation, configuration, and general product use.

Solved
shookmon_apc
Ensign
Ensign
0 Likes
9
300

publish AP9617 web page to another web server

This was originally posted on APC forums on 1/7/2012


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

Attachments

Accepted Solutions
shookmon_apc
Ensign
Ensign
0 Likes
0
300

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/13/2012


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

See Answer In Context

9 Replies 9
BillP
Administrator Administrator
Administrator
0 Likes
0
300

Re: publish AP9617 web page to another web server

This reply was originally posted by Angela on APC forums on 1/9/2012


let me look into it and see what we can provide to you. i will post back in a day or two.

BillP
Administrator Administrator
Administrator
0 Likes
0
300

Re: publish AP9617 web page to another web server

This reply was originally posted by Angela on APC forums on 1/10/2012


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?

BillP
Administrator Administrator
Administrator
0 Likes
0
300

Re: publish AP9617 web page to another web server

This reply was originally posted by Angela on APC forums on 1/11/2012


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:///core.css, save it locally, and put it in the same directory you plans to offload the page to. it being in the same directory as the HTML source might have it look better, but we are not sure.

shookmon_apc
Ensign
Ensign
0 Likes
0
300

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/12/2012


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.

shookmon_apc
Ensign
Ensign
0 Likes
0
300

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/12/2012


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

voidstar_apc
Janeway
Janeway
0 Likes
0
300

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/12/2012


>
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.

shookmon_apc
Ensign
Ensign
0 Likes
0
300

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/12/2012


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

shookmon_apc
Ensign
Ensign
0 Likes
0
300

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/12/2012


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

shookmon_apc
Ensign
Ensign
0 Likes
0
301

Re: publish AP9617 web page to another web server

This was originally posted on APC forums on 1/13/2012


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