#2547 Copy values for keys to corresponding properties

New_Feature
open
2
2013-02-08
2012-10-03
No

It would improve ease of use if wbemcli used the values specified for the keys of a class for the corresponding properties if not specified otherwise. Here's an example from the current manpage:

wbemcli ci 'http://localhost:5988/root/cimv2:TST_InstanceProperties.CreationClassName="TST_InstanceProperties",Id="Instance #2"' 'CreationClassName="TST_InstanceProperties",Id="Instance #2",Property_string2="This is instance#2",Property_uint8=250'

Since the keys are also properties, it could be simplified as:

wbemcli ci 'http://localhost:5988/root/cimv2:TST_InstanceProperties.CreationClassName="TST_InstanceProperties",Id="Instance #2"' Property_string2="This is instance#2",Property_uint8=250'

There's no specific requirement or target for this.

Discussion

  • Dave Heller
    Dave Heller
    2012-10-04

    A similar streamlining could be done for ei output, in cases where key properties are repeated in the COP portion of the output and the following properties list. The only problem is, it would not be backward compatible for users expecting the redundant output. To solve this a new cmdline option, such as "-normalizeoutput", could be introduced to request the optimized output.