Tag Archives: AIX

AIX Production Readiness Checklist (PRC) – check list

By System Admin 77

Hello Everyone,

Can anyone please provide me the checklist for validating our newly built AIX LPARs. AIX is new in our environment. So I’m looking for a reference document or checklist to verify new LPARs.

I believe most of the companies does have some kind of check list to verify. please provide me any kind of general reference checklist. (*i know it depends on environment, but looking for a generalized doc)

I am trying put the things together, so that it will be useful for new builds.

Thanks,

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

NTP in AIX

By System Admin 77

Hello Everyone,

I got a question regarding NTP (Network time protocal) in AIX.

AIX is new in our environment. so’ we do not have any time server that is useful for new LPARs.
so’ i tried using IBM steps to configure NTP server on one of our test/lab LPARs.

I used the below link to make it work. But it did not working.

IBM Configuring NTP on AIX 5L – United States

ON one of AIX LPAR –> to make it as NTP server
===============================================

[root@LPAR1]> tail -7 /etc/ntp.conf
# Broadcast client, no authentication.
#
#broadcastclient
server 127.127.1.0
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace

[root@LPAR1]/>lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 00 (No leap second today.)
Sys peer: 127.127.1.0
Sys stratum: 4
Sys precision: -18
Debug/Tracing: DISABLED
Root distance: 0.000000
Root dispersion: 0.010010
Reference ID: 127.127.1.0
Reference time: d597cdae.de0e3000 Mon, Jul 22 2013 11:26:38.867
Broadcast delay: 0.003906 (sec)
Auth delay: 0.000122 (sec)
System flags: pll monitor filegen
System uptime: 1576 (sec)
Clock stability: 0.000000 (sec)
Clock frequency: 0.000000 (sec)
Peer: 127.127.1.0
flags: (configured)(refclock)(sys peer)
stratum: 3, version: 3
our mode: client, his mode: server
Subsystem Group PID Status
xntpd tcpip 8585346 active

another LPAR (Client)

=====================

[root@LPAR2]/>ntpdate -d 127.127.1.0
22 Jul 11:24:58 ntpdate[9437240]: 3.4y
transmit(127.127.1.0)
transmit(127.127.1.0)
transmit(127.127.1.0)
transmit(127.127.1.0)
transmit(127.127.1.0)
server 127.127.1.0, port 123
stratum 0, precision 0, leap 00, trust 000
refid [0.0.0.0], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 1:28:16.000
originate timestamp: 00000000.00000000 Thu, Feb 7 2036 1:28:16.000
transmit timestamp: d597cd4d.f8c23000 Mon, Jul 22 2013 11:25:01.971
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

22 Jul 11:25:02 ntpdate[9437240]: no server suitable for synchronization found<br …read more

Source: FULL ARTICLE at The UNIX and Linux Forums

User/group management in AIX

By wilford

We have an environment of around 50 AIX LPARs. We use scripts for user and group account management but it is starting to get unwieldy to document and manage the accounts. It would be doable with scripts but before we dedicate resources to that, I was wondering if there is any product that you guys use/can recommend that can be used to remotely manage AIX user/group accounts or some sort of directory that the lpars can authenticate against. Just wondering what standard practice is out there. Thanks for any comments.

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Poll of sorts – on LDAP

By MichaelFelt

1) Do you use LDAP on AIX? (as a client)

2) If yes, what LDAP server technology do you use:

a) IDS (or ITDS) – IBM Tivoli Directory Server
b) AD
c) openLDAP
d) other – please list.

I ask, because I am looking at openLDAP as well as IDS and am wondering if there is a clear preference I should be following.

Thanks (in advance) for your replies!

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Ps -ef|grep <processname> usage in IF statement

By Kalaihari

Hi,

Am working in a filenet domain where we are using AIX as our terminal to run the jobs and schedule the shell scripts to run . In my previous post regarding the “Log modification with finding errors” http://www.unix.com/shell-programmin…nt-time-2.html Gabriel has helped me thoroughly to complete the entire script. Thanks for the help Gab. The script was sent to my leads to get their reviews. Will keep you posted there if i get any updates.

The next thing which i started here to begin our conversation is – In filenet there are 4 image services HPII COLD POST BES.

When we give ps -ef|grep HPII , it will display a output ending with ./HPII_import and ./HPII_val.

