Friday, December 13, 2013

Networker Client Configuration New (8.0.0.1 and NMSAP) on HP UX

Hi Friends,

Client Configuration of Networker and NMSAP module on HP UX or Linux or Solaris server.


1.       For our SAP server (10.2.5.X) series, we don’t need to open any port.
2.       Networker (8.0.0.1) and NMSAP (4.5) latest package.
3.       Install these two (first Networker and then NMSAP). Avoid Storage and Server binary package while installing. User rpm/swinstall -s/ pkgadd.
4.       Once installed, start the networker services /sbin/init.d/networker start
5.       Copy the /opt/networker/nsrsapsv.cfg from any working server to new one where we are configuring.
6.       Change the SID as per the new server’s SID in nsrsapsv.cfg file, Copy the same file to nsrsapsv_barch.cfg file and write brarchive.
7.       vi /nsr/res/servers (write FQDN and hostname of the backup server).
8.       cd /oracle/SID/112_64/dbs/
edit initSID.utl and initSID.sap file.
9.       Need to verify the colored part carefully. Permission too.
# grep -v "^#" initSID.utl
parallelism = 16
pool = DD UNIX
server = ABC
client = XYZ
debug_level = 3
nsr_debug_msg = yes
verbose = yes
retry_count = 3
arch_backint_log = /nsr/applogs/ar_backint.log.raw
backint_log =/nsr/applogs/backint.log.raw
NSR_DEBUG_DIR = /nsr/applogs
ps_exclude_backup_bi_run_nums = 2
ps_exclude_archive_bi_run_nums = 1;2
#
# grep -v "^#" /oracle/SID/112_64/dbs/initSID.sap
backup_mode = all
restore_mode = all
backup_type = online
backup_dev_type = util_file
backup_root_dir = /oracle/SID/sapbackup
stage_root_dir = /oracle/SID/sapbackup
compress = no
compress_cmd = "compress -c $ > $"
uncompress_cmd = "uncompress -c $ > $"
compress_dir = /oracle/SID/sapreorg
archive_function = copy_delete_save
archive_copy_dir = /oracle/SID/sapbackup
archive_stage_dir = /oracle/SID/sapbackup
tape_copy_cmd = cpio
disk_copy_cmd = copy
stage_copy_cmd = rcp
pipe_copy_cmd = rsh
cpio_flags = -ovB
cpio_in_flags = -iuvB
cpio_disk_flags = -pdcu
dd_flags = "obs=64k bs=64k"
dd_in_flags = "ibs=64k bs=64k"
saveset_members = 1
copy_out_cmd = "dd ibs=8k obs=64k of=$"
copy_in_cmd = "dd ibs=64k obs=8k if=$"
rewind = "mt -f $ rew"
rewind_offline = "mt -f $ offl"
tape_pos_cmd = "mt -f $ fsf $"
tape_size = 100G
exec_parallel = 0
tape_address = /dev/rmt/0mn
tape_address_rew = /dev/rmt/0m
volume_archive = (SIDA01, SIDA02, SIDA03, SIDA04, SIDA05,
                  SIDA06, SIDA07, SIDA08, SIDA09, SIDA10,
                  SIDA11, SIDA12, SIDA13, SIDA14, SIDA15,
                  SIDA16, SIDA17, SIDA18, SIDA19, SIDA20,
                  SIDA21, SIDA22, SIDA23, SIDA24, SIDA25,
                  SIDA26, SIDA27, SIDA28, SIDA29, SIDA30)
volume_backup = (SIDB01, SIDB02, SIDB03, SIDB04, SIDB05,
                 SIDB06, SIDB07, SIDB08, SIDB09, SIDB10,
                 SIDB11, SIDB12, SIDB13, SIDB14, SIDB15,
                 SIDB16, SIDB17, SIDB18, SIDB19, SIDB20,
                 SIDB21, SIDB22, SIDB23, SIDB24, SIDB25,
                 SIDB26, SIDB27, SIDB28, SIDB29, SIDB30)
expir_period = 30
tape_use_count = 100
util_par_file = /oracle/SID/112_64/dbs/initGRD.utl
#
# ls -ltr
total 32
-rw-rw-rw-   1 root       sys             47 Dec 12 19:52 servers
drwx------  12 root       sys           8192 Dec 12 19:52 nsrladb
#
# cat servers
XYZ
XYZ.XYZ.XYZ.IN
# pwd
/nsr/res
#
# grep -v "^#" nsrsapsv.cfg
BR_EXEC=brbackup
ORACLE_HOME=/oracle/SID/112_64
NLS_LANG = AMERICAN_AMERICA.US7ASCII
SAP_BIN=/usr/sap/SID/SYS/exe/run
SAPBACKUP=/oracle/SID/sapbackup
ORACLE_SID=SID
ORACLE_BIN=/oracle/SID/112_64/bin
SAPARCH=/oracle/ID/saparch
SAPREORG=/oracle/SID/sapreorg
SAPTRACE=/oracle/SID/saptrace
SAPCHECK=/oracle/SID/sapcheck
PATH=/oracle/SID/112_64/bin:.:/oracle/SID:/usr/sap/SID/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/gnome/bin:/opt/perf/bin:/usr/contrib/kwdb/bin:/opt/mozilla:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/sentinel/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/langtools/bin:/opt/wlm/bin:/opt/gwlm/bin:/opt/networker/bin
LD_LIBRARY_PATH=/usr/sap/SID/SYS/exe/run:/oracle/SID/112_64/lib
NSR_JOBD_CONNECTION_TIMEOUT=160
#
-rw-r--r--   1 root       sys           6988 Dec 12 20:01 nsrsapsv.cfg
-rw-r--r--   1 root       sys           6989 Dec 12 20:02 nsrsapsv_brarch.cfg
# pwd
/opt/networker
#
-rwxr-xr-x   1 orasid     dba          28048 Dec 12 20:08 initSID.sap
-rw-r--r--   1 root       sys          13658 Dec 12 20:10 initSID.utl
-rw-r-xr-x   1 orasid     dba           1883 Dec 12 20:14 initSID.ora
# pwd
/oracle/SID112_64/dbs
#
# ndd -get /dev/tcp tcp_keepalive_interval
600000

#
Now we can start the backup of the server through Networker. 

Love Sharing 
Amit Chopra
 


Wednesday, December 11, 2013

Duplicate Mount Point in df output

Hi Friends,

Today we got an oppurtunity to work on different problem, which we have not faced in last 3 years. the output of df -h was showing two enteries of a same mount point. below is an example :-


[root@ ~]# df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VG00-LogVol00
                     198384608  13753896 174390712   8% /
/dev/sda1               194442     17776    166627  10% /boot
tmpfs                 17425156         0  17425156   0% /dev/shm
xyz:/tools          67291072  57243200   6629632  90% /tools
10.x.x.x:/fs1_user
                     2114715648 648047488 1466668160  31% /users
