Correction dans la probe mac, et commentaire dans ip.py
This commit is contained in:
parent
7b381655f0
commit
e3822ee35b
2 changed files with 3 additions and 1 deletions
|
@ -2,4 +2,4 @@
|
|||
|
||||
echo "group:mac"
|
||||
|
||||
exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +2 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g'
|
||||
exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +1 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g'
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#
|
||||
# Recuperation des addresses ip des serveurs
|
||||
|
||||
# Parfois, on prend un gaierror parce que hostname ne retourne rien, je sais
|
||||
# pas d'où ça vient, mais c'est caca.
|
||||
import socket
|
||||
|
||||
def pubipof(hostname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue