Changeset 1052
- Timestamp:
- Aug 15, 2012, 3:23:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/usr/bin/opsi-client.py
r1051 r1052 44 44 return False 45 45 print src + ":" 46 host = self.rpc.host_getHashes( [], {"id":src} )[0] 47 print " IP:", host["ipAddress"] 48 print " MAC:", host["hardwareAddress"] 49 print " inventory:", host["inventoryNumber"] 50 print " last seen:", host["lastSeen"] 51 print " notes:", host["notes"] 52 53 print " products:" 46 54 products = self.getProductOnClient( src, [] ) 47 55 for i in products: 48 print i['productId'] + ": (", i['actionRequest'], i['actionProgress'], ")", i['installationStatus'] 49 pprint( i, indent=4 ) 56 print " " + i['productId'] + ":" 57 print " " + i['installationStatus'], "(", 58 if i['actionRequest']: 59 print i['actionRequest'], 60 if i['actionProgress']: 61 print i['actionProgress'], 62 print ")" 63 print " ", 64 pprint( i, indent=8 ) 50 65 return True 51 66 … … 77 92 # opsiCallClientBaculaProperties=[ "method", "getProductProperties_hash", "bacula" ] 78 93 print "done" 94 return True 79 95 80 96 … … 146 162 result = opsi.clean( args.src ) 147 163 elif args.subcommand == "copy": 148 opsi.copyClient( args.src, args.dst, args.ip, args.mac, args.depot )164 result = opsi.copyClient( args.src, args.dst, args.ip, args.mac, args.depot ) 149 165 else: 150 166 print "not yet implemented"
Note:
See TracChangeset
for help on using the changeset viewer.