10.x.x.y:/fs2_DVTools
                     1586036736 236312640 1349724096  15% /dvtools
10.x.x.x:/fs1_user
                     2114715648 648047488 1466668160  31% /users
[root@ ~]#

even when we were trying to un mount the same and then mount it with mount -a or with giving complete path (this was the case of nfs FS). it ws again and again showing two enteries of the same mount point. It was not an issue but it was a new thing. Users were easily and very much able to access the files.

1. we cheched fstab, it was fine and correct.
2. we checked messages /var/log/messages. there were no message for that.
3. we checked /etc/mtab, It was having dual enteries of same Mount points.
4. so then we think of unmounting the file system and enforcing users to release the same with fuser -kuc /users and then again umounting the same FS.
5. The above thing we did four times but still the FS /users were showing file system busy.
6. Sixth time we did it again fuser -kuc /users, suddenly our session got disconnected and on relogin Network was un reachable. Network timed out error came.
7. We at the same time contacted DC team for helping us with DRAC IP or performing

/etc/init.d/sshd status

this was giving stopped, service dead.. but PID exist.

we ask and guid him to restart the SSHD services and then we were able to open connection over putty.

/etc/init.d/sshd start

8. Now on mount -a, the File system mounted with proper output i.e. with single output of File system.

After above steps, things come back to normal.


Un mounting once the same file system will not work. We need to unmounts the same FS twice or thrice or more.
We may need also to use fuser –kuc but, it may also lead to stopping of SSHD server. so network will not be reachable. So we should and have to be ready with DRAC IP or server support from LOCAL IT or if from VM machine or from DRAC.
After starting the SSHD services back. The file system mounted correctly.
No issues were in Packages, FSTAB.
         

 
[root@ ~]# df -hT

Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/mapper/VG00-LogVol00
              ext3    190G   14G  167G   8% /
/dev/sda1     ext3    190M   18M  163M  10% /boot
tmpfs        tmpfs     17G     0   17G   0% /dev/shm
xzy:/tools   nfs     65G   55G  6.4G  90% /tools
10.x.x.y:/fs2_DVTools
               nfs    1.5T  226G  1.3T  15% /dvtools
10.x.x.x:/fs1_user
               nfs    2.0T  620G  1.4T  31% /users
[root@ ~]# cat /etc/fstab
/dev/VG00/LogVol00      /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VG00/LogVol01      swap                    swap    defaults        0 0
xyz:/tools /tools nfs defaults 1 2
 .....:/fs2_DVTools       /dvtools        nfs     defaults        1 2
....:/fs1_user  /users                  nfs     defaults        1 2
[root@ ~]# cat /etc/mtab
/dev/mapper/VG00-LogVol00 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
:/tools /tools nfs rw,addr= 0 0
:/fs2_DVTools /dvtools nfs rw,addr= 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
:/fs1_user /users nfs rw,addr= 0 0
[root@~]#


Cheers Happy Sharing
Amit Chopra

Sunday, December 8, 2013

SVN-EDGE INSTALLATION AND CONFIGURATION


For installation of SVN-INSTALLATION.
We need to do following steps.
1.       Java 1.6+ JRE/JDK must be installed.
2.       Python 2.4 to 2.6 must be installed.
3.       Chrome or Firefox or IE 8/9 or Safari has to be there.
4.       Create a user with the name “csvn”.
5.       Copy the below tar file from the running server or download it from TARMAC.



-rw-r--r--.  1 root root  90859317 Jan 21  2013 CollabNetSubversionEdge-3.2.2_linux-x86_64.tar.gz


6. “Untar” this file using untar command and KINDLY UNTAR this file using only csvn user. Please do not untar it with root user. Please use the right TAR file, this should not be incomplete TAR file. Because it can cause failure in starting the CSVN. It also gives lot of error. So request you to get and use the correct TAR file. 

7. after installing above mentioned packages. Please add below lines in .bash_profile file of User’s home.
PATH=$PATH:$HOME/bin:/usr/lib/jvm/jre-1.6.0-openjdk.x86_64:/home/csvn/csvn/bin
export PATH
JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64
export JAVA_HOME
like below.
[root@ csvn]# cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/lib/jvm/jre-1.6.0-openjdk.x86_64:/home/csvn/csvn/bin
export PATH
JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64
export JAVA_HOME
[root@ csvn]#
Next step is to start the csvn.
[root@ bin]# pwd
/home/csvn/csvn/bin
[root@ bin]# ./csvn start
It will start and will guide to open localhost:3343/csvn on explorer.
You can open the webpage using XMANAGER and LAN (IP if the server) also.
Login using default credentials (admin:admin)
The page will open like below, please put http://:3343/csvn . page will open like below :-

 
 
Now click the start button and svnedge page will be there. to start the Administration. Now SVN-EDGE admin can ask AD team to sync SVN-EDGE with AD authetication for login of autheticated users only. now depends on how big is your repository or how  big it can be. according to that LV size can be demanded.
 
 
 
Love Sharing
Amit Chopra
 
 
 
 
 
 

Thursday, December 5, 2013

GNOME error (WINDOWS SCREEN Was blinking) + LINUX

Hi Friends,

Wanted to share one problem which we faced today and issue in our server, like when we were opening a gnome-session from XSTART then screen was blinking and console window was flashing and going back. we tried the same with removing some locks but tje didnt work.

error logs in /var/log/messages was showing below message multiple times. when ever we tried to run gnome-session.


vmusr[]: [ warning] [Gtk] Unable to locate theme engine in module_path: "clearlooks"
vmusr[]: [ warning] [Gtk] Unable to locate theme engine in module_path: "clearlooks"
vmusr[]: [ warning] [Gtk] Unable to locate theme engine in module_path: "clearlooks"
vmusr[]: [ warning] [Gtk] Unable to locate theme engine in module_path: "clearlooks"
vmusr[]: [ warning] [Gtk] Unable to locate theme engine in module_path: "clearlooks"
vmusr[]: [ warning] [Gtk] Unable to locate theme engine in module_path: "clearlooks"


Below packages resolved the issues.

 
Yum groupinstall “X Window System”
yum install PackageKit-gtk-module.i686
yum install gtk2-engines.i686
yum install libcanberra-gtk2.i686

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

below are yum.log files output. this file keeps all the installation or updates done over the server.  

