Dell PowerStore 1000T EMC PowerStore CLI Guide - Page 7
Object types, Object qualifiers, Actions, Action qualifiers, Example 1
View all Dell PowerStore 1000T manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 7 highlights
View the switches provides details on all available switches. Object types Object types identify the type of entity on which to perform an action, such as a local_user, host, volume, or cluster. All actions require an object type. The one exception is the -help switch, which can be used without an object type. Get help explains how to use the -help switch. The object instance on which you perform an action is designated by an identifier that is called an object qualifier, as explained in Object qualifiers. Example 1 In the following example for creating a user, the object type is local_user: pstcli -d 10.0.0.1 -u admin -p MyPassword456! local_user create -name user1 -password Password789! -role_id operator Example 2 The following example for viewing all user accounts on the system shows that the object type is also local_user. An object identifier is not specified, so the show action displays a list of all user accounts: pstcli -d 10.0.0.1 -u admin -p MyPassword456! local_user show Object qualifiers Object qualifiers are unique identifiers for objects on the system. Object qualifiers are displayed in the following format: • -id • -name All object types have identifiers that can be used as qualifiers to specify a unique object instance. Some object types have names. For object types that have names, the name qualifier can be used as an alternate to the ID qualifier. When you create an object, such as a user or network interface, it receives an ID, which is the primary object qualifier for that object. The uniqueness of the ID is only guaranteed in the scope of the specified object type. When performing actions such as viewing, modifying, or deleting an object, you specify an object qualifier. All object qualifiers start with a hyphen (-). Example In the following example for changing the password of a user account, the object type is local_user, and the qualifier that is used is name, with a value of operator: pstcli -d 10.0.0.1 -u admin -p MyPassword456! local_user -name operator set -password NewPassword123! -current_password MyPassword456! Actions Actions are the operations that are performed on an object instance or object type, including creating, modifying, viewing, and deleting. Actions are always required. Action commands provides details on each of the action commands. Example In the following example for changing the password of a user account, the action is set: pstcli -d 10.0.0.1 -u admin -p MyPassword456! local_user -name operator set -password NewPassword456! -current_password OldPassword456! Action qualifiers Action qualifiers are parameters specific to actions, such as attributes or settings to modify when changing an object. All action qualifiers start with a hyphen (-). Introduction 7