Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a blade chassis that I want to be able to fetch the power budget stats from it's web inteface, however this data i'm unable to fetch using SNMP, i've checked ;)

however I should be able to crawl the management web interface for this data, by just initiating a login, fetch the HTML page the grep out the proper fields.

Any ideas?

share|improve this question
up vote 2 down vote accepted

If you are going to write a crawler, investigating Perl's Mechanize package, or your programming language de jour's version, would probably make life a lot easier.

These packages provide cookie and session management functions. Also, in Python, when combined with the BeautifulSoup package, it can be quite powerful.

share|improve this answer

Does the blade chassis have a telnet interface? A suprising number of switches and routers do, and it's usually easy to script a telnet connection.

I have scripted HTTP connections to get data, but it can be a pain if the server uses cookies or session IDs to manage the authentication.

John Rennie

share|improve this answer
Yes Telnet would be a better idea, it also supports SSH, however i tried to find the power budgeting info, but no luck, only fan RPM, temperatures are return, I've also emailed the manufacture and they said it's in the next firmware release – Darragh May 21 '09 at 16:33

This isn't great from a performance perspective. I wouldn't try to grab the metrics at really short intervals.

However, you could use wget or curl to perform this task then grep the output for the values you need.

Remember that if you update the firmware of the device you might have a broken script if they change the UI at all.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.