AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Netstat & Ipcs commands fail.

    Posted Mon April 04, 2011 01:05 PM

    Originally posted by: Rthomson


    IBM 9133-52A Server running 5200.7. A month ago the ipcs program stopped working. The server was rebooted because of a HA cluster Adapter event, caused by a switch outage. Now both "netstat & icps" do not work. I upgraded the OS to 5200.8.1 last week. The "lppchk -v" shows no return (everything is good)
    Results of "netstat -i" command
    netstat -i
    exec(): 0509-036 Cannot load program netstat because of the following errors:
    0509-130 Symbol resolution failed for /usr/lib/libcrypt.ahttp://shr_64.o because:
    0509-136 Symbol __extension_status (number 0) is not exported from
    dependent module /usr/lib/libc.ahttp://shr_64.o.
    0509-130 Symbol resolution failed for /usr/lib/libc.ahttp://shr_64.o because:
    0509-136 Symbol _environ (number 8) is not exported from
    >>>>>>>>>>>>> about 1 hundred lines
    0509-021 Additional errors occurred but are not reported.
    0509-150 Dependent module libc.a(shr_64.o) could not be loaded.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    I have stopped and restarted the iao0 device twice, rebooted each time.

    I found this link and tried this solution, this dis not fix the issue.

    1.) Find out the fileset version on system with problem
    #lslpp -l bos.rte.libc
    2.) Now we need /usr/ccs/lib/libc.a from other system with same level. find out the system with
    same level of bos.rte.libc
    from working system .
    1. tar -cvf /dev/fd0 /usr/ccs/lib/libc.a
    you may need six diskette
    3.) On system with Problem
    #export LIBPATH=/usr/ccs/lib:/usr/lib:/tmp
    #cp /usr/ccs/lib/libc.a /tmp/libc.a
    #chown bin:bin /tmp/libc.a
    #chmod 555 /tmp/libc.a
    #cd /usr/ccs/lib
    #mv libc.a libc.a.error (if you are not moved this file tar will not xtract )
    1. tar -xvf /dev/fd0 (put the first floppy)
    #cd /usr/lib
    #mv libs.a libs.a.error
    #ln /usr/ccs/lib/libc.a libs.a
    #unset LIBPATH
    #ls -il libs.a (ensure its there)
    #ls -il /usr/ccs/lib/libc.a (ensure its there)
    1. shutdown –Fr
    Can any one provide a solution to this issue.
    Thanks in advance.
    #AIX-Forum


  • 2.  Re: Netstat & Ipcs commands fail.

    Posted Tue April 05, 2011 04:42 AM

    Originally posted by: MarkTaylor


    Stupid question, but did you reboot after the upgrade ? W

    hat kernel were you running before when it worked and what kernel are you running now ? did someone softlink in the 32bit kernel ?

    bootinfo -K
    ls -l /unix

    do you have a backup ?

    Any filesystems full ? especially /usr

    Also, you may want to check exactly what netstat and ipcs commands you are running (only these commands failing)

    .. paste the output of ..

    type netstat ## get full path
    what /full/path/to/netstat

    and the same for ipcs ..

    Rgds
    Mark Taylor
    #AIX-Forum