Create a User Model
A User model gives a user access to sp. Users are identified by login IDs.
A User model gives a user access to
CA Spectrum. Users are identified by login IDs.
Before you start a CLI session, verify that the User Model is created and the
SpectroSERVERto connect is started.
Follow these steps:
- Connect to theSpectroSERVER.
You are connected to the$ cd <$SPECROOT>/vnmsh $ ./connectSpectroSERVER.
- Determine the model type handle for the model type you want to create using the show command. In this case, it is a model of type User. Enter this command:$ ./show types | grep UserA list of model types that include the string 'User' appears with the User model type listed first.The “./” is important. Some UNIX systems use the show command for reading email. If the “.” is not the first path in the users environment, then "./" are required.Handle Name Flags 0x10004 User V,I,D 0x1040a UserGroup V,I,D 0x1040f DefUserGroup V,I,N,U,R 0xaa000d GenSwUserPort V,I,D 0xf000d ForeUserAgen V,I,D 0xaf000c ForeUserApp V,I,D
- List the attributes using the show command for the User model type and determine the attribute ID for the model name attribute. You need this attribute ID to create the model. Enter this command:
A list of User model type attributes including the model name attribute appears.$ ./show attributes mth=0x10004 | grep -i nameId Name Type Flags 0x10000 Modeltype_Name Text String R,S,M 0x1006e Model_Name Text String R,W,G,O,M,D 0x10074 User_Full_Name Text String R,W,O,D 0x1155f gib_mtype_nameText String R,W,S,D 0x11560 gib_mtype_name_menu Text String R,W,S,D 0x11561 gib_model_name Text String R,W,D 0x11563 gib_model_name_menu Text String R,W,D 0x1197d WatchNames Tagged Octet R,W,D
- Create the model using the create command with model type handle, the attribute ID for the model name, and the value (the login ID name) for the user. In this example, the user login ID is j_doe. Enter this command:
A system message resembling the following command confirms that the model is created:$ ./create model mth=0x10004 attr=0x1006e,val=j_doecreated model handle = 0xbe0001bAll handles and IDs used in these examples are fictitious. The model handle for the model that you created is different; model handles are created by the system.