WebSphere Issues

03/04/2017

Assign a static IP in Ubuntu

Filed under: Linux — Ishtiaque @ 10:15 am

Edit the file /etc/network/interfaces

iface eth0 inet static
address 192.168.254.201
netmask 255.255.255.0
gateway 192.168.254.2
dns-nameservers 192.168.254.2 8.8.8.8

15/02/2017

Setup IBM Integration Bus command environment in Linux

Filed under: IBM Integration Bus, WebSphere Broker, WebSphere MQ — Ishtiaque @ 2:21 pm

Update the files /var/mqm/.bashrc and /var/mqm/.bash_profile with the followings:

# The following three lines have been added for IBM Integration Bus
if [ -f /opt/ibm/mqsi/9.0.0.1/bin/mqsiprofile ]; then
. /opt/ibm/mqsi/9.0.0.1/bin/mqsiprofile
fi

if [ -f /opt/mqm/bin/setmqenv ]; then
. /opt/mqm/bin/setmqenv -s
fi

ODBCINI=/var/mqsi/odbc/odbc.ini
ODBCSYSINI=/var/mqsi/odbc/odbcinst.ini

export ODBCINI ODBCSYSINI

17/08/2016

Putty X11 proxy: wrong authorization protocol attemptedError

Filed under: Linux — Ishtiaque @ 10:40 am

This error is shown due to missing xauth cookie in non-root user.

  • List down the cookies of the root user:
    xauth list
  • Add that cookie into the specified user:
    su – abc
    xauth add somehost.somedomain:10 MIT-MAGIC-COOKIE-1 4d22408a71a55b41ccd1657d377923ae

You may add xauth permanently into .bashrc or bash_profile file as well.

P.S. You may delete the older entries by using the following command:

  • xauth remove somehost.somedomain:10
  • xauth list | cut -f1 -d\ | xargs -i xauth remove {}

References: https://debian-administration.org/article/494/Getting_X11_forwarding_through_ssh_working_after_running_su http://dbadump.blogspot.sg/2011/02/clean-up-old-xauth-entries.html

10/04/2016

Bringing up interface eth0 device eth0 does not seem to be present delaying initialization

Filed under: Linux — Tags: — Ishtiaque @ 3:55 pm
  • Find out the current HWaddr: ifconfig
  • See if it’s up: ifup eth0
  • Remove the existing file: rm /etc/udev/rules.d/70-persistent-net.rules
  • Reboot to generate a new rules file: reboot
  • Find out HWADDR: ifconfig
  • Update HWADDR and remove UUID: vi /etc/sysconfig/network-scripts/ifcfg-eth0

Reference:

http://www.unixmen.com/fix-device-eth0-seem-present-delaying-initialization-error/

06/04/2016

ORA-01950: No privileges on tablespace ‘USERS’

Filed under: Oracle — Tags: — Ishtiaque @ 9:54 am

The user who owns the tables should be given privileges on user tablespace. Run the following command with DBA rights to resolve the issue:

GRANT UNLIMITED TABLESPACE TO <username>;

Reference:

http://dba-oracle.com/bk_no_privileges_tablespace_users.htm

21/11/2015

Eclipse error: Java was started but returned error code=13

Filed under: Eclipse, Java — Tags: , — Ishtiaque @ 4:38 pm

You need to add the following line before “-vmargs” parameter in “\eclipse\eclipse.ini” file, additionally make sure eclipse and java architecture are same, i.e both are 32 or 64 bit.


–launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_40\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7

01/10/2015

Process, Memory and IO monitoring in Linux

Filed under: Linux — Ishtiaque @ 11:01 am

Process monitoring utilities:

  • ps -ef or ps aux (|grep java)
  • ps -eo ppid,pid,pmem,pcpu,lstart,cmd
  • top
  • netstat -tulpan|grep java (List ports used by a process)
  • netstat -taupe | grep httpd
  • ls -ld /proc/pid  (List date and time when a process was started)
  • pstree -aAp pid or ls -l /proc/pid/task
  • jobs (To find process running in background)

Memory monitoring utilities:

  • cat /proc/meminfo
  • free -m
  • vmstat -s, vmstat -d, vmstat 5 4 -S k
  • pmap pid

IO monitoring utilities:

  • iostat -xk
  • iotop

CPU, Memory, and IO benchmarking utilities:

  • fs_mark -d /tmp -n 1000 -s 10240
  • time sudo bonnie++ -n 0 -u 0 -r 100 -f -b -d /mnt
  • stress -c 8 -i 4 -m 6 -t 30s

 

 

 

 

17/09/2015

Some useful cmds to find out memory usage of a process in Linux

Filed under: Java, Linux — Ishtiaque @ 1:17 pm
  • netstat -tulpan|grep port
  • ps aux|grep java
  • free -m
  • cat /proc/meminfo
  • vmstat -s
  • top -a
  • pmap -x pid
  • cat /proc/pid/status
  • cat /proc/pid/smaps

25/08/2015

Configure keystore for an execution group on a Broker

Filed under: Other — Ishtiaque @ 4:20 pm
  • mqsisetdbparms brkname -n brokerTruststore::password -u temp -p password
  • mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n keystoreFile -v /opt/brkr/keystore.jks
  • mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n keystoreType -v JKS
  • mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n keystorePass -v brokerKeystore::password
  • mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n truststoreFile -v /opt/brkr/keystore.jks
  • mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n truststoreType -v JKS
  • mqsichangeproperties brkname -e execgrp -o ComIbmJVMManager -n truststorePass -v brokerTruststore::password
  • mqsireload brkname -e execgrp

References:

19/08/2015

IKEYMAN commands

Filed under: Security — Tags: , — Ishtiaque @ 10:13 am
  • ./jre17/bin/ikeycmd -cert -list -db ./keystore.jks -pw password
  •  

    ./jre17/bin/ikeycmd -cert -details -label “mycert.ibm.com” -db ./keystore.jks -pw password

  •  

    ./jre17/bin/ikeycmd -cert -delete -label “mycert.ibm.com” -db ./keystore.jks -pw password

  •  

    ./jre17/bin/ikeycmd -cert -receive -file mycert.cer -db ./keystore.jks -pw password -format ascii

« Newer PostsOlder Posts »

Create a free website or blog at WordPress.com.