Dec 05 15:55:24 Updated: 
-core-libs-0.8.3-27.el6.x86_64
Dec 05 15:55:24 Updated: plymouth-graphics-libs-0.8.3-27.el6.x86_64
Dec 05 15:55:25 Updated: plymouth-0.8.3-27.el6.x86_64
ec 05 15:55:25 Updated: plymouth-utils-0.8.3-27.el6.x86_64
Dec 05 15:55:25 Updated: plymouth-plugin-label-0.8.3-27.el6.x86_64
Dec 05 15:55:25 Updated: plymouth-plugin-two-step-0.8.3-27.el6.x86_64
Dec 05 15:55:25 Updated: plymouth-theme-rings-0.8.3-27.el6.noarch
Dec 05 15:55:25 Installed: xorg-x11-drv-modesetting-0.5.0-1.el6.x86_64
Dec 05 15:55:25 Updated: xorg-x11-server-utils-7.5-13.el6.x86_64
Dec 05 15:55:26 Updated: xorg-x11-xinit-1.0.9-14.el6.x86_64
Dec 05 15:55:26 Updated: xorg-x11-drivers-7.3-13.4.el6.x86_64
Dec 05 15:55:26 Updated: plymouth-system-theme-0.8.3-27.el6.noarch
Dec 05 15:55:26 Updated: plymouth-gdm-hooks-0.8.3-27.el6.x86_64
Dec 05 15:55:26 Updated: firstboot-1.110.15-1.el6.x86_64
Dec 05 15:55:27 Updated: spice-vdagent-0.14.0-2.el6.x86_64
Dec 05 15:55:27 Updated: glx-utils-9.2-0.5.el6.x86_64
Dec 05 15:55:27 Updated: xorg-x11-utils-7.5-6.el6.x86_64
Dec 05 15:55:27 Updated: xorg-x11-apps-7.6-6.el6.x86_64
Dec 05 15:55:27 Updated: wdaemon-0.17-5.el6.x86_64
Dec 05 16:18:29 Updated: 1:gdm-libs-2.30.4-52.el6.x86_64
Dec 05 16:18:30 Updated: 1:gdm-2.30.4-52.el6.x86_64
Dec 05 16:18:30 Updated: 1:gdm-plugin-smartcard-2.30.4-52.el6.x86_64
Dec 05 16:18:30 Updated: 1:gdm-plugin-fingerprint-2.30.4-52.el6.x86_64
Dec 05 16:39:42 Updated: libX11-common-1.5.0-4.el6.noarch
Dec 05 16:39:42 Installed: libgcc-4.4.7-4.el6.i686
Dec 05 16:39:42 Installed: nss-softokn-freebl-3.14.3-9.el6.i686
Dec 05 16:39:43 Installed: glibc-2.12-1.132.el6.i686
Dec 05 16:39:43 Updated: 1:dbus-libs-1.2.24-7.el6_3.x86_64
Dec 05 16:39:43 Updated: freetype-2.3.11-14.el6_3.1.x86_64
Dec 05 16:39:43 Installed: zlib-1.2.3-29.el6.i686
Dec 05 16:39:43 Installed: freetype-2.3.11-14.el6_3.1.i686
ec 05 16:39:43 Updated: dbus-glib-0.86-6.el6_4.x86_64
Dec 05 16:39:43 Updated: libselinux-2.0.94-5.3.el6_4.1.x86_64
Dec 05 16:39:44 Updated: 1:dbus-1.2.24-7.el6_3.x86_64
Dec 05 16:39:44 Updated: libcom_err-1.41.12-18.el6.x86_64
Dec 05 16:39:44 Updated: avahi-libs-0.6.25-12.el6.x86_64
Dec 05 16:39:44 Installed: libjpeg-turbo-1.2.1-1.el6.i686
Dec 05 16:39:44 Updated: libstdc++-4.4.7-4.el6.x86_64
Dec 05 16:39:44 Installed: 2:libpng-1.2.49-1.el6_2.i686
Dec 05 16:39:44 Installed: expat-2.0.1-11.el6_2.i686
Dec 05 16:39:47 Installed: fontconfig-2.8.0-3.el6.i686
Dec 05 16:39:47 Installed: libstdc++-4.4.7-4.el6.i686
Dec 05 16:39:47 Installed: 1:dbus-libs-1.2.24-7.el6_3.i686
Dec 05 16:39:47 Installed: libselinux-2.0.94-5.3.el6_4.1.i686
Dec 05 16:39:47 Updated: libtiff-3.9.4-9.el6_3.x86_64
Dec 05 16:39:47 Updated: freetype-devel-2.3.11-14.el6_3.1.x86_64
Dec 05 16:39:48 Updated: 2:libpng-1.2.49-1.el6_2.x86_64
Dec 05 16:39:48 Updated: libXau-1.0.6-4.el6.x86_64
Dec 05 16:39:48 Updated: libxcb-1.8.1-1.el6.x86_64
Dec 05 16:39:48 Updated: libX11-1.5.0-4.el6.x86_64
Dec 05 16:39:48 Updated: libXrender-0.9.7-2.el6.x86_64
Dec 05 16:39:48 Updated: libXext-1.3.1-2.el6.x86_64
Dec 05 16:39:48 Updated: libXfixes-5.0-3.el6.x86_64
Dec 05 16:39:48 Updated: libXrandr-1.4.0-1.el6.x86_64
Dec 05 16:39:48 Updated: libXft-2.3.1-2.el6.x86_64
Dec 05 16:39:49 Updated: libgcrypt-1.4.5-11.el6_4.x86_64
Dec 05 16:39:49 Installed: glib2-2.26.1-3.el6.i686
Dec 05 16:39:49 Installed: gamin-0.1.10-9.el6.i686
Dec 05 16:39:49 Installed: atk-1.30.0-1.el6.i686
Dec 05 16:39:49 Installed: libtiff-3.9.4-9.el6_3.i686
Dec 05 16:39:50 Installed: libcom_err-1.41.12-18.el6.i686
Dec 05 16:39:50 Installed: libthai-0.1.12-3.el6.i686
Dec 05 16:39:50 Updated: libXcursor-1.1.13-6.20130524git8f677eaea.el6.x86_64
Dec 05 16:39:50 Updated: libXi-1.6.1-3.el6.x86_64
Dec 05 16:39:50 Updated: libXinerama-1.1.2-2.el6.x86_64
Dec 05 16:39:50 Updated: libXcomposite-0.4.3-4.el6.x86_64
Dec 05 16:39:50 Updated: libXau-devel-1.0.6-4.el6.x86_64
Dec 05 16:39:50 Updated: libxcb-devel-1.8.1-1.el6.x86_64
Dec 05 16:39:51 Updated: libX11-devel-1.5.0-4.el6.x86_64
Dec 05 16:39:51 Updated: libXrender-devel-0.9.7-2.el6.x86_64
Dec 05 16:39:51 Updated: libXext-devel-1.3.1-2.el6.x86_64
Dec 05 16:39:51 Updated: libXfixes-devel-5.0-3.el6.x86_64
Dec 05 16:39:51 Updated: libXft-devel-2.3.1-2.el6.x86_64
Dec 05 16:39:51 Updated: 1:cups-libs-1.4.2-50.el6_4.5.x86_64
Dec 05 16:39:51 Updated: libss-1.41.12-18.el6.x86_64
Dec 05 16:39:51 Updated: e2fsprogs-libs-1.41.12-18.el6.x86_64
Dec 05 16:39:51 Updated: 1:dbus-devel-1.2.24-7.el6_3.x86_64
Dec 05 16:39:51 Updated: keyutils-libs-1.4-4.el6.x86_64
Dec 05 16:39:52 Updated: libtasn1-2.3-3.el6_2.1.x86_64
Dec 05 16:39:52 Updated: jasper-libs-1.900.1-15.el6_1.1.x86_64
Dec 05 16:39:52 Installed: dbus-glib-0.86-6.el6_4.i686
Dec 05 16:39:52 Installed: avahi-libs-0.6.25-12.el6.i686
Dec 05 16:39:52 Installed: jasper-libs-1.900.1-15.el6_1.1.i686
Dec 05 16:39:52 Installed: libgpg-error-1.7-4.el6.i686
Dec 05 16:39:52 Installed: libgcrypt-1.4.5-11.el6_4.i686
Dec 05 16:39:52 Installed: libtasn1-2.3-3.el6_2.1.i686
Dec 05 16:39:52 Installed: gnutls-2.8.5-10.el6_4.2.i686
ec 05 16:39:52 Installed: audit-libs-2.2-2.el6.i686
Dec 05 16:39:53 Installed: keyutils-libs-1.4-4.el6.i686
Dec 05 16:39:53 Installed: krb5-libs-1.10.3-10.el6_4.6.i686
Dec 05 16:39:53 Installed: 1:cups-libs-1.4.2-50.el6_4.5.i686
Dec 05 16:39:53 Installed: pixman-0.26.2-5.el6_4.i686
Dec 05 16:39:53 Installed: libXau-1.0.6-4.el6.i686
Dec 05 16:39:53 Updated: jasper-1.900.1-15.el6_1.1.x86_64
Dec 05 16:39:53 Updated: libtasn1-devel-2.3-3.el6_2.1.x86_64
Dec 05 16:39:53 Updated: keyutils-1.4-4.el6.x86_64
Dec 05 16:39:54 Updated: dbus-glib-devel-0.86-6.el6_4.x86_64
Dec 05 16:39:54 Updated: e2fsprogs-1.41.12-18.el6.x86_64
Dec 05 16:39:55 Updated: 1:cups-1.4.2-50.el6_4.5.x86_64
Dec 05 16:39:55 Updated: libXcomposite-devel-0.4.3-4.el6.x86_64
Dec 05 16:39:55 Updated: libXcursor-devel-1.1.13-6.20130524git8f677eaea.el6.x86_64
Dec 05 16:39:55 Updated: libXi-devel-1.6.1-3.el6.x86_64
Dec 05 16:39:55 Updated: libXinerama-devel-1.1.2-2.el6.x86_64
Dec 05 16:39:55 Updated: libXrandr-devel-1.4.0-1.el6.x86_64
Dec 05 16:39:55 Updated: avahi-glib-0.6.25-12.el6.x86_64
Dec 05 16:39:56 Updated: libgcrypt-devel-1.4.5-11.el6_4.x86_64
Dec 05 16:39:56 Updated: libXdamage-1.1.3-4.el6.x86_64
Dec 05 16:39:56 Updated: 1:dbus-x11-1.2.24-7.el6_3.x86_64
Dec 05 16:39:56 Updated: 2:libpng-devel-1.2.49-1.el6_2.x86_64
Dec 05 16:39:56 Updated: avahi-0.6.25-12.el6.x86_64
Dec 05 16:39:56 Updated: libselinux-utils-2.0.94-5.3.el6_4.1.x86_64
Dec 05 16:39:56 Updated: libselinux-python-2.0.94-5.3.el6_4.1.x86_64
Dec 05 16:39:56 Updated: nss-softokn-freebl-3.14.3-9.el6.x86_64
Dec 05 16:39:56 Installed: libxcb-1.8.1-1.el6.i686
Dec 05 16:39:57 Installed: libX11-1.5.0-4.el6.i686
Dec 05 16:39:57 Installed: libXrender-0.9.7-2.el6.i686
Dec 05 16:39:57 Installed: cairo-1.8.8-3.1.el6.i686
Dec 05 16:39:57 Updated: pango-1.28.1-7.el6_3.x86_64
Dec 05 16:39:57 Installed: libXext-1.3.1-2.el6.i686
Dec 05 16:39:57 Installed: libXfixes-5.0-3.el6.i686
Dec 05 16:39:57 Updated: PackageKit-glib-0.5.8-21.el6.x86_64
Dec 05 16:39:57 Updated: PackageKit-gtk-module-0.5.8-21.el6.x86_64
Dec 05 16:39:57 Updated: PackageKit-yum-plugin-0.5.8-21.el6.x86_64
Dec 05 16:39:57 Updated: PackageKit-yum-0.5.8-21.el6.x86_64
ec 05 16:39:58 Updated: PackageKit-0.5.8-21.el6.x86_64
Dec 05 16:39:58 Installed: libXcursor-1.1.13-6.20130524git8f677eaea.el6.i686
Dec 05 16:39:58 Installed: libXdamage-1.1.3-4.el6.i686
Dec 05 16:39:58 Installed: libXinerama-1.1.2-2.el6.i686
Dec 05 16:39:58 Installed: libXrandr-1.4.0-1.el6.i686
Dec 05 16:39:58 Installed: libXi-1.6.1-3.el6.i686
Dec 05 16:39:58 Installed: libXft-2.3.1-2.el6.i686
Dec 05 16:39:59 Installed: pango-1.28.1-7.el6_3.i686
Dec 05 16:39:59 Installed: libXcomposite-0.4.3-4.el6.i686
Dec 05 16:39:59 Updated: PackageKit-device-rebind-0.5.8-21.el6.x86_64
Dec 05 16:39:59 Updated: pango-devel-1.28.1-7.el6_3.x86_64
Dec 05 16:40:00 Installed: gtk2-2.20.1-4.el6.i686
Dec 05 16:40:00 Installed: PackageKit-gtk-module-0.5.8-21.el6.i686
Dec 05 16:40:27 Installed: gtk2-engines-2.18.4-5.el6.i686
Dec 05 16:40:44 Updated: libXtst-1.2.1-2.el6.x86_64
Dec 05 16:40:45 Updated: libuuid-2.17.2-12.14.el6.x86_64
Dec 05 16:40:45 Updated: libSM-1.2.1-2.el6.x86_64
Dec 05 16:40:45 Updated: pulseaudio-libs-0.9.21-14.el6_3.x86_64
Dec 05 16:40:45 Updated: pulseaudio-0.9.21-14.el6_3.x86_64
Dec 05 16:40:46 Updated: libxml2-2.7.6-14.el6.x86_64
Dec 05 16:40:46 Installed: 2:libogg-1.1.4-2.1.el6.i686
Dec 05 16:40:46 Installed: 1:libvorbis-1.2.3-4.el6_2.1.i686
Dec 05 16:40:46 Installed: libICE-1.0.6-1.el6.i686
Dec 05 16:40:46 Installed: libxml2-2.7.6-14.el6.i686
Dec 05 16:40:47 Installed: alsa-lib-1.0.22-3.el6.i686
Dec 05 16:40:47 Installed: libtool-ltdl-2.2.6-15.5.el6.i686
Dec 05 16:40:47 Installed: libtdb-1.2.10-1.el6.i686
Dec 05 16:40:47 Updated: pulseaudio-utils-0.9.21-14.el6_3.x86_64
Dec 05 16:40:47 Updated: libblkid-2.17.2-12.14.el6.x86_64
Dec 05 16:40:47 Installed: gstreamer-0.10.29-1.el6.i686
Dec 05 16:40:48 Installed: flac-1.2.1-6.1.el6.i686
Dec 05 16:40:48 Installed: libuuid-2.17.2-12.14.el6.i686
Dec 05 16:40:48 Installed: libSM-1.2.1-2.el6.i686
Dec 05 16:40:48 Installed: libXtst-1.2.1-2.el6.i686
Dec 05 16:40:48 Installed: ncurses-libs-5.7-3.20090208.el6.i686
Dec 05 16:40:48 Installed: readline-6.0-4.el6.i686
Dec 05 16:40:49 Installed: sqlite-3.6.20-1.el6.i686
Dec 05 16:40:49 Installed: libsndfile-1.0.20-5.el6.i686
Dec 05 16:40:49 Installed: libasyncns-0.8-1.1.el6.i686
Dec 05 16:40:49 Installed: tcp_wrappers-libs-7.6-57.el6.i686
Dec 05 16:40:50 Updated: util-linux-ng-2.17.2-12.14.el6.x86_64
Dec 05 16:40:50 Updated: pulseaudio-module-x11-0.9.21-14.el6_3.x86_64
Dec 05 16:40:50 Updated: libxml2-devel-2.7.6-14.el6.x86_64
Dec 05 16:40:50 Updated: libxml2-python-2.7.6-14.el6.x86_64
Dec 05 16:40:50 Updated: pulseaudio-module-bluetooth-0.9.21-14.el6_3.x86_64
Dec 05 16:40:51 Updated: pulseaudio-module-gconf-0.9.21-14.el6_3.x86_64
Dec 05 16:40:51 Updated: libSM-devel-1.2.1-2.el6.x86_64
Dec 05 16:40:51 Updated: 1:libvorbis-1.2.3-4.el6_2.1.x86_64
Dec 05 16:40:51 Updated: readline-6.0-4.el6.x86_64
Dec 05 16:40:51 Installed: pulseaudio-libs-0.9.21-14.el6_3.i686
Dec 05 16:40:51 Installed: libcanberra-0.22-1.el6.i686
Dec 05 16:40:52 Installed: libcanberra-gtk2-0.22-1.el6.i686
[root@log]#

