0% found this document useful (0 votes)
32 views2 pages

Useful Commands

The document provides commands to check HBA ports, virtual memory status, installed disks, CPU usage, available page sizes, memory size, swap devices, boot path, changing IP address, disabling and enabling interfaces, and listing LAN interfaces.

Uploaded by

jagakiru
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download as txt, pdf, or txt
0% found this document useful (0 votes)
32 views2 pages

Useful Commands

The document provides commands to check HBA ports, virtual memory status, installed disks, CPU usage, available page sizes, memory size, swap devices, boot path, changing IP address, disabling and enabling interfaces, and listing LAN interfaces.

Uploaded by

jagakiru
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 2

####Identifying wwn no of HBA card

prtconf -l -p | grep -i wwn


fcinfo hba-port | grep -i wwn (local)
fcinfo remote-port -p (wwn no of local HBA port) | grep -i wwn (remote like SAN)
=====================================================================
####Check the state of HBA ports
luxadm -e port
=====================================================================
####To Check the Virtual Memory Status
vmstat
======================================================================
####To search the installed disks
iostat -E
echo | format
======================================================================
#### Cpu usage
prstat
======================================================================
To disable the GUI startup: /usr/dt/bin/dtconfig -d
And, to enable it again: /usr/dt/bin/dtconfig -e
======================================================================
####Available page sizes
pagesize -a
=======================================================================
Display Memory Size
prtconf | grep Mem
========================================================================
List the swap devices and the amount of swap space available
swap -l
swap -s
=========================================================================
Findind the boot path
prtconf -vp | grep path
ALSO
df -h
findout the root volume
metastat /(root Volume)
It'll show the physical devices. ex c0t0d0
ls -l c0t0d0s0
It will give the bootpath
=====================================================================
Changing th IP Address

Change the entry in /etc/hosts & /etc/inet/ipnodes

=====================================================================
disable the interface
ifconfig <interface> down
enable the interface
ifconfig <interface> up
=====================================================================
List the lan interfaces
dladm show-dev
======================================================================

You might also like