VirtualBox

Ignore:
Timestamp:
Apr 22, 2010 6:54:18 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60462
Message:

python shell: bits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r28606 r28614  
    617617    if mach.audioAdapter.enabled:
    618618        print "  Audio [via audioAdapter]: chip %s; host driver %s" %(asEnumElem(ctx,"AudioControllerType", mach.audioAdapter.audioController), asEnumElem(ctx,"AudioDriverType",  mach.audioAdapter.audioDriver))
     619    if mach.USBController.enabled:
     620        print "  USB [via USBController]: high speed %s" %(asState(mach.USBController.enabledEhci))
    619621    print "  CPU hotplugging [CPUHotPlugEnabled]: %s" %(asState(mach.CPUHotPlugEnabled))
    620622
     
    10011003   host = ctx['vb'].host
    10021004   cnt = host.processorCount
    1003    print "Processor count:",cnt
     1005   print "Processors available/online: %d/%d " %(cnt,host.processorOnlineCount)
    10041006   for i in range(0,cnt):
    10051007      print "Processor #%d speed: %dMHz %s" %(i,host.getProcessorSpeed(i), host.getProcessorDescription(i))
     
    10181020   print "DVD drives:"
    10191021   for dd in ctx['global'].getArray(host, 'DVDDrives'):
     1022       print "  %s - %s" %(dd.name, dd.description)
     1023
     1024   print "Floppy drives:"
     1025   for dd in ctx['global'].getArray(host, 'floppyDrives'):
    10201026       print "  %s - %s" %(dd.name, dd.description)
    10211027
     
    12411247        print "usage: exportVm <machine> <path> <format> <license>"
    12421248        return 0
    1243     mach = ctx['machById'](args[1])
     1249    mach = argsToMach(ctx,args)
    12441250    if mach is None:
    12451251        return 0
     
    14371443        print "usage: typeGuest <machine> <text> <charDelay>"
    14381444        return 0
    1439     mach = ctx['machById'](args[1])
     1445    mach =  argsToMach(ctx,args)
    14401446    if mach is None:
    14411447        return 0
     
    15411547      return 0
    15421548
    1543    mach = ctx['machById'](args[1])
     1549   mach = argsToMach(ctx,args)
    15441550   if mach is None:
    15451551        return 0
     
    15721578      return 0
    15731579
    1574    mach = ctx['machById'](args[1])
     1580   mach = argsToMach(ctx,args)
    15751581   if mach is None:
    15761582        return 0
     
    16861692      return 0
    16871693
    1688    mach = ctx['machById'](args[1])
     1694   mach = argsToMach(ctx,args)
    16891695   if mach is None:
    16901696        return 0
     
    17061712      return 0
    17071713
    1708    mach = ctx['machById'](args[1])
     1714   mach =  argsToMach(ctx,args)
    17091715   if mach is None:
    17101716        return 0
     
    17251731      return 0
    17261732
    1727    mach = ctx['machById'](args[1])
     1733   mach = argsToMach(ctx,args)
    17281734   if mach is None:
    17291735        return 0
     
    17481754      return 0
    17491755
    1750    mach = ctx['machById'](args[1])
     1756   mach = argsToMach(ctx,args)
    17511757   if mach is None:
    17521758        return 0
     
    17791785       type = None
    17801786
    1781    mach = ctx['machById'](args[1])
     1787   mach = argsToMach(ctx,args)
    17821788   if mach is None:
    17831789        return 0
     
    17951801      return 0
    17961802
    1797    mach = ctx['machById'](args[1])
     1803   mach = argsToMach(ctx,args)
    17981804   if mach is None:
    17991805        return 0
     
    18411847            'sleep':['Sleep for specified number of seconds: sleep 3.14159', sleepCmd, 0],
    18421848            'shell':['Execute external shell command: shell "ls /etc/rc*"', shellCmd, 0],
    1843             'exportVm':['Export VM in OVF format: export Win /tmp/win.ovf', exportVMCmd, 0],
     1849            'exportVm':['Export VM in OVF format: exportVm Win /tmp/win.ovf', exportVMCmd, 0],
    18441850            'screenshot':['Take VM screenshot to a file: screenshot Win /tmp/win.png 1024 768', screenshotCmd, 0],
    18451851            'teleport':['Teleport VM to another box (see openportal): teleport Win anotherhost:8000 <passwd> <maxDowntime>', teleportCmd, 0],
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette