Professional Documents
Culture Documents
Command New
Command New
-----------------------
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
on source 10.16.12.123 :
ssh-keygen -t rsa
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
===================================
If meta is in error :
metarecover <part name> -p -m
metarecover d50 -p -m
emcpower70,emcpower71,emcpower72
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
================================
LOCALE installation:
Solaris 9 - pkgadd ; sol-10: localeadm
Patch in:
10.16.169.175:/cdrom/sol_9_803_sparc/s0/Solaris_9/Product
============================================
nfs partition :
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.....
==============================
Solaris Patching :
/dvdrom/sun/install/setup-standard.sh
/dvdrom/sun/patch/10/unpack-patches /usr/perf/
/usr/perf/tmp/install_all_patches
================================
IPMP:
/etc/hosts
cat /etc/hostname.ce0
IME15KA-04-ce0 netmask + broadcast + group ipmp0 deprecated -failover up addif
IME15KA-04 netmask + broadcast + up
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
---------------------------------------------------------
bash-3.2# cat /etc/hostname.igb0
bomincoreb4-igb0 netmask + broadcast + deprecated -failover group bomincorepb4ipmp
up \
addif bomincoreb4 netmask + broadcast + up
------------------------------------
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
===============================
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
netstat -rv
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
============
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
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 ,
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
root@MLXJMSFE02 # metaset
Set name = fe02set, Set number = 1
root@MLXJMSFE02 # metaset -s fe02set -t
root@MLXJMSFE02 # metastat -s fe02set
=====================================
Route add :
#!/usr/bin/bash
SID=$1
if [ -z $1 ] ; then
fi
-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
if [ $? -eq 0 ] ; then
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
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::::
-----------------------
cat /etc/user_attr
# /etc/user_attr
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:
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
=====================================================================
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
To Unmap:
status: iscsitadm list target -v webtradevol2
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
/usr/dt/bin/dtlogin -e
/etc/init.d/dtlogin start
file:
/usr/X11/bin/Xserver
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.
3ihelpdesk@howdenindia.com
================================
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 -
-------------------
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>
poweroff -d 01
to add:
addboard -d <> SB4/IB4
to delete :
cfgadm -c unconfigure SB
cfgadm -c disconnect SB
---------------------------------
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:
SF6900-08-SC0:SC> console -d c
SF6900-08-SC0:C> addboard SB5
SF6900-08-SC0:C> showboards
----------------------
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
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
cd /IMASUNT524003-ZONE4/
cp -p SUNWdetached.xml /usr/perf/SUNWdetached.xml_zone4
rm SUNWdetached.xml
cd /
zoneadm -z IMASUNT524003-ZONE4 attach -u
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%
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.
=============================
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
lpq
lpadmin -p printername -l
lpadmin -t printername
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:
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.
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):
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.
The banner is optional and can be disabled at the user's discretion as they submit
a print job:
Or
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:
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
===========================
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:
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
------------------------
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
------------------------------------------
To take solaris zone backup:
logon to the base server (10.16.15.235)
mkdir /rootbkp
mkdir /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
===============================
For 4k block size:
newfs -b 4096 /dev/md/rdsk/d601
To see:
mkfs -F ufs -m /dev/md/rdsk/d601
---------------------------------
==============================
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.
===================================================================
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
# /opt/VRTSspt/VRTSexplorer/VRTSexplorer
# /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
============================================================
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)
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
3) To check status
stmsboot -L
=========================
sun explorer
scextended :
explorer -w default,scextended
explorer -w default,localzones,smfextended
=====================================
cfgadm -alv | grep -i perma
====================================
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
===============================================
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 :
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
---------------------------------
=======================================================================
Storage open migrator :
scp perf@10.16.59.111:/softwares/emc/EMC/open_replicator/EMComlm.SUN_3.11.tar
/usr/perf/openmigrator/510/EMCom
/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
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
-----------------------
To deactivate :
# ./stormigrate deactivate -session session110
# ./stormigrate query -session session110
Session State
-------------------------------- -----------
session100 Inactive
session110 Inactive
session120 Inactive
session130 Inactive
session140 Inactive
session150 Inactive
session160 Inactive
session170 Inactive
session175 Inactive
MB
Source Size Target
---------------------------------- --------- ----------------------------------
/dev/md/rdsk/d101 256000 /dev/md/rdsk/d201
/dev/md/rdsk/d102 256000 /dev/md/rdsk/d202
==========================================
==========================================
After replacing faulty hard disk in svm meta :
then replace faulty hard disk , create metadb if any on this disk and :
metasync d10
metareplace -e d10 c0t0d0s0
=============================================
TCP parameter :
========================================================
Backup vlan :
172.16.104.16
=======================================================
To set date in 24 hour format :
========================================================
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
=================================================
==============================================
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 :
To edit :
/usr/local/sbin/visudo
pkgadd -d -- > Selet all
=======================
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 :
=================================================
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 :
=================================================
Zone migration : Not yet tested
On destination :
create -a /zones/my-zone
give zonepath
========================================================
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 :
cd /export/home
mount -F hsfs ./sol-11_1-sru5-05-incr-repo.iso /mnt
=======================================
==================================================================
veritas dmp error :
dmpnode 331/0x378 -- conver from hexa to decimal
ls -l /dev/vx/rdmp/|grep -i 952
===================================================================
sever fault clear procedure :
d) Clear ereports
sc> setsc sc_servicemode true
sc> clearereports -y
====================================
to find the cores