Love sharing
Amit Chopra

Friday, November 22, 2013

Thought of the day

Always appreciate self's and other's small efforts. It feels good factor for everyone. 
We can take big inspiration from an ant. 
Love sharing 
Amit Chopra 

Monday, November 11, 2013

Fight with inner self

When we do not scare from our death and deeds, then why we scare from our bad habits. We should face and fight them at each and every moment to oppose them. 

Fight against yourself 
Amit 

Friday, November 8, 2013

Life's quote

The world runs due to the presence of God, positive thoughts and attitude, hard and smart workers, new creative ideas and with a lot of smile on every ones face. 


Cheers 
Happy sharing 

Tuesday, October 29, 2013

Diwali celebration with planting trees / Green Diwali

Hey friends, 

Can there be a Diwali celebration with planting the same number of trees comparing the number of crackers we burn. Can there be thought of Happy Green Diwali. 

Green Diwali a day for the entire earth,  a day of celebrating with exchanging of plants, flowers and small buds. 
Buying happiness for this entire instead of making self or single happiness. A day to laugh and greet a lot with spreading love of planting. Preparing rangoli with colorful flowers, mud and giving good food and clothes to those who can't afford it. Giving love and giving love can be our moto. 

Play safe Diwali plant more tress and encourage Green Diwali. 



