Skip to content
Snippets Groups Projects
Commit fb9aaf02 authored by Reinier van der Walle's avatar Reinier van der Walle
Browse files

No commit message

No commit message
parent a87dcab3
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ def get_iplist(unbnr, lcu_name = 'local'): ...@@ -15,7 +15,7 @@ def get_iplist(unbnr, lcu_name = 'local'):
for i in range(1,9): for i in range(1,9):
ip = "%s%d.%d" % (prefix, unbnr,i) ip = "%s%d.%d" % (prefix, unbnr,i)
if lcu_name == 'local': if lcu_name == 'local':
cmd = 'ping -c2 -w1 '+ ip cmd = 'ping -c1 -w1 '+ ip
else: else:
cmd = "ssh -f -ty "+ lcu_name +" ping -c2 -w1 " + ip +" |egrep '1 received|2 received'" #|egrep '1 received|2 received' cmd = "ssh -f -ty "+ lcu_name +" ping -c2 -w1 " + ip +" |egrep '1 received|2 received'" #|egrep '1 received|2 received'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment