Friday 31 August 2012

BLV , System Dump, Device Related Commands





BLV COMMANDS :

bootlist -m normal -o                          To see the boot sequence in normal mode

bootlist -m service -o                           To see the boot sequence in service mode

bootlist -m normal cd0 hdisk0          To change boot sequence to cd0,hdisk0 in normal mode

bootlist -m service cd0 rmt0 hdisk0                 To change boot sequence to cd0,rmt0,hdisk0 in service mode

bosboot -ad /dev/hdisk1                    To create boot image on PV hdisk1

mkboot -cd /dev/hdisk1                     To clear the boot image

bootinfo -b                                            Specifies the bootable disk

bootinfo - t                                            Specifies the type of boot

bootinfo -e                                            Check the machine can boot from tape

bootinfo -T                                           To see the machine type

bootinfo -s hdisk0                               To see the size of hdisk0

bootinfo -r                                             To see the size of memory
SYSTEM DUMP COMMANDS :


sysdumpdev -l                                      To list the current dump destination

sysdumpdev -L                                    List the details of the previous dump

sysdumpstart -p                                   Starts dump in the primary dump device

sysdumpstart -s                                    Starts dump in the secondary dump device

sysdumpdev -p /dev/lv00                  To make lv00 as primary dump device

sysdumpdev -P -p /dev/lv00             To make lv00 as primary dump device permanently

sysdumpdev -s /dev/rmt0                  To make rmt0 as secondary dump device

sysdumpdev -z                                     To determine a new system dump occurred



Device related commands :


cfgmgr                                                   To configure devices and installs device software in system

cfgmgr -l vscsi0                                    To configure the components connected to the vscsi0 interface

lscfg                                                        To display config, diagnostics and vital product definition info

lscfg -l mem0                                        Display info about device mem0

lscfg -l ent*                                           Display info about all Ethernet cards

lscfg -v                                                   Display vpd

lscfg -v -l hdisk0                                   Display vpd of hdisk0

mkdev   -l rmt0                                    To change device rmt0 from defined state to available state

lsdev -P                                                  To lists all supported devices

lsdev -P -c disk                                     To list all supported disks

lsdev -P -r class                                     To display supported class

lsdev -P -r subclass                              To display all sub class

lsdev -C                                                 To lists all configured devices

lsdev -C -l mem0                                 To display the properties of mem0

chdev -l sys0 -a maxproc=100         To change default maxproc value to 100

chdev -l rmt0 -a blocksize=512        To change the block size to 512

chdev -l rmt0 -a ret=no                       To avoid tape retension

rmdev -l rmt0                                       To remove the device rmt0

rmdev -d -l rmt0                                   To remove the device totally from database

rmdev -l rmt0 -S                                   To change the state of the device stopped

lsparent -C -k  rs232                            To display possible parent devices which accept rs232 devices

lsparent -C -l hdisk0                            To display parent devices which accept child device hdisk0

lsattr -Dl rmt0                                       To see the default values of the device rmt0

lsattr -El rmt0                                       To see the current values of the device rmt0

lsattr -El tty0 -a login -R                     To see all possible values of the login attribute of tty0

lsconn -p scsi0                                      To list all possible connection scsi0 can accept

lvlstmajor                                              To list the available major numbers

mknod /dev/null c 2 2                        Create null device with major (2) and minor (2) nos. (c - char device)

No comments:

Post a Comment