Search This Blog

Monday 23 November 2009

Some Solaris commands for getting configurations

Network speed
root@test# dladm show-dev
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: up speed: 1000 Mbps duplex: full
bge2 link: up speed: 100 Mbps duplex: full
bge3 link: down speed: 0 Mbps duplex: unknown
nxge0 link: up speed: 1000 Mbps duplex: full
nxge1 link: unknown speed: 0 Mbps duplex: unknown
nxge2 link: unknown speed: 0 Mbps duplex: unknown
nxge3 link: down speed: 0 Mbps duplex: unknown
WWN number of HBA
root@server # fcinfo hba-port
HBA Port WWN: 10000000c952c6e2
OS Device Name: /dev/cfg/c2
Manufacturer: Sun Microsystems, Inc.
Model: LP10000DC-S
Type: unknown
State: offline
Supported Speeds: 1Gb 2Gb
Current Speed: not established
Node WWN: 20000000c952c6e2
HBA Port WWN: 10000000c952c6e1
OS Device Name: /dev/cfg/c3
Manufacturer: Sun Microsystems, Inc.
Model: LP10000DC-S
Type: unknown
State: offline
Supported Speeds: 1Gb 2Gb
Current Speed: not established
Node WWN: 20000000c952c6e1
root: /export/home/appl > prtconf -vp | grep wwn
port-wwn: 210000e0.8b8613ae
node-wwn: 200000e0.8b8613ae
port-wwn: 210000e0.8b8f4d67
node-wwn: 200000e0.8b8f4d67
root: /export/home/appl > prtpicl -v -c scsi-fcp | grep wwn
:node-wwn 20 00 00 e0 8b 86 13 ae
:port-wwn 21 00 00 e0 8b 86 13 ae
:node-wwn 20 00 00 e0 8b 8f 4d 67
:port-wwn 21 00 00 e0 8b 8f 4d 67
Complete Serial number saved in the machine
root@host1 # /opt/SUNWsneep/bin/sneep -a
ChassisSerialNumber from eeprom :
0516MM2x88
ChassisSerialNumber from backup : /etc/default/SUNWsneep :
0516MM2x88
ChassisSerialNumber from explorer :
0516MM2x88
ChassisSerialNumber from cst :
0516MM2x88
Maximum allowed process

root@latheefp# ulimit -a

core file size (blocks, -c) unlimited

data seg size (kbytes, -d) unlimited

file size (blocks, -f) unlimited

open files (-n) 256

pipe size (512 bytes, -p) 10

stack size (kbytes, -s) 8192

cpu time (seconds, -t) unlimited

max user processes (-u) 395

virtual memory (kbytes, -v) unlimited

root@latheefp# cat /etc/system|grep max

* set maxusers=40

shmsys:shminfo_shmmax 4294967295

set shmsys:shminfo_shmmax=4294967295

set max_nprocs=400

set rlim_fd_max=1024

root@latheefp# sysdef -i|grep max

drv/sparcv9/max1617

683368448 maximum memory allowed in buffer cache (bufhwm)

400 maximum number of processes (v.v_proc)

99 maximum global priority in sys class (MAXCLSYSPRI)

395 maximum processes per user id (v.v_maxup)

9 maximum number of pushes allowed (NSTRPUSH)

65536 maximum stream message size (STRMSGSZ)

1024 max size of ctl part of message (STRCTLSZ)

60 maximum time sharing user priority (TSMAXUPRI)

How to get LUN ID, WWN of a LUN
bash-3.00# luxadm probe
No Network Array enclosures found in /dev/es
Found Fibre Channel device(s):
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000115Ad0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000107Ad0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000107Cd0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001064d0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001065d0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001015d0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001014d0s2
bash-3.00# luxadm display /dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
Vendor: IBM
Product ID: 2107900
Revision: .690
Serial Num: 75CVGC1107B
Unformatted capacity: 102400.000 MBytes
Write Cache: Enabled
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0x16
Device Type: Disk device
Path(s):
/dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
/devices/scsi_vhci/ssd@g6005076304ffc7c2000000000000107b:c,raw
Controller /devices/pci@1,700000/SUNW,qlc@0/fp@0,0
Device Address 50050763041807c2,5
Host controller port WWN 2100001b3209feeb
Class primary
State ONLINE
Controller /devices/pci@0,600000/pci@0/pci@9/SUNW,qlc@0/fp@0,0
Device Address 50050763041307c2,5
Host controller port WWN 2100001b320a239f
Class primary
State ONLINE
MPXIO Verion in Solaris
root@latheef # modinfo | egrep '(SunFC|mpxio|scsi_vhci)'
82 138feea 16680 149 1 fp (SunFC Port v20061220-1.66)
84 13aa6e5 8314 - 1 fctl (SunFC Transport v20061220-1.38)
86 13b1021 c7604 153 1 qlc (SunFC Qlogic FCA v20061215-2.18)
140 7879c000 2084b 150 1 fcp (SunFC FCP v20061220-1.94)
141 787be000 5794 - 1 mpxio (MDI Library v20070104-1.20)
142 787c4000 deca 189 1 scsi_vhci (SCSI vHCI Driver v20070104-1.45)
HBA Firmware information
root@lathef # luxadm qlgc
Found Path to 4 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/pci@15d,600000/SUNW,qlc@1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Opening Device: /devices/pci@15d,600000/SUNW,qlc@1,1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Opening Device: /devices/pci@17d,600000/SUNW,qlc@1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Opening Device: /devices/pci@17d,600000/SUNW,qlc@1,1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Complete
Will Conti......

No comments:

Post a Comment