cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
398
Views
0
Helpful
2
Replies

Customized HTTP Interface for Router Management

tahirjhangvi
Level 1
Level 1

Hi,

I have to customize some of the Web Pages for Router MAnagement. I was looking at SSI to do this, but not sure if this can fulfill my requirement.

What i want to do is basically run a command like,

SHOW USERS

Which returns me a bunch of users in form of a html page. But i need to display each of the user in a combo box. As far as i understand programatically i can do this if i can get an array of users inspite of in an html page and then i can iterate through this array and add in the combo box.

So is this kind of requirement do able with the HTTP Interface. Any idea or sample would be highly appreciated.

TIA

2 Replies 2

wong34539
Level 6
Level 6

Did you ever get an answer on this??? I've had a similar issue

andrea.meconi
Level 2
Level 2

I don't understand well what you want.

I use a perl script like this to get a users list and create a page.

You must enable rsh on router.

$line = `rsh 85pdat01 -l MECONIA \"show users all"`;

print <

HTTP/1.0 200 OK

Content-Type: text/html\n

Checking for connected users...

User List

$line

ENDOFTEXT

exit(0);

I hope this help.

Andrea.