def heartbeat_call(self, event):
# Send a packet to every WiFiTrilat server.
for host in [s[1:s.find('/WiFi')] for s in self.client.discover()]:
#sr(IP(dst=host)/ICMP(), iface=self.interface)
cli.execute(command='ping -c 4 %s' % host, wait=False, shellexec=True)
评论列表
文章目录