Changeset 2c8d924d441cf07a1b6ddea49ac36defb3c88a06 for pxe/dpysystem
- Timestamp:
- 02/02/09 18:22:50 (3 years ago)
- Children:
- 853b6ff09487cd6805e4ae5a5956b0cbcd28359d
- Parents:
- eef6ba64af41427ff42b23488371082cf44cfc83
- git-committer:
- Frederic Lepied <frederic.lepied@…> (02/02/09 18:22:50)
- Files:
-
- 1 modified
-
pxe/dpysystem (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pxe/dpysystem
r693511a r2c8d924 22 22 error('System %s not defined' % sys.argv[1]) 23 23 24 print system.name 24 print 'Name:', system.name 25 25 26 for mac in MacAddress.objects.filter(system=system): 27 print 'Mac:', 26 28 for i in range(0, 10, 2): 27 29 sys.stdout.write('%s:' % mac.mac[i:i+2]) 28 30 sys.stdout.write('%s\n' % mac.mac[10:12]) 31 32 logs = Log.objects.filter(system=system).order_by('-date') 33 if len(logs) >= 1: 34 print 'Next boot:', logs[0].boot_name.name 35 36 print 'History:' 37 for l in logs[1:]: 38 print l.date, l.boot_name.name 29 39 30 40 # addsystem ends here
