Community discussions

MUM Europe 2020
 
bigguns
Member Candidate
Member Candidate
Topic Author
Posts: 238
Joined: Thu Apr 01, 2010 9:03 am

Need help creating a script based on log event.

Sun Apr 24, 2011 4:45 am

Hi there,
I've found an issue with my hotspot system which seems to occur under the following condition:
User logged in > router restarts > User unable to visit any page, including hotspot page.
User is unable to ping any site or the router (ip or DNS).


So I've found the issues which this appears in the logs:

hotspot,debug hotspot1: failed to add dynamic host 00:08:A1:93:0D:6C/10.5.50.253, ip 10.5.50.253: to-address is already used.

On that above event I need to do the following inorder to get the user's pc working:

system,info hotspot ip binding rule removed by Admin
dhcp,info Hotspot-DHCP deassigned 10.5.50.253 from 00:08:A1:93:0D:6C
system,info dhcp lease removed by Admin

Can anyone think of away of doing this
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Need help creating a script based on log event.

Sun Apr 24, 2011 2:43 pm

I would try to figure out why the hotspot is trying to issue an address that is already assigned. Please post
/ip dhcp-server lease
/ip hotspot ip-binding
/ip hotspot host
 
bigguns
Member Candidate
Member Candidate
Topic Author
Posts: 238
Joined: Thu Apr 01, 2010 9:03 am

Re: Need help creating a script based on log event.

Wed Apr 27, 2011 5:46 pm

Hi

Its not issues addresses that its done already - its simply creating a mis-match if the client (hotspot user) does not refresh their ip. And once this cycle starts, it doesn't stop.
/ip dhcp-server lease> print
Flags: X - disabled, R - radius, D - dynamic, B - blocked 
 #   ADDRESS                MAC-ADDRESS       HOST... SERVER     RATE... STATUS 
 0 D 10.5.50.253            00:08:A1:93:0D:6C IBM1-PC Hotspot...         bound  

/ip hotspot ip-binding> print
Flags: X - disabled, P - bypassed, B - blocked 
 #   MAC-ADDRESS       ADDRESS                         TO-ADDRESS      SERVER   

/ip hotspot host> print
Flags: S - static, H - DHCP, D - dynamic, A - authorized, P - bypassed 
 #    MAC-ADDRESS       ADDRESS         TO-ADDRESS      SERVER      IDLE-TIMEOUT
 0 H  00:08:A1:93:0D:6C 10.5.50.253     10.5.50.253     hotspot1    20m         
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Need help creating a script based on log event.

Wed Apr 27, 2011 6:36 pm

I tried your situation, and I cannot create that log message, or the connection problem. How do your clients connect to the router? Do they have CPE equipment, or connected directly to the router? Wired or wireless?
 
bigguns
Member Candidate
Member Candidate
Topic Author
Posts: 238
Joined: Thu Apr 01, 2010 9:03 am

Re: Need help creating a script based on log event.

Thu Apr 28, 2011 7:36 pm

Hiya,

They are clients plugged directly into the router.

Simply log the client (running windows 7) in to the hotspot and then restart the router. The client will keep the ip address and the router should product that message.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Need help creating a script based on log event.

Fri Apr 29, 2011 12:53 pm

It must be related to Windows 7. I tried WinXP, Linux, and my Blackberry. I can't reproduce it. Maybe someone else that uses Windows 7 can add something here.
 
Gareth
Frequent Visitor
Frequent Visitor
Posts: 76
Joined: Sat Apr 24, 2010 7:45 am
Location: South Africa

Re: Need help creating a script based on log event.

Thu Jun 16, 2011 7:10 pm

I'd be really interested to find out if you found your problem, bigguns. I'm having the same problem on one section of my wireless network.
i.e. failed to add dynamic host 00:27:22:08:0C:D8/172.23.0.82, ip 172.23.0.82: to-address is already used.

Network layout is like this:

MT Hotspot (433AH v4.6) >> RB532 (v4.5) >> Ubiquiti Station + Ubiquiti AP >> Client

It doesn't matter if the client is a laptop, phone or ubiquiti device, the error will occur at least once a day and to anyone connected to the Ubiquiti AP.
The other strange thing, is that the MAC address of the Ubiquiti station (00:27:22:08:0C:D8) appears in hotspot hosts as the MAC of the client, but in DHCP leases the Active MAC Address is the actual MAC address of the client.

Who is online

Users browsing this forum: No registered users and 6 guests