- Timestamp:
- Mar 12, 2022 7:57:40 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r94203 r94204 73 73 man_VBoxManage-encryptmedium.xml \ 74 74 man_VBoxManage-checkmediumpwd.xml \ 75 man_VBoxManage-convertfromraw.xml 75 man_VBoxManage-convertfromraw.xml \ 76 man_VBoxManage-setextradata.xml \ 77 man_VBoxManage-getextradata.xml 76 78 77 79 ## List of user manual XML files. -
trunk/doc/manual/en_US/man_VBoxManage-getextradata.xml
r89919 r94204 33 33 <refpurpose>view keyword values that are associated with a virtual machine or 34 34 configuration</refpurpose> 35 <refclass> Oracle VM VirtualBox</refclass>35 <refclass>&product-name;</refclass> 36 36 </refnamediv> 37 37 -
trunk/doc/manual/en_US/man_VBoxManage-setextradata.xml
r82969 r94204 20 20 <refentry id="vboxmanage-setextradata" lang="en"> 21 21 <refentryinfo> 22 <pubdate> August 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage setextradata</title> 24 24 </refentryinfo> … … 33 33 <refpurpose>set a keyword value that is associated with a virtual machine or 34 34 configuration</refpurpose> 35 <refclass> Oracle VM VirtualBox</refclass>35 <refclass>&product-name;</refclass> 36 36 </refnamediv> 37 37 -
trunk/doc/manual/en_US/user_VBoxManage.xml
r94203 r94204 1101 1101 <xi:include href="user_man_VBoxManage-mediumio.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1102 1102 1103 <sect1 id="vboxmanage-extradata"> 1104 1105 <title>VBoxManage getextradata/setextradata</title> 1106 1107 <para> 1108 These commands enable you to attach and retrieve string data for a 1109 virtual machine or for an &product-name; configuration, by 1110 specifying <computeroutput>global</computeroutput> instead of a 1111 virtual machine name. You must specify a keyword as a text string 1112 to associate the data with, which you can later use to retrieve 1113 it. For example: 1114 </para> 1115 1116 <screen>VBoxManage setextradata Fedora5 installdate 2006.01.01 1117 VBoxManage setextradata SUSE10 installdate 2006.02.02</screen> 1118 1119 <para> 1120 This example would associate the string "2006.01.01" with the 1121 keyword installdate for the virtual machine Fedora5, and 1122 "2006.02.02" on the machine SUSE10. You could then retrieve the 1123 information as follows: 1124 </para> 1125 1126 <screen>VBoxManage getextradata Fedora5 installdate</screen> 1127 1128 <para> 1129 This would return the following: 1130 </para> 1131 1132 <screen>VirtualBox Command Line Management Interface Version <replaceable>version-number</replaceable> 1133 (C) 2005-2018 Oracle Corporation 1134 All rights reserved. 1135 1136 Value: 2006.01.01</screen> 1137 1138 <para> 1139 You could retrieve the information for all keywords as follows: 1140 </para> 1141 1142 <screen>VBoxManage getextradata Fedora5 enumerate</screen> 1143 1144 <para> 1145 To remove a keyword, the <command>setextradata</command> command 1146 must be run without specifying data, only the keyword. For 1147 example: 1148 </para> 1149 1150 <screen>VBoxManage setextradata Fedora5 installdate</screen> 1151 1152 </sect1> 1103 <xi:include href="user_man_VBoxManage-setextradata.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1104 1105 <xi:include href="user_man_VBoxManage-getextradata.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1153 1106 1154 1107 <sect1 id="vboxmanage-setproperty"> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94203 r94204 226 226 { "showvdiinfo", USAGE_S_NEWCMD,HELP_CMD_SHOWMEDIUMINFO, handleShowMediumInfo, 0 }, /* backward compatibility */ 227 227 { "mediumio", USAGE_S_NEWCMD, HELP_CMD_MEDIUMIO, handleMediumIO, 0 }, 228 { "getextradata", USAGE_ GETEXTRADATA, VBMG_CMD_TODO, handleGetExtraData, 0 },229 { "setextradata", USAGE_S ETEXTRADATA, VBMG_CMD_TODO, handleSetExtraData, 0 },228 { "getextradata", USAGE_S_NEWCMD, HELP_CMD_GETEXTRADATA, handleGetExtraData, 0 }, 229 { "setextradata", USAGE_S_NEWCMD, HELP_CMD_SETEXTRADATA, handleSetExtraData, 0 }, 230 230 { "setproperty", USAGE_SETPROPERTY, VBMG_CMD_TODO, handleSetProperty, 0 }, 231 231 { "usbfilter", USAGE_USBFILTER, VBMG_CMD_TODO, handleUSBFilter, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94203 r94204 101 101 USAGE_CREATEHOSTIF, 102 102 USAGE_REMOVEHOSTIF, 103 USAGE_GETEXTRADATA,104 USAGE_SETEXTRADATA,105 103 USAGE_SETPROPERTY, 106 104 USAGE_USBFILTER, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94203 r94204 639 639 "\n", SEP); 640 640 641 if (enmCommand == USAGE_GETEXTRADATA || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s getextradata %s global|<uuid|vmname>\n"644 " <key>|[enumerate]\n"645 "\n", SEP);646 647 if (enmCommand == USAGE_SETEXTRADATA || enmCommand == USAGE_S_ALL)648 RTStrmPrintf(pStrm,649 "%s setextradata %s global|<uuid|vmname>\n"650 " <key>\n"651 " [<value>] (no value deletes key)\n"652 "\n", SEP);653 654 641 if (enmCommand == USAGE_SETPROPERTY || enmCommand == USAGE_S_ALL) 655 642 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r94172 r94204 824 824 825 825 if (a->argc > 2 || a->argc < 1) 826 return errorSyntax( USAGE_GETEXTRADATA,Misc::tr("Incorrect number of parameters"));826 return errorSyntax(Misc::tr("Incorrect number of parameters")); 827 827 828 828 /* global data? */ … … 903 903 904 904 if (a->argc < 2) 905 return errorSyntax( USAGE_SETEXTRADATA,Misc::tr("Not enough parameters"));905 return errorSyntax(Misc::tr("Not enough parameters")); 906 906 907 907 /* global data? */ … … 916 916 Bstr(a->argv[2]).raw())); 917 917 else 918 return errorSyntax( USAGE_SETEXTRADATA,Misc::tr("Too many parameters"));918 return errorSyntax(Misc::tr("Too many parameters")); 919 919 } 920 920 else … … 938 938 Bstr(a->argv[2]).raw())); 939 939 else 940 return errorSyntax( USAGE_SETEXTRADATA,Misc::tr("Too many parameters"));940 return errorSyntax(Misc::tr("Too many parameters")); 941 941 } 942 942 }
Note:
See TracChangeset
for help on using the changeset viewer.