- Timestamp:
- Oct 12, 2009 3:15:15 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53417
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r23473 r23701 455 455 print " ID [n/a]: %s" %(mach.id) 456 456 print " OS Type [n/a]: %s" %(os.description) 457 print " Firmware [firmwareType]: %s" %(mach.firmwareType) 457 458 print 458 459 print " CPUs [CPUCount]: %d" %(mach.CPUCount) … … 471 472 print " VPID support [HWVirtExVPIDEnabled]: " + asState(mach.HWVirtExVPIDEnabled) 472 473 print " Hardware 3d acceleration[accelerate3DEnabled]: " + asState(mach.accelerate3DEnabled) 474 print " Hardware 2d video acceleration[accelerate2DVideoEnabled]: " + asState(mach.accelerate2DVideoEnabled) 473 475 print " Nested paging [HWVirtExNestedPagingEnabled]: " + asState(mach.HWVirtExNestedPagingEnabled) 474 476 print " Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000)) … … 482 484 print " %s %s bus: %d" % (controller.name, getControllerType(controller.controllerType), controller.bus) 483 485 484 disks = ctx['global'].getArray(mach, 'hardDiskAttachments')485 if disks:486 attaches = ctx['global'].getArray(mach, 'mediumAttachments') 487 if attaches: 486 488 print 487 print " Hard disk(s):" 488 for disk in disks: 489 print " Controller: %s port: %d device: %d:" % (disk.controller, disk.port, disk.device) 490 hd = disk.hardDisk 491 print " id: %s" %(hd.id) 492 print " location: %s" %(hd.location) 493 print " name: %s" %(hd.name) 494 print " format: %s" %(hd.format) 495 print 496 497 dvd = mach.DVDDrive 498 if dvd.getHostDrive(): 499 hdvd = dvd.getHostDrive() 500 print " DVD:" 501 print " Host disk: %s" %(hdvd.name) 502 print 503 504 if dvd.getImage(): 505 vdvd = dvd.getImage() 506 print " DVD:" 507 print " Image at: %s" %(vdvd.location) 508 print " Size: %s" %(vdvd.size) 509 print " Id: %s" %(vdvd.id) 510 print 511 512 floppy = mach.floppyDrive 513 if floppy.getHostDrive(): 514 hfloppy = floppy.getHostDrive() 515 print " Floppy:" 516 print " Host disk: %s" %(hfloppy.name) 517 print 518 519 if floppy.getImage(): 520 vfloppy = floppy.getImage() 521 print " Floppy:" 522 print " Image at: %s" %(vfloppy.location) 523 print " Size: %s" %(vfloppy.size) 524 print 489 print " Mediums:" 490 for a in attaches: 491 print " Controller: %s port: %d device: %d type: %s:" % (a.controller, a.port, a.device, a.type) 492 m = a.medium 493 if a.type == ctx['global'].constants.DeviceType_HardDisk: 494 print " HDD:" 495 print " id: %s" %(m.id) 496 print " location: %s" %(m.location) 497 print " name: %s" %(m.name) 498 print " format: %s" %(m.format) 499 500 if a.type == ctx['global'].constants.DeviceType_DVD: 501 print " DVD:" 502 if m: 503 print " Image at: %s" %(m.location) 504 print " Size: %s" %(m.size) 505 print " Id: %s" %(m.id) 506 507 if a.type == ctx['global'].constants.DeviceType_Floppy: 508 print " Floppy:" 509 if m: 510 print " Name: %s" %(m.name) 511 print " Image at: %s" %(m.location) 512 print " Size: %s" %(m.size) 525 513 526 514 return 0
Note:
See TracChangeset
for help on using the changeset viewer.