Love sharing 
Amit chopra 

Sunday, September 22, 2013

Aaj fir main aankhein moondh k so Gaya

Aaj fir main aankhe moondh k so Gaya, 
Wakt ka charkha aaj fir din se Raat kar Gaya. 

Kehna Kya chahta hu, bus khud se shikayat hai,
Ya kaho k napunsakta ki dastak hai, 
Duniya Balatkar kar k khud ko sher samajh rahi hai, 
Ya aurat ne Durga ka roop Lena band kar diya hai,
Samaaj zulmi Ho Gaya hai ya zulm hi samaaj hai,
Jaha apni Bahan shayad apni hai, dusre ki koi ijjat nai, 
Ye Kya Dharam k naam pe kuritya nibha rahe hain,
Main jaat ka ye main jaat ka wo bus ye shabd taandav macha rahein hain, 

Roti pet mein daal do, Sab kutte ban k bhokna shuru, 
Jaha desh ki dharti maa aawaaz ijjat bachao ki lagati Ho, 
Waha maa bahano ki ijjat se khilwaad Karte hasi manate hain,
Bhaaad mein Gaye Granth saare insaaniyat ki to kadr Karte nai, 
Jaanwaro se bure haalaat hain hamare,
Is shareer ko b keechad ya gandh se rangte thakte nai. 

Wah re dharmo aur ritiyo k daata, paida karna band kar sabko maar de, 
Ye aawaaz hai un bechari dukhiyo ki, jinka choose liya khoon inhone, 
Maa, Beti, Bahan, aadi naam kyo rakh Diye inko ek hi naam sunai padta hai, 
Apni maa b bik jaaye to koi aansu nai gire Inka, 
Hawas bhari aankhe nooch lein unko b,
Agar Bhagwan bani mata b dharti pe aaaye jo,
Na paida Ho ye Mard zaat aurat zaat ki ghinoni soch,
Insaan hi paida Ho dimag mein prem aaaye jo, 

Jodu main haath paru main charan Sab k,
K ijjat Karo aurat zaat ki, acha do minute jee k har koi mar jaaye,
Keedein gandgi k na panpe bheetar Mann k, 
Hum Sab ek hain, hum Sab insaan hain seekhein sabak ye...

