Question & Answer
Question
I have a NIM Master but I've never setup CEC or VIO's objects to use with NIM. How do I do that?
Answer
Tested Environments:
AIX: 7200-01-03 & AIX 7100-04-04
HMC: 7.7.9.0 SP3 & 8.8.6.0 SP2
VIO: 2.2.3.50 & 2.2.2.2
DSM Requisite Filesets:
expect.base
Java6.sdk, (On 7100-04-04)
Java7_64.jre (On 7200-01-03)
tcl.base
tk.base
Configuring DSM:
In this documented example, the following filesystems were previously created on the NIM Master:
/export/spot
/export/lpp_source
/export/mksysb
I created a directory named "passwd_file" under /export and then ran the following command to create my encrypted password file.
dpasswd -f /export/passwd_file/<file name> -U <hmc User ID>
You will be prompted for the HMC password. After authentication, an encrypted password will be created in /export/passwd_file/<file name>.
Now, we can define the management resources. We must start with the HMC.
From the command line:
nim -o define -t hmc -a passwd_file=/export/passwd_file/<file name> -a if1="master_net hmc hostname 0" <resource name>
From smitty:
smitty nim_mkmgmt_obj
>>pick hmc
>>enter your hmc hostname
>>* Management Object Name [resource name]
* Password File [/export/passwd/<file name>]
Primary Network Install Interface
* NIM Network [master_net]
* Host Name hmc hostname
Hit enter and it should come back to "OK" status
Next, we need to start getting the names to the managed systems on the HMC. You get that information by logging on to the HMC GUI and copying the Systems Management --> Servers --> <Server information>.
Once you get that information, run the smitty nim_mkmgmt_obj command again to define the managed machines.
From the command line:
nim -o define -t cec -a hw_type=<4 digit machine type> -a hw_model=<3 digit model type> -a hw_serial=<HW serial number> -a mgmt_source=<hmc resource name> <resource name>
From smitty:
smitty nim_mkmgmt_obj
>>pick cec
>>* Management Object Name [resource name]
* Hardware Type [Enter the 4 digits of the type]
* Hardware Model [Enter the 3 digits of the model]
* Hardware Serial [Enter the Serial Number, (do not enter
the SN; just the numbers and letters)]
* Management Source [Hit F4 and select you HMC]
Hit enter and it should come back to "OK" status
Next, define your VIO server as a managed object.
From the command line:
nim -o define -t vios -a if1="master_net VIO hostname 0 ent0" -a mgmt_source=<CEC resource name> -a identity=<Partition ID> <resource name>
From smitty:
smitty nim_mkmgmt_obj
>>pick vios
>>enter your hostname
>>* Management Object Name [enter your resource name]
* Management Source [Hit F4 and select your cec or
managed system]
* Identity [This will be the number of the
partition ID on the hmc]
Primary Network Install Interface
* NIM Network [master_net]
* Host Name hostname
Hit enter and it should come back to "OK" status
Now, you can create a
backupios
image on your NIM master.From the command line:
nim -o define -t ios_mksysb -a server=master -a location=/export/mksysb/<file name> -a mk_image=yes -a source=<VIO resource name> <resource name>
From smitty:
smitty nim_mkres
>>pick ios_mksysb
>>* Resource Name [resoure name]
* Resource Type ios_mksysb
* Server of Resource [master]
* Location of Resource [/path where we want the backupios
image resides]
CREATE system backup image? yes
NIM CLIENT to backup [vio name]
If you get a connection failed message, you need to run the remote_management command on the VIO server to establish a NIM connection between the NIM master and NIM client.
On the VIO server:
remote_management -interface <en#> <NIM Master name>
[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"7.1;7.2","Edition":"Enterprise","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Was this topic helpful?
Document Information
Modified date:
15 September 2021
UID
isg3T1026058