def __init__(self, host='127.0.0.1', hops='8'): gwman.__init__(self) self.traceroute = self.find_exec("traceroute") self.host = host self._hops = hops
def __init__(self, host='127.0.0.1', count='4'): gwman.__init__(self) self.ping = self.find_exec("ping") self.host = host self._count = count
def __init__(self, host='127.0.0.1', port=80, timeout=5, proto='tcp'): gwman.__init__(self) # TODO: Добавить возможность проверки UDP портов self.host = host self.port = port self.timeout = timeout self.proto = proto
def __init__(self, ip): gwman.__init__(self) self.pf = self.find_exec("pfctl") self.table = 'clients' self.ip = ip
def __init__(self, arptype): gwman.__init__(self) # Доступные типы привязки self.arptype = arptype self.arp = self.find_exec("arp") self._ethers = "/etc/ethers" self._arptable = {} self.ipfw_start = 600 self.arptable
def __init__(self, host='127.0.0.1', port=161, community='public', vlan=1, getmodel=False): gwman.__init__(self) self._protocols = ['snmp', 'telnet'] self.snmpget = self.find_exec('snmpget') self.host = host self.port = port self.timeout = 5 self.community = community self.vlan = vlan self.mactable_oid = '' # Получение модели свича из sysDescr.0 if getmodel: self.get_model()
def __init__(self, host='127.0.0.1', hops='8'): gwman.__init__(self) self.ipstatuses = "/root/billing/scripts/ips_status.sh"