Skip navigation.

Arun Bavera

Syndicate content
Few of my technology tips. http://www.linkedin.com/in/arunbavera
Updated: 10 hours 26 min ago

Monitoring the Filesystem for READONLY mounts using Metric Extension in OEM12c

Thu, 2014-08-28 07:29

Our Client faced many times the mounted  filesystem going into READONLY status.

We created this User Defined Metrics or now called as Metric Extesnion to monitor and send alert.

image

 

image

 

image

 

#!/bin/sh

#echo "SlNo MountPoint MountStatus"
nl  /etc/mtab |/bin/awk '{print $1"|" $3"|"substr($5,1,2)}'

 

image

 

image

 

Credentials

Host Credentials
: Uses Monitoring Credentials of Target.

 

You have to create a NamedCredential set to test this like this and then set the username and password for this set from Security->Monitoring Credentials:

emcli create_credential_set -set_name=SOA_ORABPEL_STAGE -target_type=oracle_database -auth_target_type=oracle_database -supported_cred_types=DBCreds -monitoring -description='SOA ORABPEL DB Credentials'
Categories: Development

Missing Named Credentials in OEM 12c

Thu, 2014-08-28 06:56

We are seeing that the list sometimes doesn’t show all the named credentials.

Yet to see if this resolves the issue but need to restart OMS …

emctl set property -name oracle.sysman.emdrep.creds.region.maxcreds -value 500

Oracle Enterprise Manager Cloud Control 12c Release 3

Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.

SYSMAN password:

Property oracle.sysman.emdrep.creds.region.maxcreds has been set to value 500 for all Management Servers

OMS restart is required to reflect the new property value

Ref:

EM 12c: Missing Named Credentials in the Enterprise Manager 12c Cloud Control Jobs Drop Down List (Doc ID 1493690.1)

Categories: Development

Searching and installing Linux packages

Tue, 2014-08-12 11:12

yum search vnc

Loaded plugins: security

public_ol6_UEKR3_latest | 1.2 kB 00:00

public_ol6_UEKR3_latest/primary | 7.7 MB 00:01

public_ol6_UEKR3_latest 216/216

public_ol6_latest | 1.4 kB 00:00

public_ol6_latest/primary | 41 MB 00:03

public_ol6_latest 25873/25873

=============================================================================== N/S Matched: vnc ================================================================================

gtk-vnc.i686 : A GTK widget for VNC clients

gtk-vnc.x86_64 : A GTK widget for VNC clients

gtk-vnc-devel.i686 : Libraries, includes, etc. to compile with the gtk-vnc library

gtk-vnc-devel.x86_64 : Libraries, includes, etc. to compile with the gtk-vnc library

gtk-vnc-python.x86_64 : Python bindings for the gtk-vnc library

libvncserver.i686 : Library to make writing a vnc server easy

libvncserver.x86_64 : Library to make writing a vnc server easy

libvncserver-devel.i686 : Development files for libvncserver

libvncserver-devel.x86_64 : Development files for libvncserver

tigervnc.x86_64 : A TigerVNC remote display system

tigervnc-server.x86_64 : A TigerVNC server

tigervnc-server-applet.noarch : Java TigerVNC viewer applet for TigerVNC server

tigervnc-server-module.x86_64 : TigerVNC module to Xorg

tsclient.x86_64 : Client for VNC and Windows Terminal Server

vinagre.x86_64 : VNC client for GNOME

xorg-x11-server-source.noarch : Xserver source code required to build VNC server (Xvnc)

Name and summary matches only, use "search all" for everything.

yum install tigervnc-server.x86_64

Loaded plugins: security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package tigervnc-server.x86_64 0:1.1.0-8.el6_5 will be installed

--> Processing Dependency: xorg-x11-fonts-misc for package: tigervnc-server-1.1.0-8.el6_5.x86_64

--> Running transaction check

---> Package xorg-x11-fonts-misc.noarch 0:7.2-9.1.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

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

Package Arch Version Repository Size

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

Installing:

tigervnc-server x86_64 1.1.0-8.el6_5 public_ol6_latest 1.1 M

Installing for dependencies:

xorg-x11-fonts-misc noarch 7.2-9.1.el6 public_ol6_latest 5.8 M

Transaction Summary

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

Install 2 Package(s)

Total download size: 6.9 M

Installed size: 9.7 M

Is this ok [y/N]: y

Downloading Packages:

(1/2): tigervnc-server-1.1.0-8.el6_5.x86_64.rpm | 1.1 MB 00:00

(2/2): xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm | 5.8 MB 00:01

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

Total 2.5 MB/s | 6.9 MB 00:02

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

Installing : xorg-x11-fonts-misc-7.2-9.1.el6.noarch 1/2

Installing : tigervnc-server-1.1.0-8.el6_5.x86_64 2/2

Verifying : xorg-x11-fonts-misc-7.2-9.1.el6.noarch 1/2

Verifying : tigervnc-server-1.1.0-8.el6_5.x86_64 2/2

Installed:

tigervnc-server.x86_64 0:1.1.0-8.el6_5

