Reference Guide
36 Lifecycle Controller Web Services Interface Guide for Linux
NOTE: The profile defines this property as a string array of type octet string. In this implementation, the
password is a string of type clear text. The security concern is resolved by transmission of this information
only through secure HTTPS communication.
Profiles:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1034_1.0.1.pdf
http://www.dmtf.org/sites/default/files/standards/documents/DSP1039_1.0.0.pdf
See Section 5.5.1 for an implementation example.
5.5.3 Modify Account State (using DMTF Model)
When the account setting capability allows, the user account may be enabled or disabled by invoking the
RequestStateChange() method of the CIM_Account class instance. The invoke operation requires an
instance reference. The instance reference may be retrieved by adding EnumerateEPR mode to
enumerate or get of the class.
Profiles:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1034_1.0.1.pdf
http://www.dmtf.org/sites/default/files/standards/documents/DSP1039_1.0.0.pdf
Replace “DCIM User 16” with the applicable user name and “2” with the desired request state.
Invoke RequestStateChange() with the following parameters and syntax:
EXAMPLE:
wsman invoke -a RequestStateChange
"http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/DCIM_MFAAccount?__cimnamespa
ce=root/dcim,SystemCreationClassName=DCIM_SPComputerSyste,
CreationClassName=DCIM_MFAAccount,SystemName=Systemmc,Name=DCIM User 16"
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-k RequestedState=2
-j utf-8 -y basic
OUTPUT:
<n1:RequestStateChange_OUTPUT>
<n1:Job xsi:nil="true"/>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:RequestStateChange_OUTPUT>
Response status other than zero indicates an error has occurred and a message may be displayed.
5.5.4 Modify User Privilege (using DMTF Model)
When the account setting capability allows, the user account privileges may be modified by running a
set() operation on the ActivityQualifiers property of the CIM_Privilege class instance associated with the
CIM_Account class instance. The set() operation requires an instance reference. The instance reference
may be retrieved by adding EnumerateEPR mode to enumerate or get of the class.
The profile defines this property as string array containing all the privileges to be allowed for the account.
Setting the list of privileges is a complete over-write of the earlier setting. This restriction is a limitation
where the protocol does not define how to set a particular index in the list. The new list will replace the
earlier list in its entirety.
Profiles:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1034_1.0.1.pdf
http://www.dmtf.org/sites/default/files/standards/documents/DSP1039_1.0.0.pdf