You are on page 1of 38

Important commands

-----------------------
To check memmory slot in T5240 from ILOM
---------------------------------------------
show -level all -output table /SYS type==DIMM

To RSH:
start process:
online 9:34:25 svc:/network/login:rlogin
online 9:34:25 svc:/network/shell:default
put .rhosts --> + or IP address
-------
For only perticular host :
.rhosts
IP <user>
10.16.0.228 ro
====================================
SSH:
Note: Do not change / permission

ssh 10.16.12.123 to 10.16.15.155

on source 10.16.12.123 :
ssh-keygen -t rsa

copy id_rsa.pub file to authorized_keys file of destination


change dir permission to 755 of user home

Note: even after setting all changed sftp not working & asking for password kindly
reset destination user password.

Permission .ssh:
.ssh:
drwx------ 2 wsebamp app 256 May 28 13:14 .ssh

-rwxr-xr-x 1 root root 222 May 11 14:23 authorized_keys


-rw------- 1 root root 887 May 11 14:08 id_rsa
-rwxr-xr-x 1 root root 222 May 11 14:08 id_rsa.pub
-rwxr-xr-x 1 root root 2117 May 11 14:16 known_hosts

===================================
If meta is in error :
metarecover <part name> -p -m
metarecover d50 -p -m

To add disk in supermeta that have soft partition and in stripe:


original:
d190 2 3 /dev/dsk/emcpower64c /dev/dsk/emcpower65c /dev/dsk/emcpower66c -i 32b \
3 /dev/dsk/emcpower67c /dev/dsk/emcpower68c /dev/dsk/emcpower69c -i 32b

emcpower70,emcpower71,emcpower72

metattach d190 /dev/dsk/emcpower67c /dev/dsk/emcpower68c /dev/dsk/emcpower69c

To grow :
metattach d101 +1G
/dev/md/dsk/d101 80G 64M 79G 1% /mnt
===================================
Data Copy:
ufsdump -0uf - /INFA_BT | (cd /INFA_BT_new; ufsrestore -xvf -)
ufsdump -0uf - <FS> | ssh <IP> 'cd <FS> ; ufsrestore -xf - '
ssh -l perf 10.50.43.186 'cd /usr/perf;tar cvf - 10_Recommended.zip'|( cd
/usr/perf;tar xvf - )
tar -cf - vos |ssh -l perf 10.50.43.186 'cd /usr/perf;tar -xf - '

------
To migrate different file system in single big:
/dev/vx/dsk/bootdg/rootvol 19G 4.4G 15G 24% /
/dev/vx/dsk/bootdg/usr 9.6G 6.8G 2.7G 72% /usr
/dev/vx/dsk/bootdg/var 9.6G 7.4G 2.2G 78% /var
/dev/vx/dsk/bootdg/opt 9.6G 1.0G 8.5G 11% /opt

new :
/dev/dsk/c1t1d0s0 44G 4.5G 39G 11% /root_bkp

ufsdump -0uf - / |(cd /root_bkp;ufsrestore -xf -)


ufsdump -0uf - /usr |(cd /root_bkp/usr;ufsrestore -xf -)

================================
LOCALE installation:
Solaris 9 - pkgadd ; sol-10: localeadm
Patch in:
10.16.169.175:/cdrom/sol_9_803_sparc/s0/Solaris_9/Product

pkgadd -d . SUNW5ttf SUNW5xmft SUNWarrf SUNWcttf SUNWcxmft SUNWeuluf SUNWeulux


SUNWeuodf SUNWeurf
SUNWeuxwe SUNWi13rf SUNWi15rf SUNWi1of SUNWi2rf SUNWi4rf SUNWi5rf SUNWi7rf SUNWi8rf
SUNWi9rf SUNWiiimr
SUNWiiimu SUNWindt SUNWinfnt SUNWinleu SUNWinlex SUNWinplt SUNWinttf SUNWjxcft
SUNWjxmft SUNWkttf SUNWkxmft
SUNWtleu SUNWtleux SUNWtxfnt SUNWuiu8 SUNWulcf SUNWulocf SUNWuxlcf SUNWgttf
SUNWnamos SUNWnamox SUNWislcc
SUNWislcx SUNWi1of SUNWi15rf SUNWi1cs SUNWi15cs SUNWnamdt SUNWnamow SUNWplow
SUNWplow1
------
Inser 10 DVD
localeadm -a weu -d /mnt/Solaris_10/Product : western Europe
or
localeadm -a weu -d .

localeadm -a en_US -d /mnt/Solaris_10/Product


or
localeadm -a en_US -d .

Put entry in :/etc/TIMEZONE


TZ=Asia/Calcutta
CMASK=022

============================================
nfs partition :

mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768


10.16.58.40:/windowspool1/D11_59_85 /sapmnt/D11
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/mirrlogA_59_85 /oracled/D11/mirrlogA
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/mirrlogB_59_85 /oracled/D11/mirrlogB
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/oracle_59_85 /oracled
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/origlogA_59_85 /oracled/D11/origlogA
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/origlogB_59_85 /oracled/D11/origlogB
mount -F nfs 10.16.58.40:/windowspool1/put_59_85 /usr/sap/put
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/usr_sap_D11_59_85 /usr/sap
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
10.16.58.40:/windowspool1/usr_sap_D11_59_85 /usr/sap/D11
mount -F nfs 10.16.58.40:/windowspool1/usr_sap_trans_59_85 /usr/sap/trans

alock:
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768,llock
10.16.14.16:/vol/vol03nas2/cross_e6k4 /misuat
mount -F nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768,llock
10.16.58.40:/windowspool1/dpsecuredata_bkp1 /dpsecuredata1

===============================
Solaris Patching :

/dvdrom/sun/install/setup-standard.sh

root@MLXWTIBSLDB # . /.profile
Sourcing //.profile-EIS.....

/dvdrom/sun/patch/10/unpack-patches /patches < Where you want to install>


/usr/perf/tmp/install_all_patches

After This monitor logs in:


cd /var/sadm/install_data
tail -f Solaris_10_Recommended_Patch_Cluster_log
===========================
Ethernet address from OK prompt :
banner
or
watch-net-all ---> Find out which link is up
cd to that NIC address : /dev ...
.properties
==============================
inode check:
df -F ufs -o i /apln
/usr/ucb/df -i

==============================
Solaris Patching :

/dvdrom/sun/install/setup-standard.sh
/dvdrom/sun/patch/10/unpack-patches /usr/perf/
/usr/perf/tmp/install_all_patches

After This monitor logs in:


cd /var/sadm/install_data
tail -f Solaris_10_Recommended_Patch_Cluster_log
===============================
PRTVTOC:
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2

================================
IPMP:
/etc/hosts

10.16.18.159 IME15KA-04 ; Virtual


10.16.18.187 IME15KA-04-ce0
10.16.18.201 IME15KA-04-e1000g0

cat /etc/hostname.ce0
IME15KA-04-ce0 netmask + broadcast + group ipmp0 deprecated -failover up addif
IME15KA-04 netmask + broadcast + up

cat /etc/hostname.<interface name>


IME15KA-04-e1000g0 depricated -failover netmask + broadcast + group ipmp0 up
------------
ICICI:
10.16.18.159 IMM90K-05 loghost IMM90K-05.icicibankltd.com
10.16.18.187 ipmp1-testip1
10.16.18.201 ipmp1-testip2

cat hostname.bge0
ipmp1-testip2 netmask + broadcast + group ipmp1 depricated -failover up

cat hostname.nxge3
10.16.18.159 netmask + broadcast + group ipmp1 up addif ipmp1-testip1 netmask +
broadcast + deprecated -failover up

10.16.0.158:
root@IMASUNM9K-25 # cat hostname.bge0
IMASUNM9K-25 netmask + broadcast + group ipmp1 up addif ipmp1-testip1 netmask +
broadcast + deprecated -failover up
root@IMASUNM9K-25 # cat hostname.bge4
ipmp1-testip2 netmask + broadcast + group ipmp1 deprecated -failover up

10.16.0.158 IMASUNM9K-25 IMASUNM9K-25.icicibank.com


10.16.0.156 ipmp1-testip1 # Test Address for bge0 IOU0
10.16.0.157 ipmp1-testip2 # Test Address for bge4 IOU2

for manual failover


if_mpadm -d nxge0
if_mpadm -r nxge0

Detection time :/etc/default/mpathd


FAILURE_DETECTION_TIME=100000

---------------------------------------------------------
bash-3.2# cat /etc/hostname.igb0
bomincoreb4-igb0 netmask + broadcast + deprecated -failover group bomincorepb4ipmp
up \
addif bomincoreb4 netmask + broadcast + up

bash-3.2# cat /etc/hostname.igb1


bomincoreb4-igb1 netmask + broadcast + deprecated -failover group bomincoreb4ipmp
standby up

bash-3.2# cat /etc/hosts


--------------------------
#
# Internet host table
#
127.0.0.1 localhost
10.174.49.142 bomincoreb4
10.174.49.178 bomincoreb4-igb0
10.174.49.179 bomincoreb4-igb1

Daemon for IMPMP


-------------------
bash-3.2# ps -ef|grep -i mpathd
root 1154 1145 0 08:21:49 console 0:00 grep -i mpathd
root 8876 1 0 15:20:32 ? 0:14 /usr/lib/inet/in.mpathd

Standar setting for /etc/default/mpathd


----------------------------------------
bash-3.2# cat /etc/default/mpathd
#
#pragma ident "@(#)mpathd.dfl 1.2 00/07/17 SMI"
#
# Time taken by mpathd to detect a NIC failure in ms. The minimum time
# that can be specified is 100 ms.
#
FAILURE_DETECTION_TIME=10000
#
# Failback is enabled by default. To disable failback turn off this option
#
FAILBACK=no
#
# By default only interfaces configured as part of multipathing groups
# are tracked. Turn off this option to track all network interfaces
# on the system
#
TRACK_INTERFACES_ONLY_WITH_GROUPS=yes

------------------------------------
For link base :
cat hostname.vnet0
10.50.55.8 netmask 255.255.255.0 broadcast + group ipmp0 up

cat hostname.vnet1
group ipmp0 up
==============================
Remove disk :
svcadm enable hotplug

cfgadm -al
cfgadm -c unconfigure c0::dsk/c0t6d0
for scsi device:
cfgadm -x remove_device c0::dsk/c0t1d0

or
luxadm remove_device c0t6d0s2
luxadm -e offline/online /dev/rdsk/c1t8d0s2

If it giving veritas error:


cfgadm -f -vc unconfigure c0::dsk/c0t0d0

===============================
Patch Level:
Sol10:138888-08 , New
Sol9 :122300-39 , New 122300-45

===============================
Netmask set for UG
route add 172.16.40.0 -netmask 255.255.248.0 -gateway 172.16.32.50

to delete extra entry of U

netstat -rv

route delete 10.16.0.0 -netmask 255.255.254.0 <gateway>

for perticular interface:


route add 10.16.0.0 10.16.0.201 -ifp ce1
10.16.0.0 10.16.0.201 UGH 1 0 ce1

ughs -- for
route add 172.16.60.79 10.24.83.5 -setsrc 10.24.83.19

===============================
Cron qlimit:
/etc/cron.d/queuedefs

a.400j1n
b.2j2n90w
c.1000j1n

For Solaris 9
/etc/init.d/cron stop/start

For Solaris 10
svcs -a | grep cron
online Mar_27 svc:/system/cron:default

svcadm disable svc:/system/cron:default


svcadm enable svc:/system/cron:default

============
Cross cable :
ce7: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 11
inet 5.5.5.1 netmask ffffff00 broadcast 5.5.5.255
ether 0:3:ba:38:ab:f0
===========================
Memory utilization check:

/usr/ucb/ps -auxw

======================================
QLA /etc/system parameter:
forceload: drv/ssd
set ssd:ssd_max_throttle=20
set ssd:ssd_io_time=0x3c
set fcp:ssfcp_enable_auto_configuration=1
set sd:sd_io_time=0x3c
set sd:sd_max_throttle=20

==================================
Dumpdevice:
/etc/dumpadm.conf

DUMPADM_DEVICE=/dev/dsk/c0t0d0s1
DUMPADM_SAVDIR=/var/crash/IMASUNM9K-31
DUMPADM_CONTENT=kernel
DUMPADM_ENABLE=yes

then restart dumpadm service


svcadm restart svc:/system/dumpadm:default

savecore -L : --> To generate


reboot -d : Core generate while reboot

snap shot of console:


XSCF> snapshot -L F -t root@10.16.0.158:/usr/perf
----------------------------------
Working on 172.16.17.133 RIB
online 16:09:48 svc:/system/dumpadm:default

root@IHYDSUNM5K10 # cat /etc/dumpadm.conf


#
# dumpadm.conf
#
# Configuration parameters for system crash dump.
# Do NOT edit this file by hand -- use dumpadm(1m) instead.
#
DUMPADM_DEVICE=/dev/dsk/c0t1d0s1
DUMPADM_SAVDIR=/var/crash/M5000-25
DUMPADM_CONTENT=kernel
DUMPADM_ENABLE=yes
DUMPADM_CSAVE=on

root@IHYDSUNM5K10 # dumpadm
Dump content: kernel pages
Dump device: /dev/dsk/c0t1d0s1 (swap)
Savecore directory: /var/crash/M5000-25
Savecore enabled: yes
Save compressed: on

====================================
EMC agent:
/opt/APPQcime/tools : start/stop

====================================
Hardware raid:
root@MLXJMSFE01 # raidctl
Controller: 1
Volume:c1t0d0
Disk: 0.0.0
Disk: 0.1.0
Disk: 0.2.0
Disk: 0.3.0
If it is not:

Controller: 0
Disk: 0.0.0
Disk: 0.1.0
Disk: 0.2.0
Disk: 0.3.0

---------------
If raid disk not detected then ,

Hardware raid Logical volume reactivating after motherboard replacement:

ok select /pci@0/pci@0/pci@2/scsi@0
ok show-volumes
Volume 0 Target 82 Type IM (Integrated Mirroring)
Optimal Enabled Inactive
2 Members
Disk 1
Primary Online
Target 0 SEAGATE ST914602SSUN146G0603
Disk 0
Secondary Online
Target 1 SEAGATE ST914602SSUN146G0603
ok 0 activate-volume
Volume 0 is now activated
ok boot /pci@0/pci@0/pci@2/scsi@0/disk@0,0:a

Activating metasets after boot:

root@MLXJMSFE02 # metaset
Set name = fe02set, Set number = 1
root@MLXJMSFE02 # metaset -s fe02set -t
root@MLXJMSFE02 # metastat -s fe02set

=====================================
Route add :

route add 172.16.53.22 172.16.40.50


172.16.53.55 172.16.40.50 UGH 1 3245
ping 172.16.53.22
====================================
pooladm
/etc/project:
cat /scripts/addsapproj.sh

#!/usr/bin/bash

SID=$1

PROJECT=`echo $SID | /usr/xpg4/bin/tr "[:lower:]" "[:upper:]"`

if [ -z $1 ] ; then

echo "Usage: $0 <SID>"


exit 1

fi

echo "Adding kernel parameter for oracle SAP id ora$SID"

projadd -p 1000 -c "SAP Parameter for $SID" \

-U ora$SID,$SID"adm" \

-K "project.max-sem-ids=(priv,1024,deny)" \

-K "process.max-sem-nsems=(priv,2048,deny)" \

-K "project.max-shm-memory=(priv,32768MB,deny)" \

-K "project.max-shm-ids=(priv,256,deny)" $PROJECT

echo " Kindly add \"noexec_user_stack 1\" in /etc/system"

echo " Kindly add \"set rlim_fd_cur=8192\" in /etc/system"

if [ $? -eq 0 ] ; then

echo "$SID"adm"::::project=$PROJECT" >> /etc/user_attr

echo "ora$SID::::project=$PROJECT" >> /etc/user_attr

fi
--------------
projadd -p 101 -c " Murex project " -U murex -K "project.max-shm-
memory=(priv,32768MB,deny)" ICICIMUREX
cat /etc/project
su - murex
usermod -K project=ICICIMUREX murex

To modify project in Solaries :


projmod -s -K 'project.max-shm-memory=(privileged,64424509440,deny)' NetBackup

user.ora10g:100::ora10g::project.max_nprocs=(priv,50000,deny);project.maxuprc=(priv
,50000,deny);project.maxusers=(priv,4096,deny);project.pidmax=(priv,60000,deny)

To delete
projdel user.root

e.g:
cat /etc/project
ICICI:100:oracle database:ora11202:dba:project.max-shm-
memory=(privileged,166429982720,deny)

cat /etc/user_attr
ora11202::::type=normal;project=ICICI

----------------------------------
cat /etc/project

system:0::::

user.root:1::::

noproject:2::::

default:3::::

group.staff:10::::

D30:1000:SAP Parameter for d30:d30adm,orad30::process.max-sem-


nsems=(priv,2048,deny);project.max-sem-ids=(priv,1024,deny);project.max-shm-
ids=(priv,256,deny);project.max-shm-memory=(priv,34359738368,deny)
========================
pooladm -x ----->Remove all pool and put in default pool
poolcfg -c 'destroy pool poolC_pool' /etc/pooladm.conf -->for perticular pool
poolcfg -c 'destroy pset ICUSTODY-pset' /etc/pooladm.conf--> for that pset
pooladm -c --->To configure

-----------------------

cat /etc/user_attr

# Copyright 2007 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

# /etc/user_attr

# user attributes. see user_attr(4)

#pragma ident "@(#)user_attr.txt 1.9 07/10/17 SMI"

adm::::profiles=Log Management

lp::::profiles=Printer Management

postgres::::type=role;profiles=Postgres Administration,All

root::::auths=solaris.*,solaris.grant;profiles=Web Console
Management,All;lock_after_retries=no;min_label=admin_low;clearance=admin_high

d30adm::::project=D30

orad30::::project=D30
===============================================
Ulimit:
ulimit -n -H
ulimit -S -n 256 ----------- Soft limit
ulimit -H -n 65536 --------- hard limit

=================================================
ftp through scripts:

echo "Getting source files from 10.16.58.20 to 10.16.0.89 "


path="/ext/prime/files/embossing_files/"
file1="ati2."$jdate"*"
file2="atet2."$jdate"*"
file3="atet3."$jdate"*"
ftp -n 10.16.58.20 << EOF
user primeprod prod@123
cd $path
prom
hash
mget $file1
mget $file2
mget $file3
mdelete $file1
mdelete $file2
mdelete $file3
cd processed
mput $file1
mput $file2
mput $file3
bye
EOF
===========================================
Solaris 9
syslog.conf
/etc/init.d/syslog stop/start
/usr/sbin/syslogd

Solaris 10
/etc/syslog.conf
*.debug @10.16.0.20
svcadm refresh svc:/system/system-log:default
=========================================
metaset :
Fresh Metaset :
1)Create metaset
metaset -s fe02set -a -h MLXJMSFE02

2)Add Disk to metaset :


metaset -s fe02set -a c5t5006048452A56FFCd146 c5t5006048452A56FFCd147
c5t5006048452A56FFCd148 c5t5006048452A56FFCd149 c5t5006048452A56FFCd150

3)Create Super metaset on previously added disk


metainit -s fe02set d50 1 5 /dev/dsk/c5t5006048452A56FFCd146s0
/dev/dsk/c5t5006048452A56FFCd147s0 /dev/dsk/c5t5006048452A56FFCd148s0

/dev/dsk/c5t5006048452A56FFCd149s0 /dev/dsk/c5t5006048452A56FFCd150s0 -i 32b

4)Create Soft partition :


metainit -s fe02set d51 -p /dev/md/fe02set/rdsk/d50 10g
=======================
ssh not poassible from windws server:

edit /etc/ssh/sshd_config -----------> unhash or make below entry


Ciphers aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc

=====================================================================

IBM vmstat
bash-3.00# cat /scripts/vmstat_night
echo " Date of reading " >>/scripts/vmstat_nighttime
date >>/scripts/vmstat_nighttime
vmstat -wt 2 10 >> /scripts/vmstat_nighttime
===================================================
wwn:
fcinfo hba-port
prtconf -vpp | grep wwn
luxadm -e port
luxadm -e dump_map /devices/ssm@0,0/pci@1b,600000/fibre-channel@2/fp@0,0:devctl

==================================
zfs x4500 iqn luns:
1_Create zpool
2)Create zfs
zfs create -V 1g windowpool2/temp_120_168_window

3)Crteate targer
iscsitadm create target -b /dev/zvol/rdsk/windowpool2/temp_120_168_window
wintmp168-scsilun

check status : iscsitadm list target -v wintmp168-scsilun

4)Creater initiator : iqn if server


iscsitadm create initiator --iqn iqn.1991-05.com.microsoft:mlx-wt-
match2.icicibankltd.com wintmp168
status: iscsitadm list initiator

5)Add initiator to target:


iscsitadm modify target -l wintmp168 wintmp168-scsilun

status:iscsitadm list target -v

To Unmap:
status: iscsitadm list target -v webtradevol2

iscsitadm delete target -l mlx-wt-match2 webtradevol2


after this when u see status it shows:
Before:
ACL list:
Initiator: mlx-wt-match2

After:
ACL list:

jayant.jamble@icicibank.com
sankalp.hanwate@icicibank.com
----------------------
sfs mount
zfs mount -a

=============================================
RSC console problem not getting server connection from rsc
rsc> bootmode -u
rsc>
RSC Alert: Host system has shut down.
===========================================
ssh not getting login:
/usr/lib/libm.so.1
libc.so.1 -- Do not touch ths file

=============================
x11 service:
cd /etc/init.d/ ./dtlogin stop / start

svcadm enable cde-login


svcadm restart cde-login
svcadm enable svc:/application/graphical-login/cde-login:default

/usr/dt/bin/dtlogin -e
/etc/init.d/dtlogin start

also see dependencied in svcs -xv

file:
/usr/X11/bin/Xserver

/etc/hosts entry is like:


::1 localhost
127.0.0.1 localhost
10.128.127.74 IHASUNT524001-zone5 IHASUNT524001-zone5.icicibank.com
loghost

DISPLAY=<ip>:0.0
export DISPLAY
=============================
JAVA jdk:
Please install JRE 1.6_04 from the URL and provide the 777(read/write/execute)
rights to user ora10gas on /oraasbinary/jdk1.6 folder for 10.16.58.98 server.

Server Name:- SunOS IMASUNT54406-zone4 5.10 Generic_141444-09 sun4v sparc


SUNW,T5440
Base Server:- 10.16.58.98
DC Call:- DCCMP10MAR100026

For upgrade from 1.5 to 1.6


previous:
bash-3.00# java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)

1)copy jdk-6u21-solaris-sparc.sh in /usr/jdk/instance


2)unlink jdk1.5.0_18
3)ln -s instances/jdk1.6.0_21 jdk1.6.0_21
4)unlink latest
5)ln -s jdk1.6.0_21 latest
6)cd /usr
ln -s jdk/jdk1.6.0_21 java

3ihelpdesk@howdenindia.com

If java is install in /pssclick/pssclick/jdk1.6.0_30/bin


then in .profile set:
PATH=/pssclick/pssclick/jdk1.6.0_30/bin:/usr/bin
export PATH

================================
Sendmail SMTP:
Log:/var/log/syslog
===============================
error disk after lun reclaim
vxdisk -eo alldgs list |grep error
vxdisk rm
devfsadm -Cv
cd /etc/vx
mv disk.info disk.info_17june10
mv array.info array.info_17june10
vxdctl enable
========================
Board DR actovity:
cfgadm -v -c configure N0.SB2
================================
XSCF> showdomain
showdomainmode showdomainstatus
XSCF> showdomainmode -d 00
Host-ID :847c93ea
Diagnostic Level :min
Secure Mode :on ------->disable break command
Autoboot :off
CPU Mode :auto
XSCF>

XSCF>
XSCF>
XSCF>
XSCF> showdomainstatus -a
DID Domain Status
00 Running
01 Running
02 Running
03 Running
04 Running
05 -
-------------------

M9K DVD movement:

sunadmin@10.16.58.177's password:
Last login: Wed Sep 23 16:01:15 2009 from 10.16.6.8
XSCF>
XSCF>
XSCF> cfgdevice
Invalid parameter.
usage: cfgdevice [[-q] -{y|n}] -c attach -p port_no
cfgdevice [[-q] -{y|n}] -c detach -p port_no
cfgdevice -l [-M]
cfgdevice -h
XSCF> cfgdevice -l
Current connection for DVD/DAT: port 3-0
Expander status
Port No. IOU/SAS-status SAS-status

--------------------
M9k console command:
XSCF> sendbreak -d 01
Send break signal to DomainID 1?[y|n] :y
XSCF>
XSCF>
XSCF> showdomain
showdomainmode showdomainstatus
XSCF> showdomainmode -d 00
Host-ID :847c93ea
Diagnostic Level :min
Secure Mode :on ------->disable break command
Autoboot :off
CPU Mode :auto
XSCF>

If reset comand not working then :

setdomainmode -d 01 -m secure=off -- to reboot


reset -d 01 panic -- to panic and core generate.
--------
To remove and add board of M9K/M5K

poweroff -d 01

deleteboard -c unassign 01-0


setdcl -d 01 -r 01
setdcl -d 0 -a 01=01-0
addboard -c assign -d 00 01-0
addboard -c configure -d 00 01-0
-------
For 6900/15K
To delete board :
For this server should be down and issuw setkeyswitch off

deleboard SB4/IB4 -d <>

to add:
addboard -d <> SB4/IB4

to delete :

cfgadm -c unconfigure SB
cfgadm -c disconnect SB

Sfter this from console :

deleteboard <board > -d <domain id>

---------------------------------
To find io hardware location :

showdevices -v -d 01

------------------
15k level
Significant contents of .postrc (domain)
/etc/opt/SUNWSMS/SMS1.6/config/C/.postrc:
level 16
verbose 64

-----------------------------------
0-0 disable down disable down
1-0 disable down disable down
2-0 disable down disable down
3-0 enable up enable up
4-0 disable down disable down
5-0 disable down disable down
6-0 disable down disable down
7-0 disable down disable down
XSCF> cfgdevice -c detach -p 3-0
Are you sure you want to detach the device [y|n] :y
Completed.
XSCF>
===========================
mpixo multipath disk check:
root@IMASUNT524007 # luxadm -v display
/dev/rdsk/c7t6006016053E31500A8FCCD7F0E15DE11d0s2
Displaying information for: /dev/rdsk/c7t6006016053E31500A8FCCD7F0E15DE11d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c7t6006016053E31500A8FCCD7F0E15DE11d0s2
Vendor: DGC
Product ID: RAID 5
Revision: 0226
Serial Num: CK200031800080
Unformatted capacity: 34961.250 MBytes
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0x0
Device Type: Disk device
Path(s):

/dev/rdsk/c7t6006016053E31500A8FCCD7F0E15DE11d0s2
/devices/scsi_vhci/ssd@g6006016053e31500a8fccd7f0e15de11:c,raw
Controller /devices/pci@500/pci@0/pci@d/SUNW,qlc@0/fp@0,0
Device Address 5006016b10601096,c
Host controller port WWN 2100001b3214114d
Class primary
State ONLINE
Controller /devices/pci@500/pci@0/pci@d/SUNW,qlc@0/fp@0,0
Device Address 5006016310601096,c
Host controller port WWN 2100001b3214114d
Class secondary
State STANDBY
-------------------------------------
coretest
corestat.v.1.2.3.tar.bz2
/usr/perf/corestat/sparc64-corestat
./sparc64-corestat.pl -uk -p -i 10
-----------------------------------
hba firmware:
fcinfo hba-port
lscfg -vl fcs3 --> Device Specific.(Z9)........TS1.91A5 --------------->firm ware
version

------------------
tcp keep value:
ndd -set /dev/tcp <tcp_parameter> <tcp_value>
ndd -set /dev/tcp tcp_keepalive_interval 7200000
ndd -get /dev/tcp tcp_keepalive_interval
===========================================
5440 admin user add / console

cd /SP/users
-> create admin role=aucro cli_mode=alom
Creating user...
Enter new password: ********
Enter new password again: ********
Created /SP/users/admin
--
-> show admin

/SP/users/admin
Targets:
ssh

Properties:
role = aucro
password = *****
cli_mode = alom

Commands:
cd
set
show

----------------
sendmondo
bootmode bootscript:"setenv auto-boot? false"
-----------
cd /HOST
show --------> show current formware/obp version
======================================================
to add new board and run mem2 in domain:

SB5 Off CPU Board V3 Available Not tested Isolated

SF6900-08-SC0:SC> console -d c
SF6900-08-SC0:C> addboard SB5
SF6900-08-SC0:C> showboards

Slot Pwr Component Type State Status Domain


---- --- -------------- ----- ------ ------
/N0/SB5 Off CPU Board V3 Assigned Not tested C
/N0/IB8 Off PCI+ I/O Board Assigned Not tested C

then enable mem2 test:


SF6900-08-SC0:C> setupdomain

Domain Boot Parameters


-------------
break on 6900
From console:
sf1-ssc1:C> break

----------------------
diag-level [init]: mem2
post-tolerate-ce [false]:
mpr-support-enable [true]:
verbosity-level [min]:
error-level [max]:
interleave-scope [within-board]:
interleave-mode [optimal]:
reboot-on-error [true]:
hang-policy [reset]:
log-reset-data [true]:
verbose-reset-data [true]:
reset-data-ftp-url []:
max-panic-diag-limit [mem2]:
OBP.use-nvramrc? [true]:
OBP.auto-boot? [false]:
OBP.error-reset-recovery [<OBP default>]:

Loghosts
--------
Loghost [10.16.58.94]:
Log Facility [local0]:

SNMP
----
Domain Description [ ]:
Domain Contact [ ]:
The SNMP agent is disabled.

-----
SF6900-08-SC0:C> showdomain

Domain Solaris Nodename Domain Status Keyswitch


-------- ------------------ ----------------------- -------------
C - Powered Off off

SF6900-08-SC0:C> setkeyswitch on : will power on and run mem2 test


============================
Boot sequence for 15K
boot - it go to in recovery -->loading solaris --> booting solaris
======================
Log shipping address:172.23.1.87
route add 172.22.1.17(dr) 172.23.1.1(local gateway)
Local:172.23.1.87
172.22.1.17 172.23.1.1 UGH 1 2
172.23.1.0 172.23.1.87 U 1 447 bge2

DR:172.22.1.17
172.22.1.0 172.22.1.17 U 1 6 bge1
172.23.1.0 172.22.1.2 UGH 1 0
172.23.1.87 172.22.1.2 UGH 1 2
====================================
Zone detach for patching:
mount /dev/dsk/c1t3d0s3 /IMASUNT524003-ZONE4

zoneadm list -icv


IMASUNT524003-ZONE4 installed /IMASUNT524003-ZONE4 native shared

zoneadm -z IMASUNT524003-ZONE4 detach


IMASUNT524003-ZONE4 configured /IMASUNT524003-ZONE4 native shared

cd /IMASUNT524003-ZONE4/
cp -p SUNWdetached.xml /usr/perf/SUNWdetached.xml_zone4
rm SUNWdetached.xml

cd /
zoneadm -z IMASUNT524003-ZONE4 attach -u

showrev -p | grep -i 138217-01


=============================
snmpd service:
root@IHASUNT524001 # ps -aef |grep snmpd ------------------------------------
>check the process
root 597 1 0 Sep 17 ? 0:40
/usr/sfw/sbin/snmpd--------------------->process Running
root 12811 12807 0 16:19:08 pts/1 0:00 grep snmpd

rename the snmpd file with old and kill the process

root@IHASUNT524001 # cd /usr/sfw/sbin/
root@IHASUNT524001 # mv snmpd snmpd.old
root@IHASUNT524001 # kill -9 597

===========================
memory load:
echo "::memstat" | mdb -k
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 307079 2399 7%
Anon 1599309 12494 39%
Exec and libs 21148 165 1%
Page cache 1772513 13847 43%
Free (cachelist) 415801 3248 10%
Free (freelist) 1503 11 0%

Total 4117353 32166


Physical 4095759 31998

sar -r
freemem*8= comes in kb
==========================
tty / pts refused error :

ls -la /usr/lib/pt_chmod
-rwxr-xr-x 1 root bin 10012 Jan 25 2007 pt_chmod
bash-3.00# chmod 4511 pt_chmod
bash-3.00# ls -la | grep pt_*
-r-s--x--x 1 root bin 10012 Jan 25 2007 pt_chmod
------------------------------------------
Warning -- ttymon cannot allocate controlling tty on "/dev/console",
Steps to Follow
If ttymon cannot allocate a controlling tty on /dev/console, there might be another
session on this port.

Subsequent login attempts at the console result in "login incorrect". Rebooting


might or might not
solve the problem.
The console port monitor is unable to provide a proper login sequence
because another process is controlling the device /dev/console. This
can be caused by device drivers improperly using /dev/console.
Remotely login over the network and su to root. Then
type:
fuser /dev/console
Kill off the processes starting with the highest PID. Eventually you should
be able to free up the device so that a login can take place.

