Showing posts with label aix. Show all posts
Showing posts with label aix. Show all posts

Wednesday, August 28, 2013

AIX netstat show PID

Refer to: https://www.ibm.com/developerworks/community/blogs/brian/entry/determine_which_processes_have_listening_ports_on_aix15?lang=en


The netstat command in AIX is a little bit different.

# netstat -Aan | grep LISTEN | grep 30001
f100050000b05bb8 tcp

# rmsock f100050000b05bb8 tcpcb

Monday, November 5, 2012

export not working in Unix

Problem:

Create a script,  aaa.script

export bbb=/opt/ccc

Then, run it by typing ./aaa.script.

After that, # echo bbb and get nothing.

Solution:

run it by typing . aaa.script

Friday, November 2, 2012

gcc and g++ in AIX 6.1








I have these files download from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/ezinstall.html

They have a certain dependency on each other, so the order to execute them needs to be right.

My order 1->3->4->5->2->6

Then I wrote a simple Hello World app and run it. Get warnings like this, but they don't matter.


rpm -Uvh xxxx.rpm

rpm -Uvh xxxx.rpm

Monday, October 22, 2012

AIX 6.1 Time Zone and Daylight Saving Time

Time Zone:

http://www-01.ibm.com/support/docview.wss?uid=isg3T1000252

DST problem:

http://www-01.ibm.com/support/docview.wss?uid=isg3T1013017#formatcompare



Summary:

TZ=EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00

If you change the System TZ, you need to reboot the machine for activating the change.
If you change the date, you don't need to do rebooting.

Friday, October 5, 2012

panic: JVMST017: Cannot allocate memory in initializeMarkAndAllocBits(markbits1)


$ ./c_report.sh
Starting to compile report
Converting RPT_005.rdf
Unable to alloc heap of requested size, perhaps the maxdata value is too small - see README.HTML for more information.
**Out of memory, aborting**

*** panic: JVMST017: Cannot allocate memory in initializeMarkAndAllocBits(markbits1)
./c_report.sh[14]: 9437210 IOT/Abort trap(coredump)
Converting RPT_008.rdf
Unable to alloc heap of requested size, perhaps the maxdata value is too small - see README.HTML for more information.
**Out of memory, aborting**



Solution:

http://www-01.ibm.com/support/docview.wss?uid=swg21524989