summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-01-23 00:47:21 +0100
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-01-23 00:47:21 +0100
commite7b3ba6b4439b4ae046b7be54a2d0bd904642745 (patch)
tree177d25624764090420b75c92ce33693a2d3bccca
parent5a55c1b82a26244fb8a2584fa35887d9637bd2e2 (diff)
fixed output
-rw-r--r--arping.py2
-rwxr-xr-xsnmp_users.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/arping.py b/arping.py
index ee96c9aa..816a3f46 100644
--- a/arping.py
+++ b/arping.py
@@ -8,7 +8,7 @@ try:
raise Exception('no root permissions')
from scapy.all import * #might throws "no such module"
- def arpingy(iprange="10.42.1.0/24",iface='eth0'):
+ def arpingy(iprange="10.42.1.0/24",iface='wlan0'):
log.debug("pinging"+ iprange)
"""Arping function takes IP Address or Network, returns nested mac/ip list"""
try:
diff --git a/snmp_users.py b/snmp_users.py
index 8e2fb05d..cb31dab6 100755
--- a/snmp_users.py
+++ b/snmp_users.py
@@ -77,8 +77,8 @@ class snmp_users:
return self.mac_list
def print_results(self):
log.debug('printing results:')
- print '\n'.join([ mac + " => " + ip['ip'] + " ( %d active leases )" %
- ip['counter'] for mac,ip in self.mac_list.items() ])
+ print '\n'.join([ mac + " => %s" %
+ str(ips) for mac,ips in self.mac_list.items() ])
print '%d *unique* nodes in network' % len(self.mac_list)