=============================
switch alias:
alicreate "IMASUNT54408_172_16_41_167", "21:00:00:1b:32:9a:f6:4b"
zonecreate "IMASUNT54408_41_167_USPVM_7B", "IMASUNT54408_172_16_41_167; USPVM_7B"
cfgadd "MLX_200E", "IMASUNT54408_41_167_USPVM_7B"
cfgenable "MLX_200E"
===========================
ftp in scripts:
#PASSWD=Surf\$fir5
#echo $PASSWD
/usr/bin/ftp -n 10.16.59.111<<END
user perf Surf\$fir5
#user perf $PASSWD
prompt
bin
hash
cd /tmp
lcd /scripts
mput *finn_bc_chk.txt
bye
END
=======================
Used port
rm /tmp/process
for i in `ps -ef |awk '{print $2}'`; do echo " Process id $i "; pfiles $i
>>/tmp/process; echo "============================" >>/tmp/process; done

then grep port in /tmp/process


========================
configure ip in zone without reboot:
ifconfig nxge4:1 10.16.11.153 netmask 255.255.255.0 broadcast + up zone
IMASUNT524006-zone6
====================================
Printer:

lpadmin -x printername -delet printer

lpadmin -p printername -v /dev/null


lpadmin -p printername -o dest=10.16.14.191:9100
/usr/bin/enable printername
accept printername

lpq

lpadmin -p printername -l

lpadmin -t printername

lpadmin -p hp4100n -v /dev/null -m netstandard -o dest=10.16.5.96:9100 -T unknown -


I any

The following is an excerpt from a Sun developer help page . Please also see note
at end.
Disabling/Enabling Banner Pages
This is often an area of confusion especially with network printers that have
onboard network cards. You can create a print queue to a network printer, and when
you send a print job you can sometimes get up to three banners printed.

What you should notice first is that the banners may have subtle differences in
appearance. A Solaris banner will look like this:

######### User: alices@hostname


##### Title: /etc/release
##### Date: Fri 17:23 Sep 07, 2001
##### Job: banana-286
#####

This banner page is produced by the netstandard interface file. Any other banner of
any other design is not being produced by the Solaris print subsystem.

You can produce banners via an application or more likely by the onboard network
card of a printer. You can disable this from the printer's own display panel,
connect to the printer via a web browser (by hostname or IP address if http is
enabled on the card) or even by telnetting to the network card itself. It is a
simple procedure -- consult the vendor's documentation for further details.

Solaris banners can be manipulated in a variety of ways:

1. When the printer is created for the first time. In my experience it is better to
follow the syntax below when putting in banner information at this stage (note I
have included 2 -o entries):

# lpadmin -p banana -o protocol=bsd,dest=hostname -o banner


-v /dev/null .....

This means that the banner will be permanently enabled; a regular user will not be
able to disable it. However, the root user can disable the banner.

# lpadmin -p banana -o protocol=bsd,dest=hostname -o nobanner


-v /dev/null .....

The banner is optional and can be disabled at the user's discretion as they submit
a print job:

# lp -d banana -o nobanner ......


The above syntax will prevent a banner from being printed.

2. To edit a queue already created:

# lpadmin -p banana -o banner [banner enabled permanently]

Or

# lpadmin -p banana -o nobanner [banner can be suppressed by user]

3. From the netstandard interface file itself: You need to edit the interface file
for the print queue in question. For example:

/etc/lp/interfaces/banana

Note that banana is the name of the print queue you are using. Within this file you
will notice the entry:

nobanner="no"
Thus to disable the banner, you must change this to:

nobanner="yes"
This actually means "yes, I do not want a banner." It can get rather confusing! The
final step takes precedence over the former two methods.

For Solaris 8, 9 and above, there are some undocumented ways of configuring banner
pages.

Create a print queue as normal, but check out the new banner syntax:

# lpadmin -p banana -o protocol=bsd,dest=hostname -o banner=always


-v /dev/null .....

There are three options you can select:

banner=always - This means that the banner is always on and can only be overridden
by root.
banner=optional - This means that the banner can be selected to print or not and
can be selected by all users.
banner=never - This means that the banner will never be printed and can only be
overridden by root.
This new feature means that it is now unnecessary to edit the interface file to
prevent banner pages from being printed. The best way to understand which is best
for your particular situation is to test all the configurations and get a feel for
what works with what. This new feature does not apply to pre-Solaris 8 releases.

--------------------------------------------------------------------------------
I've tried the above, but as of 06/29/05 none of them seemed to work for me.
Apparently, HP does it a little differently. Fortunately, (after tweaking some
other stuff) this worked :
telnet into tolkien.sfsu.edu then do
> banner: 0
then save settings and exit (TJ).
--------------------------------------------------------------------------------
Zone in shutting down state:
ps -fz zonename
pkill -9 -z zonename
zoneadm -z zonename halt
If the zonepath is unmounted then mount the zonepath
zoneadm -z zonename boot.
------------------
swap file system:
mount -F tmpfs dmpfs /dev/vx/dmp
mount -F tmpfs dmpfs /dev/vx/rdmp
mount -F tmpfs -o size=10240M swap /cdcilogs
=================================
setfacl/ getfacl
before:
bash-3.00# getfacl /rib0

# file: /rib0
# owner: ora10203
# group: dba
user::rwx
group::r-x #effective:r-x
mask:r-x
other:r-x
---
setfacl -m user:investuat:rwx:mask:rwx /rib0
-----
after:
bash-3.00# getfacl /rib0

# file: /rib0
# owner: ora10203
# group: dba
user::rwx
user:investuat:rwx #effective:rwx
group::r-x #effective:r-x
mask:rwx
other:r-x

To change default mask :


setfacl -m m:rwx /rib11x

===========================
c/c++ compiler
insert sun studio dvd:
cd /sunstudio/SunStudio_11/SPARC/CD1/kits/ide/packages
pkgadd -d . ----> will ask for selection of packages give follwoing numbers.
44 45 46 47 48 49 62 63 66 87 94 95 96 108 131 132 143 144 145 146
Set /etc/profile path:
PATH=$PATH:/opt/SUNWspro/bin
export PATH
-----
for perticular patch:pkgadd -d . SPROmrcom SPROlangx
command path:/opt/SUNWspro/bin/g++
=====================
Zolaris zone state:

Undefined -Configured -- Installed --Ready-- Running

Undefined --Create/Delete) Configured ----Install/Uninstall)-- Installed


--(Ready/Halt)-- Ready (Boot)--- Running
-------------
zone detach / attach

1)mount /dev/dsk/c1t3d0s3 /IMASUNT524003-ZONE4/halt zones

2)zoneadm list -icv


IMASUNT524003-ZONE4 installed /IMASUNT524003-ZONE4 native shared

3)zoneadm -z IMASUNT524003-ZONE4 detach


IMASUNT524003-ZONE4 configured /IMASUNT524003-ZONE4 native shared--
state after detach

4)cd /IMASUNT524003-ZONE4/
cp -p SUNWdetached.xml /usr/perf/SUNWdetached.xml_zone4
rm SUNWdetached.xml
5)start base server patching.After completion of full patching with extra patches
reboot the base srevr and proceed with further steps

6)cd /
zoneadm -z IMASUNT524003-ZONE4 attach -u

7)Boot the zones.

------------------------
zone daemon:
zoneadmd daemon
------
zone files:
/etc/zones/IMASUNT54401-IBNKZ09.xml -- all configuration files,cpu,ip, mount point
/etc/zones/index -- zonename,zonepath,status

IMASUNT54401-zone1:installed:/IMASUNT54401-zone1:5ad84b36-d1e9-4444-db5c-
d58ca864e000
--------------------
for migration:
cat /etc/passwd |awk -F: '{print "useradd " " -u " $3 " -g "
$4 " -d " $6 " -m " " -s " $7 " " $1 }'
-----------------------------
OK prompt alias:
ok>printenv
ok>devalias
ok>show-devs
ok>nvalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@0,0:a
ok>nvalias rootmirr /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@1,0:a
ok>nvstore
ok>boot rootmirr
ok>reset-all --- to store permanently

to DVD:
probe-scsi-all

/ssm@0,0/pci@1c,600000/pci@2/scsi@2
Target 0
Unit 0 Disk FUJITSU MAW3147NCSUN146G1703
Target 1
Unit 0 Disk FUJITSU MAW3147NCSUN146G1703
Target 2
Unit 0 Processor Sun D240 1.09
Target 3
Unit 0 Processor Sun D240 1.09
Target 4
Unit 0 Removable Read Only device TSSTcorpCDDVDW TS-H652J SI01
Target 6
Unit 0 Disk FUJITSU MAN3367M SUN36G 1804