Kuch ache karam kar k main garb se aankhein moondh k Hamesha k Liye so Gaya. 

Jai hind jai Bharat 

Friday, August 30, 2013

Woh

Mere haatho mein uski mahek aati Hai,
Saanso mein uski Saanse,
Main jeeta to uske naam se hu,
Jeena aya Hai mujhko waha se. 

Love Sharing
Amit 

Tuesday, August 27, 2013

Bharat Mata ki jai

Bharat Mata Ki Jai

Is aandhi mein kaha dum Jo humein Rok de, 
Is Tufan mein kaha dum jo humein mod de,
Iraadon mein hamare itni himmat hai,
K aazaadi k deewano ki tarah Wakt ko Rok dein. 

Jaanein Gava kar mili hai aazaadi humein,
Iski kadr kartein hai hum, 
Koi aera Gera kaise koi Iska junoon tod de.

Bhagat Singh, lala lajpat rai jaise abhimaan hai hamare,
To kyo na hum is mitti pe apni Jaaan vaar dein, 
Mera desh Mahan hai, mera desh Mahan hai Iska Naara hum kaise chod dein. 


Bharat mata ki jai 
Bharat mata ki jai 
Bharat mata ki jai 


Love sharing 
Amit Chopra 

Wednesday, August 21, 2013

[Using open mode] VI editor + HP UX

Friends,

Got an error yesterday while opening VI editor. it was giving an error of [Using Open Mode]. did some googling for it and found below solution. it worked. I donot know and have not tested if it works on other flavors of UNIX like solaris, linux, etc.


#

Message while opening VI

 

# vi /etc/rc.config.d/netconf

I don't know what kind of terminal you are on - all I have is 'unknown'.

[Using open mode]

"/etc/rc.config.d/netconf" [Read only] 169 lines, 6659 characters

# netconf:  configuration values for core networking subsystems

:q!

#

* it was not allowing to save the opened file.

below solution worked.

# TERM=vt100
# export TERM

If the error still persit on next login session. then put above mentioned in /etc/profile or profile file of user.



Love Sharing
Amit Chopra

Tuesday, August 20, 2013

Rab nu manan waleya

Ek Dharam nu v vand ta, 
Naa administration da la ta, 
Odda hi Kai dharam ne,
Naale rabb nu manan de Tarike nave lab ditte 

Main ta dila di maari nai,
Gaala kaddan to Mandir ch v hatda nai,
Rabb nu manan de rah dassan Lagya ae,
Loka nu pata nai Shayad dharam banan wale v nai rahe. 

Rabb saza denda hai mainu pata nai,
Par insaniyat na follow kar k, 
Insan apne aap nu saza denda jarur hai,
Fir b rab achai te burai dono jinda rehndi aa. 

Love sharing 
Amit chopra 

Friday, August 16, 2013

Interview questions on HP UX 11.31i part 3

Hi Friends,

Found some good questions on HP UX 11.31interview. My greed to learn UNIX is increasing day by day.

1. How to configure autofs in HP UX.
2. What are the services which we have to start after configuring AUTOFS.
3. What are the permissions and ownership required for NFS and AUTOFS file sharing?
4. How to create NPAR i.e. first VPAR?
5. How to assign resources to VPAR?
6. What is the minimum resource required to create a NPAR?
7. What is the minimum resource required to create a VPAR?
8. What is the process to boot an NPAR
9. How to boot a VPAR from other VPAR.
10. How to change the mode of VPAR to boot into NPAR.
11. Booting a system into NPAR/VPAR mode from EFI SHELL?
12. What is the significance of EFI SHELL?
13. Do we need to reset the NPAR before creating new NPAR? what is the command to reset NPAR configuration from EFI SHELL?
14. Can we assign resources on one VPAR from other VPAR? If Yes, then how and If not then why?
15. What is VPMON?
16. What is the Software name required for installing VPAR? In which OE version that software is available (BASE OE/VSE OE/DCOE)
17. What is the use of vparenv command?
18.What does VPARSTATUS -A?
19. How to boot cell and partition from MP console?
20. What is the DB file of VPAR and what is its location and its significance?


Thanks and Love Sharing
Amit Chopra


 

Thursday, August 15, 2013

CPU and Memory Reports HP UX

Hi Friends,

To find detailed view and reports of CPU, memory, disk utilization, file system usage, application, disk io, swap etc. there is very good utility in HP UX. I did it in HP UX 11.31, not aware of other  version. need to check more on it.
EXTRACT utilty, which is making use of scopeux behind is very good extract utility. It can bring out report of more than a month. 
Reading man page of extract can help you to choose multiple option for individual CPU or other parameter. We used the global option which brings detailed report. U can extract the same data in excel sheet and choose according to your requirement. And create graphs for your monthly report. 

€ the configuration file for export is in /var/opt/perf/Parms 
€ the services which need to be restarted  are
#/opt/perf/bin/perfstat :- command to check the o/p of performance status
#/sbin/init.d/ovpa stop
# /sbin/init.d/ovpa start
The command to take out report one month is :-


#extract -xp -g -b today-30 -e today -f /tmp/reports.out --  to bring out 30 days report from current date.

#/usr/bin/uuencode /tmp/reports.out /tmp/reports.out |mailx -m -s "mem1" xyz@xyz.com

(using above command you can mail yourself the reports.out file or any attachment/file..)

would like to show how the o/p of data in graph format can be viewed in excel sheet after it is extracted on excel sheet.

CPU :-



similarly Memory, File system usage, etc reports can be taken out.


 Thanks & Love Sharing
Amit Chopra

 



 

Tuesday, August 13, 2013

We are help less


Physical wall of Germany broken but still we can see some differences.
We became independent but still we are slave with our mentality. We still need to work on it. 
Religions are free to be chosen but still we are lacking in our thoughts to accept one. 
Millions roads are built in this world but we are bounded by borders. 
Thoughts are like oceans but very less of them are positive.


......

Want to post more on it.

Regards
Amit chopra 

Monday, June 24, 2013

Dam of positive thoughts

Lets create a Dam of positive Attitüde in our selves Then Around us Then every Where. So that Life Look more beautiful than what it is. 
Love Sharing 
Amit chopra 

Saturday, June 22, 2013

Love and confidence

With the span of Time and Constant Efforts One Attiains more and more confidence. And Life Runs on confidence and Love only. 

The Magic of We

Working in Absence of Manager Feels Good to everyone. Sometimes it is also Seen that employees gives awsome Performance and their best to work.
Why cant their be world of Friends in Office Where each Take work as their responsibility. Each Individual Share his Or her view on Problems and tasks. Each assigned task is a collective Approach. Yes i do feel that this is difficult, but we can achieve it. ........... 

Monday, June 10, 2013

Growing up

