passwd_file = /export/hmc/hmc_passwd mgmt_port = 12443 if1 = vlan2230 hmc01 0 Cstate = ready for a NIM operation prev_state = Mstate = currently running # dkeyexch -f /export/hmc/hmc_passwd -I hmc -H hmc01 OpenSSH_7.5p1, OpenSSL 1.0.2r 26 Feb 2019 

## Defining the CEC 

The CEC is a device that represents your managed system. To define this object, you must already have defined the HMC object. To generate the CEC object, you can either use the nimquery  command to create automatically the object for you or manually obtain the CEC name, hardware type, hardware model, and serial number. 

## Using nimquery to define an object 

To define the CEC object in one step, run the nimquery -a hmc=hcmObjectName -d  command. 

This command discovers all managed systems that are attached to the HMC, registers them as CEC management class objects, and automatically names them. Example 1-31 demonstrates this function and the resultant objects that are defined in NIM. 

# nimquery -a hmc=hmc01 -d ... Output truncated... /usr/sbin/nim -o define -t cec -a hw_serial=214423W -a hw_type=8286 -a hw_model=41A -a mgmt_source=hmc01 -a comments="object defined using nimquery -d" 8286-41A_214423W /usr/sbin/nim -o define -t cec -a hw_serial=213C93A -a hw_type=8247 -a hw_model=21L -a mgmt_source=hmc01 -a comments="object defined using nimquery -d" 8247-21L_213C93A /usr/sbin/nim -o define -t cec -a hw_serial=212B8BW -a hw_type=8286 -a hw_model=41A -a mgmt_source=hmc01 -a comments="object defined using nimquery -d" 8286-41A_212B8BW # lsnim -t cec 8286-41A_214423W management cec 8247-21L_213C93A management cec 8286-41A_212B8BW management cec 

## Manually defining objects 

An alternative to using the nimquery  command to define the CEC management object is to define manually the object by using the following command: 

# nim -o define -t cec -a hw_serial=cecSerialNumber \ -a hw_type=cecType -a hw_model=cecModel \ -a mgmt_source=hmcObject cecName 

To define the object manually, you must obtain the CEC serial number, the hardware type, hardware model, name of the HMC object that you created, and the object name of the CEC object that you want to define. 