------
{4} ok show-disks
a) /ssm@0,0/pci@1d,600000/SUNW,qlc@2/fp@0,0/disk
b) /ssm@0,0/pci@1c,600000/pci@2/scsi@2,1/disk
c) /ssm@0,0/pci@1c,600000/pci@2/scsi@2/disk
d) /ssm@0,0/pci@1c,700000/SUNW,qlc@1/fp@0,0/disk
e) /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0/disk
f) /ssm@0,0/pci@1b,600000/SUNW,qlc@2/fp@0,0/disk
g) /ssm@0,0/pci@1b,700000/SUNW,qlc@2/fp@0,0/disk
h) /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0/disk
i) /ssm@0,0/pci@1a,600000/pci@2/scsi@2,1/disk
j) /ssm@0,0/pci@1a,600000/pci@2/scsi@2/disk

select c : then
nvalias cdrom ctrl+y@4:f
nvstore
------------------------------------------
To link aggegation:
To create: dladm create-aggr -d e1000g8 -d e1000g9 1
To check:dladm show-link / dladm show-aggr

root@IMM90K-17 # dladm show-aggr


key: 1 (0x0001) policy: L4 address: 0:15:17:37:de:34 (auto)
device address speed duplex link
state
e1000g8 0:15:17:37:de:34 0 Mbps half unknown
standby
e1000g9 0:15:17:37:de:35 0 Mbps half unknown
standby

To delete: dladm delete-aggr 1

then use interface:


ifconfig aggr1 plumb

------------------------------------------
To take solaris zone backup:
logon to the base server (10.16.15.235)

mkdir /rootbkp

mount -F nfs 10.16.58.40:/primear/rootbkp /rootbkp


mkdir -p /rootbkp/10.16.15.235

fssnap -o bs=/var/tmp /IMASUNT54402-IBNKZ01

mkdir /zonesnap

mount -o ro /dev/fssnap/0 /zonesnap

ufsdump 0f /rootbkp/10.16.15.235/IMASUNT524007-ZONE1 /zonesnap

umount /zonesnap
fssnap -d /dev/fssnap/0
=================================
RIP route daemon:
To stop:svcadm disable svc:/network/routing/route:default
To start :svcadm enable svc:/network/routing/route:default
root 19632 28045 0 11:45:08 ? 0:00 /usr/sbin/in.routed

=====================================================================
for format disk in loop :
for i in `cat /tmp/list`
do
echo " disk Name: $i "
format $i < /tmp/t2.txt
done

root@IHYDSUNM9K01-D1 # cat /tmp/t2.txt


t
0
y
q

===============================
For 4k block size:
newfs -b 4096 /dev/md/rdsk/d601

To see:
mkfs -F ufs -m /dev/md/rdsk/d601
---------------------------------

cron issue creating sendmail :


>/dev/null 2>&1
00 21 * * * /bin/bash /export/home/ipruadm/SCRIPTS/SFTP_HA_Apache_Access_Logs.sh
>/dev/null 2>&1

==============================
Veritas explorer :
/opt/VRTSspt/VRTSexplorer/VRTSexplorer

=========================
EMC powerpath :
EMCPower.SOLARIS.5.2.SP2.b012.tar
tar -xvf EMCPower.SOLARIS.5.2.SP2.b012.tar

pkgadd -d .

================================
NIC setting :
/platform/sun4v/kernel/drv/nxge.conf

adv-autoneg-cap = 1;
adv_10gfdx_cap = 0;
adv_1000fdx_cap = 1;
adv_100fdx_cap = 0;
adv_10fdx_cap = 0;

For e1000g:
/kernel/drv/e1000g.conf
AutoNegAdvertised=32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0;
===================================
zpool showing in degraded state :
zpool clear icorepool c8t5006048C52A56FF6d151
===========================================
EXTENDCG ERROR :
bash-3.00# extendvg ipsvg2_dmx hdiskpower50 hdiskpower51 hdiskpower52
0516-1339 extendvg: Physical volume contains some 3rd party volume group.
0516-1397 extendvg: The physical volume hdiskpower50, will not be added to
the volume group.

bash-3.00# dd if=/dev/zero/ of=/dev/hdiskpower52 bs=1024 count=10


10+0 records in.
10+0 records out.

extendvg ipsvg2_dmx hdiskpower50 hdiskpower51 hdiskpower52

===================================================================
Logs of performance :
VERITAS COMMAND TO BE RUN AT THE TIME OF TESTING (INTEREST RUN):
----------------------------------------------------------------
# cd /usr/perf
# mkdir 415-098-302
# cd 415-098-302
# vxstat �g <diskgroup> -r
# vxstat �g <diskgroup_name> -vps �i 1 �c 3600 >> 415-098-302_vxstat.out &
------------------------------------------------
# /usr/perf/FirstLook/start_look

# vxdmpadm iostat start


# vxdmpadm iostat show all interval=5 count=600 >> 415-098-302_vxdmpadm.iostat &

AFTER ONE HOUR:


---------------
# /usr/perf/FirstLook/stop_look
# vxdmpadm iostat stop

# /opt/VRTSspt/VRTSexplorer/VRTSexplorer

SUN COMMANDS TO BE RUN TO COLLECT LOGS:

# /usr/perf/guds_2.9.5 -q -X 2 -c 30 -i 1 -n 20 -w 0 -s 3-3997476101
# /usr/perf/Dtrace/Readme_dtrace - read the readme_dtrace & run the relative
command accordingly.
# /usr/perf/dtrace1.sh

============================================================

scp issue not able to scp file more than 100mb

step 1:
root@MLXCTMARG02 # ndd -get /dev/ip ip_lso_outbound (for checking the
current value)
1
root@MLXCTMARG02 # ndd -set /dev/ip ip_lso_outbound 0 (for disabling)

root@MLXCTMARG02 # ndd -get /dev/ip ip_lso_outbound (for verifying


whether it's disabled)
0
and set :Also added the below mentioned line to /kernel/drv/e1000g.conf file to
make the changes permanent (i.e. persistent across reboots)
lso_enable=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;

step 2:
cat /etc/system | grep -i sum
change set ip:dohwcksum o to 1 and take reboot.

=======================
To enable local multipathing :
stmsboot -e
After this it will edit /kernel/drv/fp.conf
see
mpxio-disable="no"

---------------------
1) To disable native multipathing on solaris server
stmsboot -D fp -d

2) To enable native multipathing on solaris server


stmsboot -D fp -e

3) To check status
stmsboot -L

stmsboot: MPxIO is not enabled----------if disabled


stmsboot: MPxIO disabled

=========================
sun explorer
scextended :

explorer -w default,scextended

explorer -w default,localzones,smfextended

ssh issue : max connection :


ssh -vvv -l username <ip> -- to diagnos
==========================
To find permanemt memory resides on IO board :

cfgadm -alv | grep -i per

SB17::memory connected configured ok base address


0x22000000000, 16777216 KBytes total, 7190648 KBytes permanent
=================================
solaris services not running :
ssh , svc:/system/sysidtool:net

then zlogin -C <zone name> ... give term to vt100 (3 option)

=====================================
cfgadm -alv | grep -i perma
====================================

For 4k block size:


newfs -b 4096 /dev/md/rdsk/d601
To see:
mkfs -F ufs -m /dev/md/rdsk/d601
---------------------------------

memory :
3144864*4096/1024/1024/1024 -- value is used memory.
=====================================
If solaris is booted with read only filesystem then :

root@ # /lib/svc/method/fs-root
root@ # /lib/svc/method/fs-usr

mount -o rw,remount /dev/dsk/c0t0d0s0 /

===============================================
To repository :
/lib/svc/bin/restore_repository

=======================================
How to add raw partition on zone :

zonecfg -z zone1
zonecfg:zone1> add device
zonecfg:zone1:device> set match=/dev/md/rdsk/d40
zonecfg:zone1:device> end
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit

Container must be rebooted (# zoneadm -z zone1 reboot) to get access to this new
device. Make sure that you have stopped all oracle processes in your container
before rebooting. As soon as your container boots you may login to it and use new
device for ASM (assuming that ASM instance is running).

To remove :

remove device match=/dev/md/rdsk/d234


===========================================
If format showing sector instead of cylinder then :

format -e c6t2d0
t
AVAILABLE DRIVE TYPES:
0. Auto configure
1. other
Specify disk type (enter its number)[1]: 0
format> la
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]? y

==========================================
To modify project in Solaries :
projmod -s -K 'project.max-shm-memory=(privileged,64424509440,deny)' NetBackup

user.ora10g:100::ora10g::project.max_nprocs=(priv,50000,deny);project.maxuprc=(priv
,50000,deny);project.maxusers=(priv,4096,deny);project.pidmax=(priv,60000,deny)

