summaryrefslogtreecommitdiffstats
path: root/census/arping_users.py
diff options
context:
space:
mode:
authorroot <root@krebs>2011-06-30 01:05:00 +0200
committerroot <root@krebs>2011-06-30 01:05:00 +0200
commitad89350b16a31d6bd6a644ad162d8723e85945ee (patch)
treeb7c3c684d3a7bf268d61567503324a9d148ede22 /census/arping_users.py
parentb4aa702cc750c2869a7f61e22152d928bbe378f8 (diff)
updated people script
mac_names updated with more names
Diffstat (limited to 'census/arping_users.py')
-rwxr-xr-xcensus/arping_users.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/census/arping_users.py b/census/arping_users.py
index c576e4f3..008fe337 100755
--- a/census/arping_users.py
+++ b/census/arping_users.py
@@ -21,7 +21,7 @@ def load_names(MAC_NAMES):
names = {}
f = open(MAC_NAMES)
for l in f:
- mac,name = l.split()
+ mac,name = l.split(' ',1)
names[mac] = name.replace('\n','')
f.close()
return names
@@ -29,7 +29,7 @@ def load_names(MAC_NAMES):
def arping_helper(dic):
return arpingy(**dic)
-for first in range(4):
+for first in range(1,3):
for second in range(255):
data.append({'iprange':'10.42.'+str(first)+'.'+str(second),'iface':DEV})
@@ -50,5 +50,3 @@ for p in ret:
print p[0] + " => " + p[1]
if p[1] in names:
print names[p[1]]+ " is online"
-
-