Growing up means taking drugs, drinking  alcohol, roaming on streets, passing comments to girls at street, playing with lives of girls, small and young ones, thinking only bad and negative about the world and the world living around.
Above discussed is an easy life. Now what a hard life is? That you friends who are reading this has to tell? 

Wednesday, June 5, 2013

Energy

Can we produce and save energy controlling a tornado ? It has enormous energy and if it can be controlled and saved. 

Love sharing 
Amit chopra 

Monday, June 3, 2013

Life

We have caste and religions. Instead of making benefit from it. we are stuck In idiotic mind set where we forget humanity. 

Wednesday, May 29, 2013

Differences

People may think they are different on Basis of Color, Language, Health, Wealth but only what remains Same everywhere are thoughts.

Wednesday, April 3, 2013

sendmail[9855]: daemon MTA: problem creating SMTP socket + LINUX

Hey Friends,

Today we faced a different problem in sendmail configuration in linux. We installed and configured sendmail. started the service of sendmail. the mails were not getting delivered. where we have made entry in exchange server too.

We look at the error in /var/log/maillog. the error was as below:-

[@ log]# tailf maillog
Apr  3 15:35:45  sendmail[9855]: daemon MTA: problem creating SMTP socket
Apr  3 15:35:50  sendmail[9855]: NOQUEUE: SYSERR(): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Apr  3 15:35:50  sendmail[9855]: daemon MTA: problem creating SMTP socket
Apr  3 15:35:55  sendmail[9855]: NOQUEUE: SYSERR(): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Apr  3 15:35:55  sendmail[9855]: daemon MTA: problem creating SMTP socket
Apr  3 15:36:00  sendmail[9855]: NOQUEUE: SYSERR(): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Apr  3 15:36:00  sendmail[9855]: daemon MTA: problem creating SMTP socket
Apr  3 15:36:05  sendmail[9855]: NOQUEUE: SYSERR(): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Apr  3 15:36:05  sendmail[9855]: daemon MTA: problem creating SMTP socket
Apr  3 15:36:05  sendmail[9855]: NOQUEUE: SYSERR(): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
^C
[@ log]#

 after googling and reading some document, came to know that another service was also running on port number 25, which is SMTP port. we had a glance at
#netstat -an |grep -i 25
#netstat -an |grep -i smtp

etc, last we checked POSTFIX services which were running on the server at port number 25. we stopped that and the error went. at last RESOLUTION of the error came.

[@ log]# ps -ef |grep -i postfix
      2023     1  0 Feb22 ?        00:00:38 /usr/libexec/postfix/master
postfix   2032  2023  0 Feb22 ?        00:00:03 qmgr -l -t fifo -u
postfix   9283  2023  0 15:04 ?        00:00:00 pickup -l -t fifo -u
      9960  9125  0 15:41 pts/1    00:00:00 grep -i postfix
[@ log]# /etc/init.d/postfix status
master (pid  2023) is running...
[@ log]# /etc/init.d/postfix stop
Shutting down postfix:                                     [  OK  ]
[@ log]#

after this started services of sendmail. before stopping the services please confirm whether the server owner or application team is using postfix ! if yes then go accordingly.

Love Sharing
Amit Chopra
 

How should we live?

Should we adjust according to others or should we adjust others according to us or both according to time?

Tuesday, April 2, 2013

wrong /etc/hosts file entry + LINUX

Hey Friends,

Today, a very good learning we had. One of the user has made himself an entry in /etc/hosts file. He said I want to keep one IP but different alias name. the pattern which he followed is shown below.

