Page 1 of 1
Get info from router with PHP/Apache
Posted: Wed Sep 15, 2004 2:07 pm
by Ingus
Is it possible (if is - then HOW?) to get some information from the router with php/apache ???
Posted: Wed Sep 15, 2004 5:31 pm
by edzix
you can SSH to this router execute some commands, but you can't to pass something bach in this way. You have to use OIDs to get some values from the router.
Edgars
OID ???
Posted: Wed Sep 15, 2004 6:54 pm
by Ingus
Could you give some example about OID and how to use them to get info from the router ???
Posted: Wed Sep 15, 2004 7:38 pm
by edzix
hmmz
Posted: Wed Sep 15, 2004 7:49 pm
by Ingus
Fine, But is it possible from the php/apache web page (when we know persons remote ip address) to check (for example /ip firewall rule forward )
src-mac-address and display it on the screen.
Or - send back information to the router to execude some router side script with clients ip address ? (For example in queue simple - where target address = client remote address - change max limit )
etc. etc. - I need to do these tasks - but (As I suppose) MT doesnot support such features
:(((
Posted: Thu Sep 16, 2004 10:18 am
by normis
use SNMP as was recommended, this can show you a lot of things. example:
# /interface
# /interface pc
# /interface wavelan
# /interface wireless
# /interface wireless registration-table
# /queue simple
# /queue tree
# /system identity
# /system resource
a very interesting solution is provided by
http://www.billingo.com - you can look at that as an option.
Re: hmmz
Posted: Thu Sep 16, 2004 11:41 am
by viktorija
it is possible to use "expect" language in linux for this puproses.
Fine, But is it possible from the php/apache web page (when we know persons remote ip address) to check (for example /ip firewall rule forward )
src-mac-address and display it on the screen.
Or - send back information to the router to execude some router side script with clients ip address ? (For example in queue simple - where target address = client remote address - change max limit )
etc. etc. - I need to do these tasks - but (As I suppose) MT doesnot support such features
:(((