Dependency Installed:

xorg-x11-fonts-misc.noarch 0:7.2-9.1.el6

Complete!

Categories: Development

Em12c Creating Metric Extension(User Defined Metrics) for BPEL Process State OFF

Tue, 2014-06-03 11:14

 

clip_image002

clip_image004

clip_image006

clip_image008

clip_image010

 

select Domain_ref,process_id,state  from ORABPEL.PROCESS where state=1;

 

 

clip_image012

clip_image014

clip_image016

1) Save as Deployable Draft

2) Publish Metric Extension

3) Deploy To Targets : Cluster Database

4) Add this metric to your incident Rules to get alerts

clip_image018

clip_image020

Categories: Development

Upgrading the MiniDLNA on Seagate GoFlex Home from 1.0.22 to 1.1.2

Mon, 2014-05-26 00:19

1)SSH to root of your GOFLEX Home, the format of username will be:

USERNAME_hipserv2_seagateplug_XXXX-XXXX-XXXX-XXXX@<IPADDRESS>

Change to root access

sudo -E -s

 

My GoFlex Environment

bash-3.2# uname -a
Linux axentraserver.mygoflex.seagateshare.com 2.6.22.18 #16 Thu Jun 17 01:37:53 EDT 2010 armv5tejl armv5tejl armv5tejl GNU/Linux
HipServ 2.7.1-391

 

2) Install the ipkg as shown below:
http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/
http://www.openstora.com/wiki/index.php?title=Installing_a_package_manager


  2. cd ~
  3. mkdir ipkg
  4. cd ipkg
  5. wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ipkg-opt_0.99.163-10_arm.ipk

  6. tar -xzf ipkg-opt_0.99.163-10_arm.ipk
  7. cp ./data.tar.gz /data.tar.gz
  8. cd /
  9. tar -xzf data.tar.gz
10. rm  data.tar.gz

11. echo src cs08q1armel http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable >> /opt/etc/ipkg.conf
12. /opt/bin/ipkg update

3) Update Path add it to /etc/profile
export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sbin:/opt/sbin:/usr/sbin:/sbin:/usr/local/sbin
export LD_LIBRARY_PATH=/usr/lib:/opt/lib:/lib:/usr/local/lib

 

4) Get miniDLNA  latest from
cd /home/0common
wget http://sourceforge.net/projects/minidlna/files/minidlna/1.1.2/

5)Install GCC:
ipkg list | grep gcc
/opt/bin/ipkg install gcc

6)Install Make:
ipkg install make

7) Install these version of libraries and create softlink in /usr/lib

wget http://www.openstora.com/files/albums/uploads/libjpeg_so_8_0_2.zip
wget http://www.openstora.com/files/albums/userpics/15704/libavutil_so_49_15_0.zip

ipkg install unzip

unzip -d /usr/lib libjpeg_so_8_0_2.zip
unzip -d /usr/lib libavutil_so_49_15_0.zip

cd /usr/lib
ln -s libjpeg_so_8_0_2 libjpeg.so
ln -s libjpeg_so_8_0_2 libjpeg.so.8
ln -s libavutil_so_49_15_0 libavutil.so.49
ln -s /usr/lib/libFLAC.so.7.0.0 /usr/lib/libFLAC.so.8

8) Now, install the latest MiniDLNA downloaded in

cd /home/0common

./configure; make; make install

Take a backup of old MiniDLNA

cp /usr/sbin/mindlna minidlna_1_0_22

cp /home/0common/minidlna1.1.2/minidlnad minidlna

Make sure the owner and permissions are same as old binary.


cp the old config file to /etc
ln -s /etc/miniupnpd/minidlna.conf /etc/minidlna.conf

Update the log directory in config file.
log_dir=/tmp/minidlna

Update the DB directory
db_dir=/var/cache/minidlna

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

Common commands to start and start MiniDLNA
ssh - login
sudo -u
whoami -> "root"
/etc/init.d/minidlna.init stop
/etc/init.d/minidlna.init status
rm /tmp/minidlna/files.db -- will remove the minidlna database

With 1.1.2 the db will be in /var/cache/minidlna

Rebuild the Database
/usr/sbin/minidlna -f /etc/miniupnpd/minidlna.conf -R -d

/etc/init.d/minidlna.init start
/etc/init.d/minidlna.init restart

Running in Debug mode
/usr/sbin/minidlna -d -f /etc/miniupnpd/minidlna.conf

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


References:


http://blog.philippklaus.de/2011/04/install-archlinuxarm-on-the-seagate-goflex-home/
Install ArchLinuxARM on the Seagate GoFlex Home
http://archlinuxarm.org/platforms/armv5/seagate-goflex-home
http://doncharisma.com/2013/09/22/build-your-own-pro-nas-seagate-goflex-net-with-debian-linux-raid1-and-openmediavault/

Upgrading from 1.0.22 to 1.0.25
http://www.openstora.com/wiki/index.php?title=MiniDLNA_for_Stora/Updating

http://support.goflexhome.hipserv.com/en/reflash/index.html

Categories: Development