When we give ps -ef|grep cold , it will display a output ending with ./cold_daily.ksh and COLD_3770.

When we give ps -ef|grep bes_commit , it will display a output ending with bes_commit 1 and bes_commit 2

When we give ps -ef|grep post , it will display a output ending with
./postindex_daily.ksh

I need to use a IF condition added with the above ps statements, if the resulting output comes it should send us a status , for HPII – ” HPII is running fine without any issues “. for post – “POST Index services is fine” . same for other too.

Could some one help me out with this IF conditional statement added with PS . I should schedule this script for every 1 hour. NOTE: This should work in AIX terminal.

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Samba share show folders but not it's files

By josseossa

Hello,
I’m working in AIX 6.1, i’ve installed samba and i managed myself to share a folder and be able to write a read from windows. i tried to log the machine in the domain, but i couldn’t, the machine appeared in the domain but in the UNIX it show a message that the operation was failed. Now the last useful configuration as standalone server doesn’t work.
This is mi smb.conf file:

Code:

# Samba config file created using SWAT
# from 10.18.1.43 (10.18.1.43)
# Date: 2013/07/16 16:00:56

[global]
workgroup = XXXXXX
security = SHARE
passdb backend = tdbsam
guest account = sambapru
log level = 3
log file = /var/log/samba/log.%m
max log size = 50
load printers = No

[public]
comment = Public Stuff
path = /XXXXXX/pruebas31
force user = sambapru
force group = staff
read only = No
guest ok = Yes


I checked the users prmissions on share and they’re ok, this are the permissions on shared folder:

Code:

root@YYYYYY:/> ls -dltr /psreports/pruebas31
drwxrwxr-x 5 sambapru staff 256 Jul 16 15:04 /XXXXXXX/pruebas31


and this is the error log when i establish a new connection to share from windows:

Code:

[2013/07/16 15:01:45, 3] smbd/process.c:process_smb(1110)
Transaction 1 of length 137
[2013/07/16 15:01:45, 3] smbd/process.c:switch_message(914)
switch message SMBnegprot (pid 618634) conn 0x0
[2013/07/16 15:01:45, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(508)
Requested protocol [PC NETWORK PROGRAM 1.0]
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(508)
Requested protocol [LANMAN1.0]
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(508)
Requested protocol [Windows for Workgroups 3.1a]
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(508)
Requested protocol [LM1.2X002]
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(508)
Requested protocol [LANMAN2.1]
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(508)
Requested protocol [NT LM 0.12]
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_nt1(360)
not using SPNEGO
[2013/07/16 15:01:45, 3] smbd/negprot.c:reply_negprot(609)
Selected protocol NT LM 0.12
[2013/07/16 15:01:45, 3] smbd/process.c:process_smb(1110)
Transaction 2 of length 246
[2013/07/16 15:01:45, 3] smbd/process.c:switch_message(914)
switch message SMBsesssetupX (pid 618634) conn 0x0
[2013/07/16 15:01:45, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2013/07/16 15:01:45, 3] ...read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Application packages

By pjeedu2247

Hello,

I just build an AIX 7.1 box. I’m trying to install the following packages:

BASH
APACHE
CVS
ZIP

I tired to download them searching on google, but unfortunately I dint find any packages concerned with aix7.1. I got stuck at this point and dont know where to download those packages and there dependencies.

Please guide me further.

Thank you.

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

awk – check time stamp between range or not

By vegasluxor

I want to check given time stamp is between the given time stamp or not. I am using AIX.

YYYYMMDDHHMMSS
abc.csv
START TIME, END TIME
20130209018000,20130509022000
20120209018000,20130509022000
20120209018000,20130509022000

Script will check given time stamp is between above two range or not.
Eg: 20130509022000
Will return rows from abc.csv where time stamp is between or equal to start time & end time.

Please advise.

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

AIX idea needed to check the logs updated date and time

By Kalaihari

Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is
1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp.
2) It should check for ERROR message (not error,Error) in the log and if it founds the ERROR means it should send us an update on that.

He has developed a script brilliantly for my sake and the problem is he developed in linux terminal. I have a problem running in my AIX terminal.

