Exemple #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
Exemple #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
Exemple #3
0
    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
Exemple #4
0
    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
Exemple #5
0
    def __init__(self, ip):
        gwman.__init__(self)

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

        self.table = 'clients'

        self.ip = ip
Exemple #6
0
    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
Exemple #7
0
    def __init__(self, ip):
        gwman.__init__(self)

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

        self.table = 'clients'

        self.ip = ip
Exemple #8
0
    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
Exemple #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
Exemple #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
Exemple #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()
Exemple #12
0
    def __init__(self, host='127.0.0.1', hops='8'):
        gwman.__init__(self)

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

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