Friday, March 1, 2013

Basic commands of NPAR and VPAR + HP UX

Hi Friends,

Some of the basic commands of NPAR and VPAR.
 
1.       #vparenv
2.       #vparenv –m npars :- to boot into npar mode. it means on boot it will go to npar.
3.       #vparenv –m vpars :- to boot into vpar mode. It means on boot it will go to vpar.
4.       #vparstatus :- to check the status
5.       #parstatus –c 0 :- shows information about specified cell, here like it is for 0. 6.      #parstatus –v :- status in verbose mode i.e. more detailed status.
7.      #parstatus –w:  it will show where we are sitting i.e. on which NPAR we are sitting.
8.       #vparstatus –A: Will show the devices which are free, like IO devices and CPUs etc.
9. #vparcreate
10. #vparremove
11. #icapstatus :- shows information about vpar, about its CPU, Memory, and devices assigned. it also provides serial number, OS info, product number, etc informations of the VPAR server.
this was used in earlier versions.


Love Sharing
Amit Chopra

4 comments:

Unix Guru said...

at efi level we are able to select disk to boot the server

>map -r

then you can select the file system fs0:,fs1:

but if you dont remember the boot path of disk at mon prompt then we can use vparload command to identify the available boot disk on particular vpar...

mon>vparload -p vparname -E 0

Unix Guru said...

vparstatus ---Display information about one or more vPars

vparcreate--- Create a new virtual partition

vparboot ----Boot a virtual partition

vparmodify ----Modify the attributes of a virtual partition

vparremove ---- Remove a virtual partition

vparreset---- Reset a virtual partition by emulating a tc or rs

Unix Guru said...

vparutil------ Gets and sets SCSI parameters for
SCSI controllers from a virtual
partition
-a ;all entries in SCSI table
-d ;deletes an entry
-g ;Gets SCSI parameters
-s ;Set SCSI parameters
=================================
vparextract----- Extracts memory images from a running virtual partition system and prints to stdout
-b ;path vpmon was booted from
-k ; kernel base address
-l ;event log
===============================
vpardump ---- Manages monitor dump files -a ;analysis of cleared dumpfile
-c ;mark dumpfile a clear
-f ; initialize dumpfile for full dump
-i ; initialize dumpfile for normal dump
-q ;do not analyze dumpfile
-F ;force analysis of dumpfile
-v ;verbose output
==============================

vparreloc------- Relocates the load address of a vmunix
file, determines if a vmunix file is relocatable and promotes the scope of symbols in a relocatable vmunix file
-a ;request kernel relocation
-f ;source of vmunix file
-g ;global symbol promotion on a
single symbol
-G ;specifies global symbol promotion
-q ;suppress common messages
-t ;place results in target vmunix file

Unix Guru said...

Boot all vPars from the monitor:
MON> vparload –all
=================================

Boot using the Primary or Alternate Boot Path from another partition:
vpar1# vparboot –p vpar4 (Primary boot path is the default)
vpar1# vparboot –p vpar4 –B alt
Boot using the Primary or Alternate Boot Path from the monitor:
MON> vparload –p vpar4 (Primary boot path is the default)
MON> vparload –p vpar4 –B 0/8/0/0.2.0 (Must use hardware path)
==================================
Boot into Single User Mode from the monitor:
MON> vparload –p vpar3 –o “-is”
Boot into Single User Mode from another partition:
vpar1# vparboot –p vpar3 –o “-is”
=================================

Boot into Maintenance Mode:
MON> vparload –p vpar2 –o “-lm”
Boot into Maintenance Mode from another partition:
vpar1# vparboot –p vpar2 –o “-lm”