The code is as follows:
#!/bin/bash
mailcontents=mailbody
while read line
do
if [ ! -f $line ]; then
echo “The file $line doesn’t exist. Continuing with the next file…” >> $mailcontents
echo “============” >> $mailcontents
continue
else
last_mod_time=$(stat -c ‘%Y’ $line) # this line checks the log’s last modification time and converts it to Unix’s epoch
last_24_hours=$(date +%s -d “24 hours ago”) # this line returns the epoch for the current timestamp minus 24 hours

if [ $last_mod_time -lt $last_24_hours ]; then
echo “Log $line has NOT been updated in the last 24 hours” >> $mailcontents
else
echo “Log $line was updated during the last 24 hours” >> $mailcontents
fi

tail -100 $line > checklog

error=$(grep ERROR checklog | wc -l) # We look for the lines containing the word “ERROR” in the checklog file.
# Then we redirect the output to the wc -l command that will count the number
…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Alternative script for LFTP command

By vinay4889

Hi,

I was looking for a command which would help sending files parallely to remote server , and lftp is the closest option I could got. Unfortunately when I checked the AIX machine I work on does not has lftp installed.
Is there any alternative perl script (or something like that) which I can use in this case to replicate lftp functionality.
I am asking this becuase ,UUENCODE also is not installed in the machine , but I was able to use the alternative perl script from this site.

The Colonel’s Unix-Style Software

Your suggestions are greatly appreciated :).

Thanks,
-Vinay

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Cannot compile/install gnu program

By bazajav

Hello,

I’m trying to install ansifilter which is a program that translates ansi text to HTML.
The idea is to install it on AIX 7.1 but is failing. All de appropriate gcc libraries and requirements for this software were installed successfully, but when I do the gmake I get the following error:


————————————————————————–
g++ arg_parser.o stringtools.o cmdlineoptions.o main.o platform_fs.o codegenerator.o htmlgenerator.o texgenerator.o latexgenerator.o rtfgenerator.o plaintextgenerator.o bbcodegenerator.o elementstyle.o stylecolour.o preformatter.o -o ansifilter
collect2: fatal error: crtcxa.o: cannot open as COFF file
compilation terminated.
gmake: *** [ansifilter] Error 1
————————————————————————–

Below is the content of the makefile:


####################################################
# Simple Makefile for ANSIFilter
# This file will compile the ansifilter binary.
# See INSTALL for instructions.

CC=g++

CFLAGS= -c -Wall -O2

LDFLAGS=

SOURCES=arg_parser.o stringtools.o cmdlineoptions.o main.o platform_fs.o
codegenerator.o htmlgenerator.o texgenerator.o latexgenerator.o rtfgenerator.o
plaintextgenerator.o bbcodegenerator.o elementstyle.o stylecolour.o preformatter.o

OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=ansifilter

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
$(CC) $(CFLAGS) $< -o $@