[root@-1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
10.XX.XX.XXX localhost oracle 188-1 xyz
[root@-1 ~]#
XX are represented in place of IP. He kept all alias name on the same line. Even I didn't realize this and thought it is looking ok. But when he was not able to login from any where. Login to Server through XMANAGER. and when trying to connect then it showed error of local host name.Like above server or system is not having LOOPBACK entry.

These two things were added in the /etc/hosts file. and the HOST enrty were  made as below:-


127.0.0.1           localhosts localhosts.domain
10.XX.X.XXX oracle
10.XX.X.XXX xxxxxx
10.XX.X.XXX xyz

and some additional packages of gnome and gdm were only upgraded. after this user was able to login through XMANAGER.

Love Sharing..
Amit Chopra

Saturday, March 30, 2013

Life

Learning from life is slow, but Life keep us teaching a new lesson each day.


How Beautiful life is.......


Love Sharing
Amit Chopra

We are Slaves !

Hey Friends,

A thought struck in my mind, that what our life is and we are heading it towards.

The first thought came in mind:-

* We are slaves of our Thought.
* We are slave of our desires which took birth from Thought.
* We are slaves of our work, which is done for achieving the desire.
* We are slaves of our targets, which is part of work.
* We are slaves of Money, which we get after achieving targets.
* Money brings more thoughts and then desires arises.
* Then this cycle repeats.

The Second thought comes in mind:-

When we are doing all above things, we get indulge in above activities like any thing.

* We forget to live our lives.
* We forget to think freely. which can take us to any height which we desire.
* We forget to work for others. with those we are living.
* We forget to give time to our lovely families. for those we are earning.
* We forget to manage our selves.

The Third thought which comes in mind:-

* We need to fulfill our day to day needs,
* sometimes we are not able to fulfill those needs also. How this problem can be overcome, I donot know and still have to learn about it.

and in this two player are playing with our lives,  DESIRE and NEED.



As i see fault in myself , I am slave of giving suggestion to others.


Love Sharing
Amit Chopra







 

Command to check CPU, CORE and SOCKET + LINUX

Hi Friends,

In RHEL, we have simple commands to get the informantion about number of CPU, CORE and SOCKET.

#lscpu
#dmidecode
#cat /proc/cpuinfo


#dmidecode will give entire information about Hardware on which RHEL is installed and running. we can grep the number of CPU, COREs and SOCKET on the server.
#lscpu will list the number of CPU given to the server or there on the server.

Thanks and appreciate reading my blogs and posts.

All comments invited as the purpose is to share and learn. so please let me know, what all other ways to look upon it.

Love Sharing
Amit Chopra

Tuesday, March 26, 2013

Basic monitoring commands for solaris SUN 5.10

Hey Friends,

Please find some basic commands which may come in your use while extracting resource status of the server, details of the sun server. These commands can be collected and put together to run simultaneously in a script and append the o/p to a file. which can be read easily later.

below append shows the symbol of two "GREATER THAN SIGN" so please use those sign in two numbers. as i tried to show but it changed to any code. sorry for the inconvinience caused.



#sar 2 5 append /tmp/logs.txt :- SAR is a utility to provie information about system performance.
#sar -mu 2 5 append /tmp/logs.txt :- it will provide detail about current CPU usage
#/usr/sbin/prtdiag -v append /tmp/logs.txt :- prtdiag will show complete hardware details, like CPU, MEMORY, Serial Number, Firmware, OBP, etc.
#/usr/sbin/prtconf |grep -i "Memory" append /tmp/logs.txt :- it will extract Hardware config information. here we are extracting only Memeory detail with grep.
#vmstat 2 5 append /tmp/logs.txt :- It provide current usage of memory detail.
#psrinfo -p append /tmp/logs.txt :- it carries information about processor. -p will show number of socket.
#prinfo -pv append /tmp/logs.txt :- it will show -p socket -v virtual CPU.
#/usr/sbin/prtdiag -v append /tmp/logs.txt :- detailed hardwareinformation.
#ps -ef |grep -i ora append /tmp/logs.txt :- ps command is to check the process. to check if it is running or not
#sar -d 2 5 append /tmp/logs.txt :- to check the server disk utilization currently.
#ps -ef |grep -i scx append /tmp/logs.txt :- it is to check if SCOM agent is running or not.
#uname -a append /tmp/logs.txt :- it gives details about OS version installed.
#hostname append /tmp/logs.txt :- the hostname of the server.
#uname append /tmp/logs.txt :- the solaris OS
#cat /etc/release append /tmp/logs.txt :- it will show the release of SUN OS.
#/usr/sbin/top append /tmp/logs.txt :- top is a utility to shows you current CPU, Memory, SWAP usage.
#top append /tmp/logs.txt
#/usr/bin/zonename append /tmp/logs.txt :- will show whether the server is physical or VM. if the o/p comes global then  it is physical
#cat /etc/resolve.conf append /tmp/logs.txt :- it will show the DNS name of the server. i.e. where the server is going to get resolved.

all above commands can be put together in /tmp and any directory. giving executable rights only. it will extract the infomration and put it under tmp file logs.txt

to create a script file :-

#touch logs.sh
or
$touch logcollector.sh
$
now open the same file in vi editor and insert all below lines. and the save and quit with :wq!

uname -a append /tmp/logs.txt
hostname append /tmp/logs.txt
uname append /tmp/logs.txt
cat /etc/release append /tmp/logs.txt
/usr/bin/zonename append /tmp/logs.txt
cat /etc/resolve.conf append /tmp/logs.txt
sar 2 5 append /tmp/logs.txt
sar -mu 2 5 append /tmp/logs.txt
/usr/sbin/prtdiag -v append /tmp/logs.txt
/usr/sbin/prtconf |grep -i "Memory" append /tmp/logs.txt
vmstat 2 5 append /tmp/logs.txt
psrinfo -p append /tmp/logs.txt
prinfo -pv append /tmp/logs.txt
/usr/sbin/prtdiag -v append /tmp/logs.txt
ps -ef |grep -i ora append /tmp/logs.txt
sar -d 2 5 append /tmp/logs.txt
ps -ef |grep -i scx append /tmp/logs.txt
/usr/sbin/top append /tmp/logs.txt
top append /tmp/logs.txt
echo |format
raidctl |more
and then run the script, it wil collect all required information in a while and you can read or get the desired information.

Love Sharing
Amit Chopra

Saturday, March 23, 2013

How to remove Logical Drive + HP UX

Hello Friends,

We may sometimes need to remove logical drive online in HP UX 11.31i

* First step we can do is check with sautil utility, i.e. sautil /dev/ciss0.
* The same can be checked with saconfig /dev/ciss0, it will also show how many disks and in which logical drive they all fall and belongs. this command can be used to identify BAY of the disk which are used in the Logical drive.
* SAM and SMH can also be used for checking disk details and we can also check wether Logical Drive made is in use or not. screenshot attached below.

Note :- please do it with proper planning only.

extract for MANUAL OF SACONFIG

The saconfig command is a command line configuration tool for the HP SmartArray RAID Controller Family. This command provides the ability to create a logical drive, add a spare drive to existing logical drive, display configuration, delete a logical drive, and clear configuration. This command also enables the cache when it is used to create the first logical drive on the SmartArray RAID Controller. Furthermore it allows the option of changing the percentage of total cache size used for read caching and write caching. The auto-fail missing disks at boot feature can be enabled or disabled using this command.

saconfir command o/p :-

---------- LOGICAL DRIVE 1 ----------
Device File     = c0t0d1
RAID Level      = 1+0
Size            = 139982 MB
Stripe Size     = 128 KB
Status          = OK
Participating Physical Drive(s):
Ct  Enc  Bay         WWID
2I    1    4  0x5000c5000eb332ad
2I    1    3  0x5000cca015432435

Participating Spare Drive(s):
NONE



* Now After confirmation that the disk is not being used anywhere i.e in any VG any LV. when confirmed thne you can run delete saconfig. syntax is below.

#
# /opt/raidsa/bin/saconfig /dev/ciss0 -D 1
Are you sure you want to delete logical drive 1 on
SmartArray RAID controller /dev/ciss0? (y/[n]): y
Logical drive 1 deleted
#


Now those two disk are free now to be exracted and can be used in any other server for space requirement.

Love Sharing
Amit Chopra

 

Friday, March 22, 2013

“IOError: urlopen error unknown url type: media” + RHEL Linux

Hey Friends,

Today i faced a different and new problem i.e. while using yum.repo. media error started coming. so i did some googling on it. find some good answers and used them.

1. the first answer i got was to check your repo file.
2. to check the dvd.
3. yes i want to mention that, yum list all, yum update commands were running properly.
but when it came to yum install "rpm" then it started giving problem or media error.

“IOError:

4. the google search suggested to use createrepo command while sitting on the directory where your dvd is or if you have copied all dvd data on your system for repository. this repository can be used to sync using HTTP, NFS, etc.

5.In my case createrepo command itself was not there in the OS. that is createrepo was not installed.

6. the create repo rpm was there in dvd but i was not able to install it due to that error again and again.
7. so just downloaded the rpm from RHEL site named as createrepo.
8. ran rpm -ivh "createrepo......" It got installed.
9. now ran the command from

#pwd
/mnt/Server/
#createrepo /mnt/Server

it created one repo and removed the media error after yum clean all.

10. Now #yum install "package name " worked.


[root@redhat yum.repos.d]# yum install xorg-x11-proto-devel.i386 Loading "installonlyn" plugin Loading "rhnplugin" plugin This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

Setting up repositories

Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies

--> Populating transaction set with selected packages. Please wait.

---> Downloading header for xorg-x11-proto-devel to pack into transaction set.

media://1170972069.396645%232/xorg-x11-proto-devel-7.1-9.fc6.i386.rpm: [Errno 4] IOError: Trying other mirror.

Error: failed to retrieve xorg-x11-proto-devel-7.1-9.fc6.i386.rpm from Installer error was [Errno 4] IOError: [root@redhat yum.repos.d]# [root@redhat yum.repos.d]#