예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
파일: ping.py 프로젝트: vscoder/gw_manager
    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
예제 #4
0
파일: scan.py 프로젝트: vscoder/gw_manager
    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
예제 #5
0
    def __init__(self, ip):
        gwman.__init__(self)

        self.pf = self.find_exec("pfctl")

        self.table = 'clients'

        self.ip = ip
예제 #6
0
파일: scan.py 프로젝트: vscoder/gw_manager
    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
예제 #7
0
    def __init__(self, ip):
        gwman.__init__(self)

        self.pf = self.find_exec("pfctl")

        self.table = 'clients'

        self.ip = ip
예제 #8
0
파일: ping.py 프로젝트: vscoder/gw_manager
    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
예제 #9
0
    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
예제 #10
0
    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
예제 #11
0
    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()
예제 #12
0
    def __init__(self, host='127.0.0.1', hops='8'):
        gwman.__init__(self)

        self.ipstatuses = "/root/billing/scripts/ips_status.sh"
예제 #13
0
    def __init__(self, host='127.0.0.1', hops='8'):
        gwman.__init__(self)

        self.ipstatuses = "/root/billing/scripts/ips_status.sh"