Changeset 10412 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jul 9, 2008 12:40:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r10396 r10412 285 285 { 286 286 RTPrintf("VBoxManage list vms|runningvms|ostypes|hostdvds|hostfloppies|\n"); 287 RTPrintf(" "); 287 288 if (fWin) 288 289 RTPrintf( "hostifs|"); 289 RTPrintf( " hdds|dvds|floppies|usbhost|usbfilters|\n"290 " systemproperties\n"290 RTPrintf( "hostinfo|hdds|dvds|floppies|\n" 291 " usbhost|usbfilters|systemproperties\n" 291 292 "\n"); 292 293 } … … 1026 1027 RTTimeSpecSetMilli(&timeSpec, stateSince); 1027 1028 char pszTime[30] = {0}; 1028 RTTimeSpecToString(&timeSpec, pszTime, 30);1029 RTTimeSpecToString(&timeSpec, pszTime, sizeof(pszTime)); 1029 1030 if (details == VMINFO_MACHINEREADABLE) 1030 1031 { … … 2695 2696 #endif /* RT_OS_WINDOWS */ 2696 2697 else 2698 if (strcmp(argv[0], "hostinfo") == 0) 2699 { 2700 ComPtr<IHost> Host; 2701 CHECK_ERROR (virtualBox, COMGETTER(Host)(Host.asOutParam())); 2702 2703 RTPrintf("Host Information:\n\n"); 2704 2705 LONG64 uTCTime = 0; 2706 CHECK_ERROR (Host, COMGETTER(UTCTime)(&uTCTime)); 2707 RTTIMESPEC timeSpec; 2708 RTTimeSpecSetMilli(&timeSpec, uTCTime); 2709 char pszTime[30] = {0}; 2710 RTTimeSpecToString(&timeSpec, pszTime, sizeof(pszTime)); 2711 RTPrintf("Host time: %s\n", pszTime); 2712 2713 ULONG processorCount = 0; 2714 CHECK_ERROR (Host, COMGETTER(ProcessorCount)(&processorCount)); 2715 RTPrintf("Processor count: %lu\n", processorCount); 2716 ULONG processorSpeed = 0; 2717 Bstr processorDescription; 2718 for (ULONG i = 0; i < processorCount; i++) 2719 { 2720 CHECK_ERROR (Host, COMGETTER(ProcessorSpeed)(i, &processorSpeed)); 2721 if (processorSpeed) 2722 RTPrintf("Processor#%u speed: %lu MHz\n", i, processorSpeed); 2723 else 2724 RTPrintf("Processor#%u speed: unknown\n", i, processorSpeed); 2725 #if 0 /* not yet implemented in Main */ 2726 CHECK_ERROR (Host, COMGETTER(ProcessorDescription)(i, processorDescription.asOutParam())); 2727 RTPrintf("Processor#%u description: %lS\n", i, processorDescription.raw()); 2728 #endif 2729 } 2730 2731 #if 0 /* not yet implemented in Main */ 2732 ULONG memorySize = 0; 2733 CHECK_ERROR (Host, COMGETTER(MemorySize)(&memorySize)); 2734 RTPrintf("Memory size: %lu MByte\n", memorySize); 2735 2736 ULONG memoryAvailable = 0; 2737 CHECK_ERROR (Host, COMGETTER(MemoryAvailable)(&memoryAvailable)); 2738 RTPrintf("Memory available: %lu MByte\n", memoryAvailable); 2739 2740 Bstr operatingSystem; 2741 CHECK_ERROR (Host, COMGETTER(OperatingSystem)(operatingSystem.asOutParam())); 2742 RTPrintf("Operating system: %lS\n", operatingSystem.raw()); 2743 2744 Bstr oSVersion; 2745 CHECK_ERROR (Host, COMGETTER(OSVersion)(oSVersion.asOutParam())); 2746 RTPrintf("Operating system version: %lS\n", oSVersion.raw()); 2747 #endif 2748 } 2749 else 2697 2750 if (strcmp(argv[0], "hdds") == 0) 2698 2751 {
Note:
See TracChangeset
for help on using the changeset viewer.