To delete
projdel user.root
---------------------------------

NFS not able to mount from Aix to sun :


make entry in /etc/hosts file and disable following serives :
disabled Nov_13 svc:/network/nfs/server:default
disabled Nov_13 svc:/network/nfs/rquota:default
disabled 19:27:43 svc:/network/nfs/client:default
online 19:27:55 svc:/network/nfs/nlockmgr:default
online 19:27:55 svc:/network/nfs/cbd:default
online 19:27:56 svc:/network/nfs/mapid:default
maintenance 19:27:56 svc:/network/nfs/status:default

=======================================================================
Storage open migrator :

scp perf@10.16.59.111:/softwares/emc/EMC/open_replicator/EMComlm.SUN_3.11.tar

/usr/perf/openmigrator/510/EMCom

tar -xvf EMComlm.SUN_3.11.tar

/etc/opt/EMCom/bin/sparcv9

Exersise :

cd /etc/opt/EMCom/bin/sparcv9
tunning :
./stormigrate tune -ceiling 150 --------------- checkpoint speed
./stormigrate tune -nthreads 20
./stormigrate_64 tune -mio_recover_action Ignore
bash-3.00# ./stormigrate tune

System wide Open Migrator Tune Parameters

Parameter Value
----------------------------------- --------
I/O Size 128 kb
Ceiling 200 MB/s
Mover threads 40
Checkpoint Size 256 MB
Mirror I/O Throttle Performance Ratio 200 %
Mirror I/O Throttle Recovery Action Ignore

./stormigrate create -session ZONE1 -file IMASUNT524003-ZONE1


./stormigrate query -session ZONE1
./stormigrate show -session ZONE1

./stormigrate activate -session ZONE1


./stormigrate copy -session ZONE1

-----------------------
To deactivate :
# ./stormigrate deactivate -session session110
# ./stormigrate query -session session110

Session session110 is not active.

# ./stormigrate deactivate -session session120


# ./stormigrate deactivate -session session130
# ./stormigrate deactivate -session session140
# ./stormigrate deactivate -session session150
# ./stormigrate deactivate -session session160
# ./stormigrate deactivate -session session170
# ./stormigrate deactivate -session session175
# ./stormigrate list

Session State
-------------------------------- -----------
session100 Inactive
session110 Inactive
session120 Inactive
session130 Inactive
session140 Inactive
session150 Inactive
session160 Inactive
session170 Inactive
session175 Inactive

./stormigrate deactivate -session ZONE1


./stormigrate list

# ./stormigrate show -session session100

MB
Source Size Target
---------------------------------- --------- ----------------------------------
/dev/md/rdsk/d101 256000 /dev/md/rdsk/d201
/dev/md/rdsk/d102 256000 /dev/md/rdsk/d202

Session Name: session100


Session State: Active
Action Plan: Copy
Task States: Done
Number of Pairs: 2
Total Source Size: 512000 MB

==========================================

passwd -r files <username>

==========================================
After replacing faulty hard disk in svm meta :

Invoke: metareplace d20 c0t0d0s1 <new device>

then replace faulty hard disk , create metadb if any on this disk and :

metasync d10
metareplace -e d10 c0t0d0s0
=============================================
TCP parameter :

bash-3.00# ndd -get /dev/tcp tcp_conn_req_max_q


10000
bash-3.00# ndd -get /dev/tcp tcp_conn_req_max_q0
8192
bash-3.00# ndd -get /dev/tcp tcp_time_wait_interval
30000

========================================================

Backup vlan :

172.16.104.16

=======================================================
To set date in 24 hour format :

TO GET 24-HOUR TIME:


$ export LC_TIME=C
$ wlsnotif | grep Date
(sample output)
Date: Tue Jun 12 13:39:16 2007

TO GET AM/PM TIME:


$ export LC_TIME=en_US.ISO8859-1
$ wlsnotif | grep Date
Date: Tue 12 Jun 2007 01:39:16 PM CDT

========================================================
DVD:
10.16.15.238
10.25.68.84 0613AM0263 V890
=========================================

Zone netmasks
net:
address: 10.50.43.160/24
physical: igb0
defrouter: 10.50.43.129

===================================================
PS1 / PS2 :
PS1="{`hostname`} \$PWD $ "
export PS1

==========================
All svcs services files in :
/var/svc/manifest/network

=======================================
Migration steps :
cut -d: -f1 /etc/passwd

for i in `cut -d: -f6 /etc/passwd `; do echo "DIR : $i "; cd $i; df -h .; echo
"***********************************"; done
tar -cvf 172_16_41_105.tar /etc/passwd /etc/shadow /etc/inet/services
/etc/system /etc/inet/hosts /etc/mail/sendmail.cf /etc/mail/submit.cf /etc/group
/etc/cron.d/cron.deny /etc/cron.d/cron.allow /var/spool/cron/crontabs
/usr/perf/perfmon* /etc/netmasks /etc/defaultrouter

On destination server :
cp /etc/passwd /etc/passwd_orig
cp /etc/shadow /etc/shadow_orig
cp /etc/inet/services /etc/services_orig
cp /etc/system /etc/system_orig
cp /etc/hosts /etc/hosts_orig
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf_orig
cp /etc/mail/submit.cf /etc/mail/submit.cf_orig
cp /etc/group /etc/group_orig
cp /etc/cron.d/cron.deny /etc/cron.d/cron.deny_orig
cp /etc/cron.d/cron.allow /etc/cron.d/cron.allow_orig
cp -rp /var/spool/cron/crontabs /var/spool/cron/crontabs_orig

=================================================

If format commnad is not working then.


NOINUSE_CHECK=1

==============================================
For clear memory fault :

# fmadm faulty
# fmadm repair <uuid>
# cd /var/fm/fmd
# rm e* f* c*/eft/* r*/*
# fmadm reset cpumem-diagnosis
# fmadm reset cpumem-retire
# fmadm reset eft
# fmadm reset io-retire
# init 5
===========================================
lquery

===========================
home dir issue in soalris 9
ps -ef|grep auto
root 2028 2025 0 23:44:08 ? 0:01 /usr/lib/autofs/automountd
root 2025 1 0 23:44:08 ? 0:00 /usr/lib/autofs/automountd
/etc/init.d//autofs stop

===========================================
Sudo in solaris :

-rw-r--r-- 1 perf staff 2091008 Jul 1 15:06 sudo-1.8.5p1-sol10-sparc-


local
-rw-r--r-- 1 perf staff 132096 Jul 1 15:26 libintl-3.4.0-sol10-sparc-
local
-rw-r--r-- 1 perf staff 2642944 Jul 1 15:26 libiconv-1.14-sol10-sparc-
local
-rw-r--r-- 1 perf staff 1921536 Jul 1 15:27 libgcc-3.4.6-sol10-sparc-
local
pkgadd -d sudo-1.8.5p1-sol10-sparc-local
pkgadd -d ./libgcc-3.4.6-sol10-sparc-local all
To activarte one :/usr/local/bin/sudo -l ( It wonn't ask pasdsword for that
particular session )

To edit :
/usr/local/sbin/visudo
pkgadd -d -- > Selet all

Sudo file :/usr/local/etc/sudoers

User_Alias USERADMINUSERS = perf


Cmnd_Alias USERADMINCMD = /usr/sbin/useradd, /bin/kill
USERADMINUSERS ALL= (root) NOPASSWD: USERADMINCMD
perf ALL =/usr/bin/sh /scripts/perfscript ----------------------> for perticular
premission execution on file

=======================
password expiry:
passwd -x 365 root
usermod -f 365 root

To check password:
logins -ox -l q11adm

=========================================
No utmpx entry. You must exec "login" from the lowest level "shell"
then :

cp -rp /var/adm/utmpx /var/adm/utmpx_bkp


>/var/adm/utmpx

=================================================
zlogin not possible
zlogin -S IJPRSUNT4-02-Z05
====================
snoop for port
snoop -d nxge4 tcp port 443
snoop -ta -d nxge2
snoop �d e1000g3 -s 0 -o /tmp/cache.snoop tcp port 11211 and host 10.16.12.64
snoop -ta -d e1000g3 10.16.241.57 port 50633 > /tmp/snoop50633.out
binary : snoop -ta �d nxge2 -s 0 -o /usr/perf/snoop.bin tcp port 1604
text format : snoop -ta �d nxge2 tcp port 1604 > /usr/perf/snoop.txt
guds : /usr/perf/guds_3_0 -q -X 2 -c 30 -i 1 -n 15 -w 0 -d "Performance Issue on
zone05" -s 3-6935707307

