RE: How do I pass in an array of references to cimcli?
"Kandepu, Anusha" <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <BE12E5A23C3D7F45AFEC46E5CC6F2CE4C75E@G2W2535.americas.hpqcorp.net> |
Hi Johnny ,
Please refer the below mentioned documentation for cimcli references operation .
http://cvs.opengroup.org/cgi-bin/viewcvs.cgi/pegasus/src/Clients/cimcli/doc/cimcli.txt
Regards,
Anusha
From: Hwang, Johnny [mailto:[email protected]]
Sent: Tuesday, June 12, 2012 5:50 AM
To: [email protected]
Subject: How do I pass in an array of references to cimcli?
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?