Community discussions

MikroTik App
 
Ingus
just joined
Topic Author
Posts: 5
Joined: Wed Jun 30, 2004 1:50 pm

Get info from router with PHP/Apache

Wed Sep 15, 2004 2:07 pm

Is it possible (if is - then HOW?) to get some information from the router with php/apache ???
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

Wed Sep 15, 2004 5:31 pm

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
 
Ingus
just joined
Topic Author
Posts: 5
Joined: Wed Jun 30, 2004 1:50 pm

OID ???

Wed Sep 15, 2004 6:54 pm

Could you give some example about OID and how to use them to get info from the router ???
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

Wed Sep 15, 2004 7:38 pm

 
Ingus
just joined
Topic Author
Posts: 5
Joined: Wed Jun 30, 2004 1:50 pm

hmmz

Wed Sep 15, 2004 7:49 pm

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

:(((
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26822
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Thu Sep 16, 2004 10:18 am

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.
 
viktorija
just joined
Posts: 24
Joined: Fri May 28, 2004 4:05 pm

Re: hmmz

Thu Sep 16, 2004 11:41 am

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

:(((

Who is online

Users browsing this forum: Bing [Bot], gsipos, mbovenka, roe1974 and 21 guests