Answers

Vikash K.

System engineer at Infosys

see all my questions

Migration from Sun Solaris 9 to IBM AIX 6.1

Hi, I am migrating scripts from SUN Solaris 9 to IBM AIX 6.1. The scripts are written in csh and sh shell. what all changes need to be done during migration? Please help.

posted 3 months ago in Software Development | Closed

Share This Question

Share This

Answers (3)

Bernard K.

IT Service Delivery Mgr / Project Manager

see all my answers

Best Answers in: Using LinkedIn (35), Software Development (6), Computers and Software (5), Project Management (3), Web Development (2), Job Search (1), Personnel Policies (1), Public Health and Safety (1), Organizational Development (1), Planning (1), Career Management (1), Professional Organizations (1), E-Commerce (1), Enterprise Software (1), Databases (1), Information Storage (1)

Look for migration tools and hints at IBM's site, esp in Developerworks.

posted 3 months ago

Chris B.

Database Architect at Afilias canada

see all my answers

Best Answers in: Computers and Software (9), Software Development (9), Databases (5), Web Development (2), Using LinkedIn (2), Risk Management (1), Government Policy (1), Manufacturing (1), Quality Management and Standards (1), Enterprise Software (1), Computer Networking (1)

You can run csh and sh on AIX quite nicely, so there are not necessarily any changes necessary, if there is no difference in the commands that they're supposed to run, underneath. Some shell scripts are written with a sufficient view to portability that they need only be copied to a new system and you may expect them to "just work."

This is, however, exceedingly unlikely. It is very likely that the Solaris programs being run by the scripts behave differently and are named differently from the analogous AIX programs.

Not knowing what programs the scripts are running, it is impossible to tell.

posted 3 months ago

vikash K.

system engineer at Infosys Technologies Ltd

see all my answers

Here is an example script which is run by cron job daily at particular time.

#!/bin/csh -x
############################################################
# Batch-Programm for start of abc-Daily
# Parameter: "a" for M
# "b" for B
# starts script abc_daily
############################################################


umask 000
if ( ! $?DISPLAY ) then
setenv DISPLAY `uname -n`:0.0
endif
# end of generated environment variables
set path=( ${axalant_root}/scripts $path )
setenv TNS_ADMIN $ORACLE_HOME/network/admin
setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
setenv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P1
set projects = "abc_daily_project.txt" # file written by SQL script
set project_list = ${axalant_root}/scripts/kks_daily_project.txt
#set projn=`echo $2|tr '[a-z]' '[A-Z]' ` # lowercase to uppercase
#---------------------------------------------------
if ($#argv == 0) then
echo "parameter for environment b = B or a = M missing"
exit(1)
else if ($1 == "b" || $1 == "a") then

cd ${axalant_root}/scripts
sqlplus abcd50$1/abcd$1@xz1t @'${axalant_root}/scripts/abc_daily_getPro.sql'
if (-f $project_list) then
set names = `cat $project_list` # read from file to variable

foreach proj ($names)
${axalant_root}/scripts/abc_daily $1 $proj
end
endif
endif
#---------------------------------------------------


here is one more script which is used to complile the c program
#!/bin/csh -f

#SHELL=/bin/csh -fx

#locking

$ep_root/lock

#************ compile *******************

# compile -> *.o

#make -f mfsrc > /tmp/compile

make -f mf_all > /tmp/compile

grep Error /tmp/compile

if ( $status == 0 ) then

echo Abbruch in Compile wegen Fehler

echo -n "Continue mit Linken (j=ja; n=nein; ="

set new=($<)

switch ($new)

case 'j':

goto FORT

breaksw

case 'n':

breaksw

endsw

echo Abbruch wegen Fehler

$ep_root/lockfree

exit

endif

FORT:

#****************************************

# cp objects to edb-obj dir

set EDB_CUSTOM_OBJ_DIR=$axalant_home/obj/$EP_MACH/

cp *.o $EDB_CUSTOM_OBJ_DIR

#***************************************

#***************************************

# linken

make -f mflink_n

#**************************************

#lockfree

cp /export/home/secaddev/axalant/bin/sparc-sun-solaris9/libsecad_axa.so /export/home/secaddev/axalant/bin/sparc-sun-solaris9/secad_axa.so

$ep_root/lockfree

smilary there are 100 of scripts.

Also if can you tell me the diffrence between the file structure of AIX 6.1 and Solaris.

posted 3 months ago