git://git.onelab.eu
/
monitor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6d04ce2e750566d086be9cd5b6c8c064f30566d3
[monitor.git]
/
tools
/
getsshkeys.py
1
#!/usr/bin/python
2
3
import sys
4
sys.path.append('.')
5
sys.path.append('..')
6
7
from monitor.util.sshknownhosts import *
8
9
def main(hosts):
10
k = SSHKnownHosts()
11
if len (hosts) > 0:
12
for host in hosts:
13
k.updateDirect(host)
14
else:
15
k.updateAll()
16
k.write()
17
18
if __name__ == '__main__':
19
main(sys.argv[1:])