Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create AIX profile with mksyscfg and virtual_fc_adapters

Status
Not open for further replies.

tektipsaix

Technical User
Mar 4, 2011
31
ZA
Hi All

I use the following script to create a LPAR profile, but cannot seem to find the correct combination of quotes or double quotes for the virtual_fc_adapters. I have tested all the other attributes, and they work fine, except for the FC adapters one.

==========================================================================================
#!/usr/bin/ksh
USERID="hscroot"
HMC='10.xx.xx.xx'
SYSTEM="COMP1"

ssh $USERID@$HMC mksyscfg -m $SYSTEM -r lpar -i "name=AIX_TEST, profile_name=AIX_TEST_LIVE, lpar_env=aixlinux, min_mem=8192, desired_mem=16384, max_mem=24576, proc_mode=shared, min_procs=1, desired_procs=2, max_procs=4, min_proc_units=0.5, desired_proc_units=1, max_proc_units=2, sharing_mode=uncap, uncap_weight=128, conn_monitoring=1, boot_mode=norm, max_virtual_slots=200, virtual_eth_adapters="2/0/13//0/0/", ""virtual_fc_adapters=4/client//VIOS01/30//0,5/client//VIOS01/31//0"""
exit
==========================================================================================

I have tried (I think!) all the possible variations/combinations (also with/without the "escape char for double quotes), without success.

The following is displayed. Any idea what the correct format is please ?

An error occurred while creating the partition named AIX_TEST.
The format of the configuration data is invalid. The correct format is "<attribute name 1>=<value>,<attribute name 2>=<value>,..." or ""<attribute name 1>=<value 1>,<value 2>,...>",..." . Please correct the configuration data and retry the command. Note that depending on the shell being used, any nested double quote characters may need to be preceded by an escape character, which is usually a '\' character.

done


Thanks.
Jasper
 
Hi,

You can always create the adapter after the profile is created.

" chsyscfg -r prof -m nutter_machine -i ‘name=nutter_server,lpar_id=10,”virtual_fc_adapters+=”"110/client/1/p74013vios01/110//1″”"‘
chsyscfg -r prof -m nutter_machine -i "

see

Regards
 
Hi

Thanks..

I managed to get it right.. I had to add an additional set of single quotes around the 'mksyscfg......" command..

Jasper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top