joshmarinacci / razzmaster

Find and set up new Raspberry Pis on your network
MIT License
29 stars 3 forks source link

OSX 10.11.5 won't find pi's on network #2

Open juggledad opened 8 years ago

juggledad commented 8 years ago

If I do a scan, it doesn't find anything, but if I put in the IP address of a Pi I can find the info. Here is what I see"

Pauls-mini-2:~ Paul$ razzmaster scan
finding a raspberry pi
subnets =  [ '192.168.48.99' ]
mac =  192.168.48.1 b8:c7:5d:cc:aa:a3 false
probable raspberry pis []
   could not find any pis.
Pauls-mini-2:~ Paul$ razzmaster info --host 192.168.48.159 --password xxxxxx
using default username: 'pi'
Raspberry Pi 2 Model B Rev 1.1
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Linux kitchen 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux

Pauls-mini-2:~ Paul$ 
joshmarinacci commented 8 years ago

If you run razzmaster several times in a row does it find it?

Sent from planet Earth

On Jun 24, 2016, at 3:02 PM, juggledad notifications@github.com wrote:

If I do a scan, it doesn't find anything, but if I put in the IP address of a Pi I can find the info. Here is what I see"

Pauls-mini-2:~ Paul$ razzmaster scan finding a raspberry pi subnets = [ '192.168.48.99' ] mac = 192.168.48.1 b8:c7:5d:cc:aa:a3 false probable raspberry pis [] could not find any pis. Pauls-mini-2:~ Paul$ razzmaster info --host 192.168.48.159 --password stego using default username: 'pi' Raspberry Pi 2 Model B Rev 1.1 PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Linux kitchen 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux

Pauls-mini-2:~ Paul$

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

juggledad commented 8 years ago

Nope, it doesn't find them or anything else on the network. I have three Mac's (one hardwired - the one showing - and two WiFi, (2) pi's - one wifi and one wifi and hardwired- and an iPhone and only the machine I issue the command from is showing.

I just installed it on a Pi and it runs, but it seems to stop after scanning 31 ip's - ie I see 192.168.48.0-192.168.48.30. Now on my router, I have it configurred to hand out addresses from 192.168.48.100-192.168.48.200 while I reserve and use the ip's under 192.168.48.100 for predefined machines, like my main machine that I also use as a web server and I don't want it's IP address to change.

so how do you run it and have it scan the entirp IP range 0-254?

juggledad commented 8 years ago

Ah HA - you are only scanning 31 IPs - find.js line 81 var arr = range(0,30).map(function(i) {

juggledad commented 8 years ago

Yup, i edited find.js and changed the 30 to 255 and now it finds my pi's

joshmarinacci commented 8 years ago

'doh! testing code that I left in. I"ll fix it.

joshmarinacci commented 8 years ago

I upped it to 255 and I'm getting an EAGAIN error. Are you getting that error? This implies I've hit my per-user process limit.

juggledad commented 8 years ago

Nope, not getting any error on my Mac. here is what I get

Pauls-mini-2:~ Paul$ razzmaster scan
finding a raspberry pi
subnets =  [ '192.168.48.99' ]
mac =  192.168.48.0 ff:ff:ff:ff:ff:ff false
mac =  192.168.48.1 b8:c7:5d:cc:aa:a3 false
mac =  192.168.48.99 a8:20:66:23:c3:a2 false
mac =  192.168.48.101 88:cb:87:af:77:1b false
mac =  192.168.48.111 3c:07:54:09:d8:3f false
mac =  192.168.48.112 88:1f:a1:17:af:08 false
mac =  192.168.48.113 54:4e:90:c8:85:da false
mac =  192.168.48.199 e0:b9:ba:d6:07:5d false
mac =  192.168.48.203 00:e0:4c:12:c9:e8 true
probable raspberry pis [ { host: '192.168.48.120', mac: 'b8:27:eb:c8:75:03' },
  { host: '192.168.48.159', mac: 'b8:27:eb:c8:75:03' },
  { host: '192.168.48.203', mac: '00:e0:4c:12:c9:e8' } ]
Pauls-mini-2:~ Paul$ 

It would be nice if the list of pis wuld lign up - i.e. like this

probable raspberry pis [ 
  { host: '192.168.48.120', mac: 'b8:27:eb:c8:75:03' },
  { host: '192.168.48.159', mac: 'b8:27:eb:c8:75:03' },
  { host: '192.168.48.203', mac: '00:e0:4c:12:c9:e8' } ]
juggledad commented 8 years ago

Interesting, I installed it on one of my pi's and it only finds my router and main ox machine and it reports back every single IP address