Specifications
Chapter 7. Virtualization 287
7.2.1 Using the CLI
Many integrators and system administrators make extensive and efficient use of
the CLI, rather than use a graphical interface for their virtual server creation and
administration tasks. Tasks can be scripted, and often the tasks are completed
faster using the command line.
Accessing the IBM Flex System Manager
To access the FSM, you must know the IP address or host name of the FSM
node and have a valid user ID and password. You must start a Secure Shell
(ssh) session with FSM and log in. This process is similar to the process of
accessing the SDMC or HMC command line.
Creating the VIOS virtual server using the CLI
Creating the VIO Server can be done by using the FSM CLI. It is a good idea to
consider creating the virtual server without the I/O definitions using one
command, and then update the virtual server with the I/O definitions later,
possibly by using the graphical interface, to minimize the complexity of
the command.
To ensure that the correct I/O devices are specified in the command, understand
and document the intended I/O adapters using the information described in
“Assigning physical I/O” on page 301. An example of modifying a virtual server
definition using the CLI is in 7.3, “Modifying the VIOS definition” on page 304.
To create a VIO Server using a single command, run the following command:
smcli mksyscfg -r lpar -m p4601 -i
"name=vios1,profile_name=vios1_default,lpar_env=vioserver,lpar_id=1,msp
=1,min_mem=1024,desired_mem=2048,max_mem=4096,proc_mode=shared,min_proc
_units=1.0,desired_proc_units=1.0,max_proc_units=2.0,min_procs=2,desire
d_procs=4,max_procs=8,sharing_mode=uncap,uncap_weight=200,max_virtual_s
lots=100,virtual_eth_adapters=\"11/0/1//1/0,12/0/99///0\",virtual_scsi_
adapters=13/server/10//13/0,boot_mode=norm,io_slots=\"21010201//1,21010
210//1,21010220//1\""
Scripts: In many cases, existing scripts that were written for usage on a
Systems Director Management Console can run unchanged on FSM.
Similarly, scripts written to run on an HMC might run with the smcli command,
added to each command in the script.
VIOS command: This command creates a VIOS server that matches the one
created and modified in 7.2.2, “Using the IBM Flex System Manager” on
page 288, which shows the usage of the graphical interface.