|
On the verify page, you can get a list of how many devices there are, although this is not so simple to get to.
One problem with this request is, that the script does not read all the config files unless it has to, in order to improve performance. Therefore, the count of interfaces would not be available unless a lot more time was spent reading all the config files (we have a hundred or so of them, so the reading time is significant). Caching mode would allow it, of course, but most people do not use this.
As far as the time calculation goes (at the bottom of the page), this is possible - there is in fact an indication of this in the comments at the bottom of the main page for debug use. Adding it to the page footer should be no major problem, although I'd need to get it to a greater precision for it to be meaningful, I think. I can look at getting this added to the current development version.
The 'please wait' is slightly difficult since it depends on the browser. Some (eg, Netscape, Mozilla) let you do a multipart/replace MIME type so that a page can progressively update. Others (IE, Opera?) do not allow this to work. Picking the wrong one results in the 'Working...' message appearing at the top of the page even when finished. There are ways to achieve this, of course, but they are not readily compatible with the structure of the routers.cgi program flow.
Of course, if you are taking a significant time (more than 5 sec) to build a page of graphs, then you should consider either -
1) decreasing the number of interfaces per cfg file (less work to do)
2) increasing the power and memory of your web server (do the work faster)
3) install speedyCGI and enable caching mode if you use linux (save time by not rereading all the CFG files each time)
4) Schedule a periodic job to automatically request certain frequently requested pages, thus ensuring graphs come from cache when requested by a user (do the work in advance)
_________________ Steve Shipway UNIX Systems, ITSS, University of Auckland, NZ Woe unto them that rise up early in the morning... -- Isaiah 5:11
|