AIX

AIX

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

 View Only
  • 1.  aix enviroment problem?

    Posted Mon November 17, 2008 03:18 AM

    Originally posted by: chandru0078


    Hi Experts

    I having problem to set up enviroment for aix 5.3 server. whenever i execute do env or printenv no output return .I know something missing which causing this but after googling still cannot manage to solve it.I alos compared with other servers and founded evertyhing looks alike but some how its not working .can anyone help me fix this issue.Do i need to use "set" command to set enviroment?

    AIX 5300-05
    04:10PM up 111 days,
    -rwxrw---- 1 root security 1051 Nov 14 16:08 .profile
    1. ls -l environment
    -rw-rw-r-- 1 root system 1919 Jul 30 2007 environment

    .profile(root)
    if # This is at Shell startup. In normal
    then echo "$MAILMSG" # operation, the Shell checks
    fi # periodically.
    umask 0022
    SHELL=/usr/bin/ksh
    AIXTHREAD_SCOPE=S
    export AIXTHREAD_SCOPE
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export ORACLE_HOME
    ORACLE_SID=sprdtcsh
    export ORACLE_SID
    #PATH=/usr/bin:/usr/IBM/WebSphere/AppServer/java/bin:/usr/IBM/WebSphere/AppServe r/java:/etc:/usr/sbin:/usr/java14/jre/bin:/usr/java14/bin/usr/bin:/usr/ucb:$HOME /bin:/usr/bin/X11:/sbin:$ORACLE_HOME/bin:/usr/lpp/Acrobat5/bin:$PATH

    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/usr/local/bin:/usr /local/sbin:/usr/ccs/bin:/sbin:/usr/bin:/usr/IBM/WebSphere/AppServer/java/bin:/s bin:$ORACLE_HOME/bin:/usr/lpp/Acrobat5/bin:.
    export PATH
    LIBPATH=$ORACLE_HOME/lib
    export LIBPATH
    LIBPATHS=/opt/compuware/VantageAnalyzer/agent/aix564
    JAVA_HOME=/usr/IBM/WebSphere/AppServer/java/bin
    export JAVA_HOME
    #

    cat /etc/enviroment
    1. If /usr/ucb is at the beginning of the PATH the BSD version of commands will
    2. be found.
    #
    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin
    TZ=WAUST-8
    LANG=en_US
    LOCPATH=/usr/lib/nls/loc
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    LC__FASTMSG=true

    1. ODM routines use ODMDIR to determine which objects to operate on
    2. the default is /etc/objrepos - this is where the device objects
    3. reside, which are required for hardware configuration

    ODMDIR=/etc/objrepos
    #


  • 2.  Re: aix enviroment problem?

    Posted Mon November 17, 2008 06:04 PM

    Originally posted by: SystemAdmin


    Check your /etc/profile as well. You could try running it in the current shell to see whether someone has added an error to it; e.g

    . /etc/profile

    That way you will see the error messages. If there are none, then repeat for /.profile & /etc/environment.

    After running these; try "env" again. It should now have the variables set from the three files.


  • 3.  Re: aix enviroment problem?

    Posted Tue November 18, 2008 12:35 AM

    Originally posted by: chandru0078


    Dera Spook

    Thanks for the lovely feedback.after i followed you intruction still having same problem!!! Anything else i can try out ?
    #
    1. env
    2. ./etc/profile
    3. /.profile
    YOU HAVE NEW MAIL
    1. ./etc/environment
    ksh: ./etc/environment: 0403-006 Execute permission denied.
    1. chmod 777 /etc/environment
    2. ./etc/environment
    3. env
    #
    #cat /etc/profile

    trap "" 1 2 3
    readonly LOGNAME

    1. Automatic logout, include in export line if uncommented
    2. TMOUT=120

    1. The MAILMSG will be printed by the shell every MAILCHECK seconds
    2. (default 600) if there is mail in the MAIL system mailbox.
    MAIL=/usr/spool/mail/$LOGNAME
    MAILMSG="YOU HAVE NEW MAIL"

    1. If termdef command returns terminal type (i.e. a non NULL value),
    2. set TERM to the returned value, else set TERM to default lft.
    TERM_DEFAULT=lft
    TERM=`termdef`
    TERM=${TERM:-$TERM_DEFAULT}

    1. If LC_MESSAGES is set to "C@lft" and TERM is not set to "lft",
    2. unset LC_MESSAGES.
    if
    then
    unset LC_MESSAGES
    fi

    export LOGNAME MAIL MAILMSG TERM

    trap 1 2 3


  • 4.  Re: aix enviroment problem?

    Posted Tue November 25, 2008 05:27 AM

    Originally posted by: chandru0078


    Dear All

    we managed to solve problem by using cksum command .

    /usr/bin/env file might corrupted

    so i have copy over env file from other server and replace corrupted env.it works fine after that.