From e7b3ba6b4439b4ae046b7be54a2d0bd904642745 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Sun, 23 Jan 2011 00:47:21 +0100 Subject: fixed output --- arping.py | 2 +- snmp_users.py | 4 ++-- 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) -- cgit v1.2.3