VirtualBox

Changeset 24586 in vbox for trunk


Ignore:
Timestamp:
Nov 11, 2009 3:12:43 PM (15 years ago)
Author:
vboxsync
Message:

Python shell: more teleportation (info, password)

File:
1 edited

Legend:

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

    r24581 r24586  
    472472def listCmd(ctx, args):
    473473    for m in getMachines(ctx, True):
    474         print "Machine '%s' [%s], state=%s" %(m.name,m.id,m.sessionState)
     474        if m.teleporterEnabled:
     475            tele = "[T] "
     476        else:
     477            tele = "    "
     478        print "%sMachine '%s' [%s], state=%s" %(tele,m.name,m.id,m.sessionState)
    475479    return 0
    476480
     
    515519    print "  Machine status [n/a]: %d" % (mach.sessionState)
    516520    print
     521    if mach.teleporterEnabled:
     522        print "  Teleport target on port %d (%s)" %(mach.teleporterPort, mach.teleporterPassword)
     523    print
    517524    bios = mach.BIOSSettings
    518525    print "  ACPI [BIOSSettings.ACPIEnabled]: %s" %(asState(bios.ACPIEnabled))
     
    698705    else:
    699706        passwd = ""
    700     if not mach.teleporterEnabled or mach.teleporterPort != port:
     707    if not mach.teleporterEnabled or mach.teleporterPort != port or passwd:
    701708        session = ctx['global'].openMachineSession(mach.id)
    702709        mach1 = session.machine
    703710        mach1.teleporterEnabled = True
    704711        mach1.teleporterPort = port
     712        mach1.teleporterPassword = passwd
    705713        mach1.saveSettings()
    706714        session.close()
Note: See TracChangeset for help on using the changeset viewer.

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