226 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
-------------------------------------------------------------------*/
firstChar = 'M' /* change this for an LPAR ID other than 'M' */
parse upper arg res spl pag w01 w02 .
parse upper arg fn ft fm '(' options ')' res spl pag w01 w02 .
if (w02 = '') then
do
say "5 arguments required - exiting"
exit
end
'command set stay on'
'command set num on'
'command set nulls on'
'command set serial off'
'command set cmdline bottom'
'command set curline on 3'
'command set serial off'
'command set scale off'
'command set case m i'
'command set pre off'
'command set v 1 80'
'command top'
'command c/540RES/'firstChar'V'res'/*'
'command c/540W01/'firstChar'V'w01'/*'
'command c/540W02/'firstChar'V'w02'/*'
'command c/540SPL/'firstChar'V'spl'/*'
'command c/540PAG/'firstChar'V'pag'/*'
PROFILE EXEC for Linux user IDs
This section lists the code for the PROFILE EXEC that is shared among Linux user IDs from
the LNXMAINT 192 disk.
/* PROFILE EXEC for Linux virtual servers */
'CP SET RUN ON'
'CP SET PF11 RETRIEVE FORWARD'
'CP SET PF12 RETRIEVE'
'ACC 592 C'
'SWAPGEN 300 524288' /* create a 256M VDISK disk swap space */
'SWAPGEN 301 1048576' /* create a 512M VDISK disk swap space */
'PIPE CP QUERY' userid() '| var user'
parse value user with id . dsc .
if (dsc = 'DSC') then /* user is disconnected */
'CP IPL 100'
else /* user is interactive -> prompt */
do
say 'Do you want to IPL Linux from minidisk 100? y/n'
parse upper pull answer .
if (answer = 'Y') then 'CP IPL 100'
end /* else */
Komentarze do niniejszej Instrukcji