59 23 * * * ps -ef | grep Snoop | grep -v grep | awk '{print $2}' | xargs kill -9
--------------
#snoop -ta -d nxge2 -s 0 -o /usr/perf/snoop.bin tcp port 1604
#ps -ef| grep snoop |grep -i nobody |awk '{print "kill -9 " $2 " " $3}'
>/tmp/snoopkill
#ps -ef|grep /usr/perf/snoop |awk '{print "kill -9 " $2 " " $3}'>>/tmp/snoopkill
#chmod 777 /tmp/snoopkill
ps -ef | grep snoop | grep -v Snoop | grep -v grep | awk '{print $2}' | xargs kill
-9
#chmod 777 /usr/perf/snoop.bin
#sh /tmp/snoopkill
mv /usr/perf/snoop.bin /tmp
mv /usr/perf/snoop.txt /tmp
---------------------
Rescan :
luxadm -e forcelip /devices/ssm@0,0/pci@19,700000/QLGC,qlc@2,1/fp@0,0:devctl
luxadm -e forcelip /devices/ssm@0,0/pci@1d,700000/QLGC,qlc@2,1/fp@0,0:devctl

==============================
Murex nic upgrade :
POA for NIC driver installation on 10.50.43.152 & 10.50.43.153
--------------------------------------------------------------
Take preboot logs
ifconfig bnx0 down
ifconfig bnx0 unplumb
pkgrm BRCMbnx
cd /usr/perf/BRCMbnx-6.0.3-solaris10-i386/bnx/gldv3
pkgadd -d BRCMbnx.pkg
=============================
To update boot arcive :

bootadm update-archive
bootadm update-archive -R /a

====================================
To print whole line in awk :
iostat -e | awk '$NF !~ /0/ '

=============================================
/etc/resolve.conf :

cat /etc/resolv.conf
search icicibankltd.com
nameserver 10.16.1.168
nameserver 10.50.37.84
nameserver 10.50.37.170

------
cat /etc/nsswitch.conf
hosts: files dns

=======================================
root recover script : murex
/usr/apache/htdocs/manual
./app_util 0 1 sh

=========================================
zip with password encrypt :

zip -P rajekoli(password) hp-ddm(new zip filename) hp-ddm-inventory-agent-


solaris-sparc-7.60.000.9273.tar

=================================================
Zone migration : Not yet tested

zoneadm -z my-zone halt


zoneadm -z my-zone detach

find IHYDSUNT544005-Z06 -print | cpio -oP@/ | gzip >/tmp/zone6.cpio.gz

transfer /tmp/zone6.cpio.gz file to destination:

On destination :
create -a /zones/my-zone
give zonepath

zoneadm -z my-zone attach -a /zones/my-zone.cpio.gz -u

========================================================
cron vmstat for 12 hours :
ext=`date '+%m%d%H%M'`
dire=`date '+%m%d'`
host=`hostname`
if [ ! -d $dire ]
then
mkdir perfdata/$dire 2> /dev/null
fi
vmstat 30 1440 > perfdata/$dire/vmstat_15_236.$ext 2> /dev/null
exit
=========================================
Solaris 11 :
https://blogs.oracle.com/jimlaurent/entry/building_a_solaris_11_repository

===================================================================================
=
Solari 11 command :

ipadm delete-ip net0


ipadm create-ip net0
ipadm create-addr -T static -a local=ipaddress/24 net0/v4static

353 ipadm create-addr -a local=172.16.17.195/21 ipmp0/v4

pkg set-publisher -G "*" -g http://172.16.17.195:8080 solaris


-----------------------
For veritas:
mkdir /s11_repo

rw-r--r-- 1 root root 3912765440 Apr 18 02:31 V35100-01.iso


-------------- base
-rw-r--r-- 1 root root 3419265024 Apr 18 02:12 V35101-01.iso
-------------- base

mount -F hsfs ./V35100-01.iso /mnt


cd /mnt/repo; tar -cf - . | (cd /s11_repo; tar -xfp - )
umount /mnt
mount -F hsfs ./V35101-01.iso /mnt
cd /mnt/repo; tar -cf - . | (cd /s11_repo; tar -xfp - )

root@IHYDSUNT4-15-LD01:/export/home/repo# pkg publisher


PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///export/home/repo/repo/

cd /export/home
mount -F hsfs ./sol-11_1-sru5-05-incr-repo.iso /mnt

root@IHYDSUNT4-15-LD01:/export/home# pkgrecv -s /mnt/repo/ -d /s11_repo '*'


Processing packages for publisher solaris ...
Retrieving and evaluating 167 package(s)...
PROCESS ITEMS GET (MB) SEND (MB)
Completed 167/167 1340/1340 3321/3321

root@IHYDSUNT4-15-LD01:/export/home# pkg publisher


PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///export/home/repo/repo/
root@IHYDSUNT4-15-LD01:/export/home# svccfg -s application/pkg/server setprop
pkg/inst_root=/s11_repo
root@IHYDSUNT4-15-LD01:/export/home# svccfg -s pkg/server setprop pkg/readonly=true
root@IHYDSUNT4-15-LD01:/export/home# svccfg -s pkg/server setprop pkg/port=8080
root@IHYDSUNT4-15-LD01:/export/home# svcadm refresh pkg/server
root@IHYDSUNT4-15-LD01:/export/home# svcadm enable pkg/server

root@IHYDSUNT4-15-LD01:/export/home# pkg set-publisher -G "*" -g


http://172.16.21.254:8080/ solaris -- goving error

root@IHYDSUNT4-15-LD01:/export/home# svcs -a | grep pkg


disabled Jun_15 svc:/application/pkg/dynamic-mirror:default
disabled Jun_15 svc:/application/pkg/system-repository:default
disabled Jun_15 svc:/application/pkg/zones-proxyd:default
online Jun_15 svc:/system/pkgserv:default
maintenance 10:08:14 svc:/application/pkg/server:default
root@IHYDSUNT4-15-LD01:/export/home# svcadm clear
svc:/application/pkg/server:default

pkg set-publisher -G "*" -g http://172.16.21.254:8080/ solaris

root@IHYDSUNT4-15-LD01:/export/home# pkg publisher


PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://172.16.21.254:8080/

=======================================

svccfg -s application/pkg/server setprop pkg/inst_root=/s11_repo


svccfg -s pkg/server setprop pkg/readonly=true

pkg set-publisher -G "*" -g http://172.16.21.254:8080/ solaris

svccfg -s application/pkg/server setprop pkg/inst_root=/s11_repo


svccfg -s pkg/server setprop pkg/readonly=true

pkg set-publisher -G "*" -g http://172.16.21.254:8080/ solaris

root@IHYDSUNT4-15-LD01:/export/home# svcprop -p pkg/inst_root


application/pkg/server
/s11_repo
root@IHYDSUNT4-15-LD01:/export/home# svcprop -p pkg/port application/pkg/server
8080

root@IHYDSUNT4-15-LD01:/export/home# svcs -a | grep pkg


disabled Jun_15 svc:/application/pkg/dynamic-mirror:default
disabled Jun_15 svc:/application/pkg/system-repository:default
disabled Jun_15 svc:/application/pkg/zones-proxyd:default
online Jun_15 svc:/system/pkgserv:default
online 17:29:15 svc:/application/pkg/server:default

==================================================================
veritas dmp error :
dmpnode 331/0x378 -- conver from hexa to decimal
ls -l /dev/vx/rdmp/|grep -i 952
===================================================================
sever fault clear procedure :

Clearing faults from SC:


a) Show the faults on the system controller
sc> showfaults -v

b) For each fault listed run


sc> clearfault <uuid>

c) re-enable the disabled components run


sc> clearasrdb

d) Clear ereports
sc> setsc sc_servicemode true
sc> clearereports -y

To clear the FMA faults and errorlogs from Solaris:


a) Show faults in FMA
# fmadm faulty

b) For each fault listed in the 'fmadm faulty' run


# fmadm repair <uuid>

c) Clear ereports and resource cache


# cd /var/fm/fmd
# rm e* f* c*/eft/* r*/*

d) Reset the fmd serd modules


# fmadm reset cpumem-diagnosis
# fmadm reset cpumem-retire
# fmadm reset eft
# fmadm reset io-retire

e) Reboot the system

Run max post

ok> setenv auto-boot? false


ok> setenv diag-switch? true
ok> setenv diag-level max
ok> setenv diag_verbosity max
ok> reset-all

====================================
to find the cores

kstat cpu_info|grep core_id|sort -u|wc -l

You might also like