Login without root password :
# sudo Rsh
# su - batch
# ssh batst07
Check active failover cluster server :
# sudo /usr/es/sbin/cluster/utilities/clRGinfo
IPsec stop
# /usr/sbin/ike cmd=remove all
# /usr/bin/stopsrc -g ike
# /usr/bin/stopsrc -s isakmpd
# /usr/bin/stopsrc -s tmd
IP sec start
# /usr/bin/startsrc -g ike
# /usr/bin/startsrc -s isakmpd
# /usr/sbin/ike cmd=activate;
Sort all files by size
# du -sg ./* | sort -n
# du -sm * | sort -n | tail
# find . -xdev -ls | sort -nr +40 | head -50 # top 50 file consuming more space
# find . -xdev -type f -size +10000000c -exec ls -l {} \; # top files consuming more space
Increase Filesystem size
# sudo chfs -a size=+256M /var
Permission change
# sudo chmod 644 <file or directory name>
# sudo Rsh
# su - batch
# ssh batst07
Check active failover cluster server :
# sudo /usr/es/sbin/cluster/utilities/clRGinfo
IPsec stop
# /usr/sbin/ike cmd=remove all
# /usr/bin/stopsrc -g ike
# /usr/bin/stopsrc -s isakmpd
# /usr/bin/stopsrc -s tmd
IP sec start
# /usr/bin/startsrc -g ike
# /usr/bin/startsrc -s isakmpd
# /usr/sbin/ike cmd=activate;
Sort all files by size
# du -sg ./* | sort -n
# du -sm * | sort -n | tail
# find . -xdev -ls | sort -nr +40 | head -50 # top 50 file consuming more space
# find . -xdev -type f -size +10000000c -exec ls -l {} \; # top files consuming more space
Increase Filesystem size
# sudo chfs -a size=+256M /var
Permission change
# sudo chmod 644 <file or directory name>
Start Stop TSM Client agent
# cd /etc
# rc.tsmclient check
# rc.tsmclient stop
# rc.tsmclient start
# rc.tsmclient check
if facing any issue
# ps -ef | grep dsm #check TSM process
# sudo kill -9 <process id> # kill all the process id's with dsm
# sudo rc.tsmclient start
Create Snap file for PMR
# sudo snap -r # It will clear old logs
# sudo snap -ac
# cd /tmp/ibmsupt/
# ls -ltr
For Health Check :
# nmon
# topas
Search HMC from the server
# lsrsrc "IBM.MCP"
# lsrsrc IBM.management server
How to create tar Archive File
The following example, backup the entire 2daygeek directory content into 2daygeek-backup-17-Dec-2013.tar file and store the backup file at /backup/site-backup/ directory.
# tat -cfv <new tar file name> <source directory to tar>
# tar -cvf /backup/site-backup/2daygeek-backup-17-Dec-2013.tar /home/2daygeek ================ tar any directory
# tar -zcvf /backup/site-backup/2daygeek-backup-17-Dec-2013.tar.gz /home/2daygeek ================ tar and then compress it
# tar -tvf /backup/site-backup/2daygeek-backup-17-Dec-2013.tar
================ List Content of .tar Archive File
# tar -ztvf /backup/site-backup/2daygeek-backup-17-Dec-2013.tar.gz
=============== List Content of tar.gz Archive File
# tar -rvf /backup/site-backup/2daygeek-backup-17-Dec-2013.tar sawan.html sawan ================ Add Files & Directory into existing tar Archive
# tar -xvf 2daygeek-backup-17-Dec-2013.tar -C /home/sawan/2daygeek
=============== Extract tar archive File
# tar -xzvf 2daygeek-backup-17-Dec-2013.tar.gz -C /home/sawan/2daygeek
================ Extract tar.gz Archive File
# tar -xvf 2daygeek-backup-17-Dec-2013.tar sawan.html
================ Extract Single file from .tar archive File
# tar --extract --file=2daygeek-backup-17-Dec-2013.tar /home/2daygeek/tmp/webalizerftp/index.html
================ Extract Single file from the sub-directory of tar archive File
# tar -xvf 2daygeek-backup-17-Dec-2013.tar "sawan.html" "soni.html"
================ Extract Multiple file from tar archive File
Check application version
# lslpp -L | grep -i java
To Fix the corrupt filesystem
#unmount </filesystem name>
#fsck -y <lslvname>
#mount </filesystem name>
Server reboot
# shutdown -Fr
HMC Reboot
#lssyscfg -r sys -F name
#monhmc -r swap -n 0
#hmcshutdown -t now -r reboot
Change bootlist from maintenance mode
#bootlist -m normal -o
#bootlist -m normal hdisk17 hdisk16
#sync;sync;sync;reboot
No comments:
Post a Comment