How do I pass in an array of references to cimcli?
"Hwang, Johnny" <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <59187A369D10D048A8A8B52B1BD1FEA507E340FC@SACEXCMBX02-PRD.hq.netapp.com> |
I'm using Pegasus 2.11.1 with Bug 9007 patch http://bugzilla.openpegasus.org/show_bug.cgi?id=9007
This is what I need to pass:
Description ("The list of Identities to assign privilege to share")
: Translatable] reference Identities[],
This is what I'm trying to do:
[root@smis-rhel5x64-07 ~]# cimcli -n root/ontap im 'ONTAP_FileExportService.CreationClassName="ONTAP_FileExportService",Name="ONTAP File Export Service",SystemCreationClassName="ONTAP_StorageSystem",SystemName="ONTAP:12345"' AssignPrivilegeToExportedShare Identities={ 'ONTAP_Identity.InstanceID="ONTAP:12345:NETAPP\\user1"' 'ONTAP_Identity.InstanceID="ONTAP:12345:NETAPP\\user2"'}
/usr/ontap/smis/pegasus/bin/cimcli Pegasus Exception: The CIM name is not valid: ONTAP_Identity.InstanceID="ONTAP:12345:NETAPP\\user1". Cmd = im Object = ONTAP_FileExportService.CreationClassName="ONTAP_FileExportService",Name="ONTAP File Export Service",SystemCreationClassName="ONTAP_StorageSystem",SystemName="ONTAP:12345"
WARNING: Expected exit code 0. Program delivered exit code (50) Pegasus Exception
How do I pass an array reference as a parameter properly?