- Timestamp:
- Mar 11, 2022 4:55:03 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r94179 r94181 65 65 man_VBoxManage-adoptstate.xml \ 66 66 man_VBoxManage-closemedium.xml \ 67 man_VBoxManage-storagectl.xml 67 man_VBoxManage-storagectl.xml \ 68 man_VBoxManage-bandwidthctl.xml 68 69 69 70 ## List of user manual XML files. -
trunk/doc/manual/en_US/man_VBoxManage-bandwidthctl.xml
r92984 r94181 20 20 <refentry id="vboxmanage-bandwidthctl" lang="en"> 21 21 <refentryinfo> 22 <pubdate> September 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage bandwidthctl</title> 24 24 </refentryinfo> … … 32 32 <refname>VBoxManage-bandwidthctl</refname> 33 33 <refpurpose>manage bandwidth groups</refpurpose> 34 <refclass> Oracle VM VirtualBox</refclass>34 <refclass>&product-name;</refclass> 35 35 </refnamediv> 36 36 -
trunk/doc/manual/en_US/user_VBoxManage.xml
r94180 r94181 927 927 <xi:include href="user_man_VBoxManage-storagectl.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 928 928 929 <sect1 id="vboxmanage-bandwidthctl"> 930 931 <title>VBoxManage bandwidthctl</title> 932 933 <para> 934 This command creates, deletes, modifies, and shows bandwidth 935 groups of the given virtual machine. 936 </para> 937 938 <screen>VBoxManage bandwidthctl <uuid|vmname> 939 add <name> --type disk|network --limit <MBps>[k|m|g|K|M|G] | 940 set <name> --limit <MBps>[k|m|g|K|M|G] | 941 remove <name> | 942 list [--machinereadable]</screen> 943 944 <para> 945 The following subcommands are available: 946 </para> 947 948 <itemizedlist> 949 950 <listitem> 951 <para> 952 <command>add</command>: Creates a new bandwidth group of a 953 given type. 954 </para> 955 </listitem> 956 957 <listitem> 958 <para> 959 <command>set</command>: Modifies the limit for an existing 960 bandwidth group. 961 </para> 962 </listitem> 963 964 <listitem> 965 <para> 966 <command>remove</command>: Deletes a bandwidth group. 967 </para> 968 </listitem> 969 970 <listitem> 971 <para> 972 <command>list</command>: Shows all bandwidth groups defined 973 for the given VM. Use the 974 <computeroutput>--machinereadable</computeroutput> option to 975 produce the same output, but in machine readable format. This 976 is of the form: name="value" on a line by line basis. 977 </para> 978 </listitem> 979 980 </itemizedlist> 981 982 <para> 983 The parameters are as follows: 984 </para> 985 986 <variablelist> 987 988 <varlistentry> 989 <term> 990 <computeroutput>uuid|vmname</computeroutput> 991 </term> 992 993 <listitem> 994 <para> 995 The VM UUID or VM Name. Mandatory. 996 </para> 997 </listitem> 998 </varlistentry> 999 1000 <varlistentry> 1001 <term> 1002 <computeroutput>--name</computeroutput> 1003 </term> 1004 1005 <listitem> 1006 <para> 1007 Name of the bandwidth group. Mandatory. 1008 </para> 1009 </listitem> 1010 </varlistentry> 1011 1012 <varlistentry> 1013 <term> 1014 <computeroutput>--type</computeroutput> 1015 </term> 1016 1017 <listitem> 1018 <para> 1019 Type of the bandwidth group. Mandatory. Two types are 1020 supported: <computeroutput>disk</computeroutput> and 1021 <computeroutput>network</computeroutput>. See 1022 <xref linkend="storage-bandwidth-limit" /> or 1023 <xref linkend="network_bandwidth_limit" /> for the 1024 description of a particular type. 1025 </para> 1026 </listitem> 1027 </varlistentry> 1028 1029 <varlistentry> 1030 <term> 1031 <computeroutput>--limit</computeroutput> 1032 </term> 1033 1034 <listitem> 1035 <para> 1036 Specifies the limit for the given bandwidth group. This can 1037 be changed while the VM is running. The default unit is 1038 megabytes per second. The unit can be changed by specifying 1039 one of the following suffixes: 1040 <computeroutput>k</computeroutput> for kilobits per second, 1041 <computeroutput>m</computeroutput> for megabits per second, 1042 <computeroutput>g</computeroutput> for gigabits per second, 1043 <computeroutput>K</computeroutput> for kilobytes per second, 1044 <computeroutput>M</computeroutput> for megabytes per second, 1045 <computeroutput>G</computeroutput> for gigabytes per second. 1046 </para> 1047 </listitem> 1048 </varlistentry> 1049 1050 </variablelist> 1051 1052 <note> 1053 <para> 1054 The network bandwidth limits apply only to the traffic being 1055 sent by virtual machines. The traffic being received by VMs is 1056 unlimited. 1057 </para> 1058 </note> 1059 1060 <note> 1061 <para> 1062 To remove a bandwidth group it must not be referenced by any 1063 disks or adapters in the running VM. 1064 </para> 1065 </note> 1066 1067 </sect1> 929 <xi:include href="user_man_VBoxManage-bandwidthctl.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1068 930 1069 931 <sect1 id="vboxmanage-showmediuminfo"> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94179 r94181 252 252 #endif 253 253 { "extpack", USAGE_S_NEWCMD, HELP_CMD_EXTPACK, handleExtPack, 0 }, 254 { "bandwidthctl", USAGE_ BANDWIDTHCONTROL, VBMG_CMD_TODO, handleBandwidthControl, 0 },254 { "bandwidthctl", USAGE_S_NEWCMD, HELP_CMD_BANDWIDTHCTL, handleBandwidthControl, 0 }, 255 255 { "debugvm", USAGE_S_NEWCMD, HELP_CMD_DEBUGVM, handleDebugVM, 0 }, 256 256 { "convertfromraw", USAGE_CONVERTFROMRAW, VBMG_CMD_TODO, handleConvertFromRaw, VBMG_CMD_F_NO_COM }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94179 r94181 132 132 USAGE_I_SETHDPARENTUUID, 133 133 USAGE_I_PASSWORDHASH, 134 USAGE_BANDWIDTHCONTROL,135 134 USAGE_I_GUESTSTATS, 136 135 USAGE_I_REPAIRHD, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageBandwidthControl.cpp
r93705 r94181 109 109 }; 110 110 111 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_ADD); 111 112 112 113 Bstr name(a->argv[2]); … … 158 159 default: 159 160 { 160 errorGetOpt( USAGE_BANDWIDTHCONTROL,c, &ValueUnion);161 errorGetOpt(c, &ValueUnion); 161 162 rc = E_FAIL; 162 163 break; … … 196 197 }; 197 198 199 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_SET); 198 200 199 201 Bstr name(a->argv[2]); … … 229 231 default: 230 232 { 231 errorGetOpt( USAGE_BANDWIDTHCONTROL,c, &ValueUnion);233 errorGetOpt(c, &ValueUnion); 232 234 rc = E_FAIL; 233 235 break; … … 258 260 static RTEXITCODE handleBandwidthControlRemove(HandlerArg *a, ComPtr<IBandwidthControl> &bwCtrl) 259 261 { 262 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_REMOVE); 263 260 264 Bstr name(a->argv[2]); 261 265 CHECK_ERROR2I_RET(bwCtrl, DeleteBandwidthGroup(name.raw()), RTEXITCODE_FAILURE); … … 276 280 }; 277 281 282 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_LIST); 278 283 VMINFO_DETAILS enmDetails = VMINFO_STANDARD; 279 284 … … 290 295 break; 291 296 default: 292 return errorGetOpt( USAGE_BANDWIDTHCONTROL,c, &ValueUnion);297 return errorGetOpt(c, &ValueUnion); 293 298 } 294 299 } … … 313 318 314 319 if (a->argc < 2) 315 return errorSyntax( USAGE_BANDWIDTHCONTROL,BWControl::tr("Too few parameters"));320 return errorSyntax(BWControl::tr("Too few parameters")); 316 321 else if (a->argc > 7) 317 return errorSyntax( USAGE_BANDWIDTHCONTROL,BWControl::tr("Too many parameters"));322 return errorSyntax(BWControl::tr("Too many parameters")); 318 323 319 324 /* try to find the given machine */ … … 356 361 else 357 362 { 358 errorSyntax( USAGE_BANDWIDTHCONTROL,BWControl::tr("Invalid parameter '%s'"), a->argv[1]);363 errorSyntax(BWControl::tr("Invalid parameter '%s'"), a->argv[1]); 359 364 rc = E_FAIL; 360 365 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94179 r94181 625 625 "\n", SEP); 626 626 627 if (enmCommand == USAGE_BANDWIDTHCONTROL || enmCommand == USAGE_S_ALL)628 RTStrmPrintf(pStrm,629 "%s bandwidthctl %s <uuid|vmname>\n"630 " add <name> --type disk|network\n"631 " --limit <megabytes per second>[k|m|g|K|M|G] |\n"632 " set <name>\n"633 " --limit <megabytes per second>[k|m|g|K|M|G] |\n"634 " remove <name> |\n"635 " list [--machinereadable]\n"636 " (limit units: k=kilobit, m=megabit, g=gigabit,\n"637 " K=kilobyte, M=megabyte, G=gigabyte)\n"638 "\n", SEP);639 640 627 if (enmCommand == USAGE_SHOWMEDIUMINFO || enmCommand == USAGE_S_ALL) 641 628 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.