clean:
@rm -f *.o
@rm -f ./ansifilter
@rm -f ./ansifilter_gui
@rm -f ./.deps/*
####################################################

Any ideas?
Does this error means that AIX is lacking of something to open this COFF/XCOFF file?

Also please note that crtcxa.o does not exist on the source package of this program so I’m not sure from where it is coming from.

Thanks!

Source: FULL ARTICLE at The UNIX and Linux Forums

Cannot compile/install gnu program on AIX

By bazajav

Hello,

I’m trying to install ansifilter which is a program that translates ansi text to HTML.
The idea is to install it on AIX 7.1 but is failing. All de appropriate gcc libraries and requirements for this software were installed successfully, but when I do the gmake I get the following error:


————————————————————————–
g++ arg_parser.o stringtools.o cmdlineoptions.o main.o platform_fs.o codegenerator.o htmlgenerator.o texgenerator.o latexgenerator.o rtfgenerator.o plaintextgenerator.o bbcodegenerator.o elementstyle.o stylecolour.o preformatter.o -o ansifilter
collect2: fatal error: crtcxa.o: cannot open as COFF file
compilation terminated.
gmake: *** [ansifilter] Error 1
————————————————————————–

Below is the content of the makefile:


####################################################
# Simple Makefile for ANSIFilter
# This file will compile the ansifilter binary.
# See INSTALL for instructions.

CC=g++

CFLAGS= -c -Wall -O2

LDFLAGS=

SOURCES=arg_parser.o stringtools.o cmdlineoptions.o main.o platform_fs.o
codegenerator.o htmlgenerator.o texgenerator.o latexgenerator.o rtfgenerator.o
plaintextgenerator.o bbcodegenerator.o elementstyle.o stylecolour.o preformatter.o

OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=ansifilter

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
$(CC) $(CFLAGS) $< -o $@

clean:
@rm -f *.o
@rm -f ./ansifilter
@rm -f ./ansifilter_gui
@rm -f ./.deps/*
####################################################

Any ideas?
Does this error means that AIX is lacking of something to open this COFF/XCOFF file?

Also please note that crtcxa.o does not exist on the source package of this program so I’m not sure from where it is coming from.

Thanks!

Source: FULL ARTICLE at The UNIX and Linux Forums

Cannot login using WINBIND in AIX 5.3

By lhareigh890

I configured AIX5.3 to use kerberos and winbind so user can login and authenticate via AD. I was able to join my AIX server to domain and can execute wbinfo -u/g. However when I login, It says unknown user. I already edit /etc/secuirty/user and then method.cfg.

On the log.winbindd it says

Code:

Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: [2013/04/18 15:47:28.020931, 0] lib/util_tdb.c:69(tdb_chainlock_with_timeout_internal)
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: [2013/04/18 15:47:28.020931, 0] lib/util_tdb.c:69(tdb_chainlock_with_timeout_internal)
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: tdb_chainlock_with_timeout_internal: alarm (40) timed out for key adserver.example.com in tdb /opt/pware64/var/locks/mutex.tdb
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: tdb_chainlock_with_timeout_internal: alarm (40) timed out for key adserver.example.com in tdb /opt/pware64/var/locks/mutex.tdb
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: [2013/04/18 15:47:28.021148, 0] winbindd/winbindd_cm.c:791(cm_prepare_connection)
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: [2013/04/18 15:47:28.021148, 0] winbindd/winbindd_cm.c:791(cm_prepare_connection)
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: cm_prepare_connection: mutex grab failed foradserver.example.com
Apr 18 15:47:28 bdougp05 daemon:err|error winbindd[213342]: cm_prepare_connection: mutex grab failed for adserver.example.com

workgroup = example
password server = adserver.example.com
realm = EXAMPLE.COM
security = ads
winbind separator = +
template shell = /bin/bash
template homedir = /home/users/%U
preferred master = no
local master = no
domain master = no
winbind separator = +
winbinduid = 1000-20000
winbindgid = 1000-20000
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
idmap uid = 1000-20000
idmap gid = 1000-20000
encrypt passwords = true
winbind offline logon = no
idmap config EXAMPLE:default = yes
idmap config EXAMPLE:backend = tdb
idmap config EXAMPLE:range = 200000 - 50000000
log level = 10
idmap alloc backend = tdb
idmap alloc config:range = 200000 - 50000000


pls assist. thanks

From: http://www.unix.com/unix-advanced-expert-users/221459-cannot-login-using-winbind-aix-5-3-a.html

Not able to read redo log file on AIX box

By amitnm1106

I have a oracle 10 G database installed on AIX6.1) server.

The database user creates online redo log files with permissions 640 i.e. read access to group oinstall

I am not able to read the files with another user part of the group oinstall. even tried to copy the files to another location, but it failed with error “filename” invalid argument.

Even the admin person with root login was not able to copy the file to another location.

Please help

From: http://www.unix.com/aix/221453-not-able-read-redo-log-file-aix-box.html

Install Numpy in AIX 6.1

By Brunolac

Hi

I have been trying install numpy in AIX 6.1 unsuccessfully, the versions are numpy (1.7 or 1.6), ( IBM XL C/C++ for AIX, V11.1 or gcc 4.7.2 )

I put in site.cfg from numpy the following
——-
library_dirs = /opt/freeware/lib:/usr/lib:/usr/lib64:/lib:/usr/local/lib64
include_dirs = /usr/include:/opt/freeware/include

[blas_opt]
libraries = libblas.a
[lapack_opt]
libraries = liblapack.a
——
The compilation was without error, after I changed the PATH and add PYTHONPATH.

When i import numpy with python_64 i saw the error:

File “”, line 1, in File “/home/bruno/bin/lib/python2.6/site-packages/numpy/__init__.py”, line 137, in import add_newdocs File “/home/bruno/bin/lib/python2.6/site-packages/numpy/add_newdocs.py”, line 9, in from numpy.lib import add_newdoc File “/home/bruno/bin/lib/python2.6/site-packages/numpy/lib/__init__.py”, line 4, in from type_check import * File “/home/bruno/bin/lib/python2.6/site-packages/numpy/lib/type_check.py”, line 8, in import numpy.core.numeric as _nx File “/home/bruno/bin/lib/python2.6/site-packages/numpy/core/__init__.py”, line 5, in import multiarray ImportError: 0509-022 Cannot load module /home/bruno/bin/lib/python2.6/site-packages/numpy/core/multiarray.so. 0509-103 The module has an invalid magic number.

And when i import with python i see

File “”, line 1, in File “/home/bruno/bin/lib/python2.6/site-packages/numpy/__init__.py”, line 137, in import add_newdocs File “/home/bruno/bin/lib/python2.6/site-packages/numpy/add_newdocs.py”, line 9, in from numpy.lib import add_newdoc File “/home/bruno/bin/lib/python2.6/site-packages/numpy/lib/__init__.py”, line 4, in from type_check import * File “/home/bruno/bin/lib/python2.6/site-packages/numpy/lib/type_check.py”, line 8, in import numpy.core.numeric as _nx File “/home/bruno/bin/lib/python2.6/site-packages/numpy/core/__init__.py”, line 8, in import numerictypes as nt File “/home/bruno/bin/lib/python2.6/site-packages/numpy/core/numerictypes.py”, line 872, in _typestr[key] = empty((1,),key).dtype.str[1:] ValueError: array is too big.

Can anyone help me?

Thanks

From: http://www.unix.com/aix/221395-install-numpy-aix-6-1-a.html

Problem space used on AIX 5.3

By Veis

Hello everyone,

Sorry for my English but i’m French.

I have a problem on an AIX 5.3 server on the occupation of a file system.
When i run a df -m, this is what i get :

Code:

Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/fslv09 3936.00 340.94 92% 7255 8% /EFED/appli


And when i go in /EFED/appli (mounted point), i run du -sm . and i get this :

Code:

Node1-c08 /EFED/appli>du -sm .
1494,23 .


So I have 2200 MB of difference…

I also tried, in /EFED/appli, du -sm * | sort -n and if I add up all the values, i don’t have my 3936.00MB…

I also noticed that some files have a different size if i run a ls -l and if i run a du -sm
For example :

Code:

Node1-c08 /EFED/appli/log>ls -l stdout
-rw-r--r-- 1 appliexp appliexp 97577580 17 avr 12:22 stdout


Code:

Node1-c08 /EFED/appli/log>du -sm stdout
0,62 stdout


We can see it with ls -ls :

Code:

Node1-c08 /EFED/appli/log>ls -ls stdout
648 -rw-r--r-- 1 appliexp appliexp 97596894 17 avr 12:23 stdout


I found 2 files with this anomaly for the moment, but maybe it’s a way of research.

If someone has an idea…

Thank’s a lot and, again, sorry for my english…

Bye

From: http://www.unix.com/aix/221345-problem-space-used-aix-5-3-a.html

Kdb – vscsi disk mapping from AIX 5.3 CLIENT side

By The Doctor

If you’re familiar with vscsi mappings thru a VIO Server, you are probably aware, on an AIX 6.1 Client LPAR, that:

Code:

print cvai | kdb


can provide useful information to you…. like VIO Server name & vhost #. But, “cvai” does not appear to be part of the Kernel Debugger in AIX 5.3.

My question is –> is there an equivalent to “cvai” in AIX 5.3 or something similar on the AIX 5.3 client side that provides the VIO Server and vhost # that the vscsi disk is mapped to ?

From: http://www.unix.com/aix/221213-kdb-vscsi-disk-mapping-aix-5-3-client-side.html

AIX san boot from EMC2 & NPIV

By BabylonRocker76

Hi all ,
we’re implementing a new NPIV infrastructure with AIX san boot on EMC2 VMAX 5876 , for economic reason , they don’t wont to install Powerpath multipath sw , but only ODM drivers from EMC2 , this behavior is supported and can work?!

in the past we implemented NPIV on DS8000 family storage subsystem with AIX san boot with SDDPCM without any problem , i’m scared about the configuration without propietary multipath code installed .

From: http://www.unix.com/aix/220979-aix-san-boot-emc2-npiv.html