Tag Archives: AIX

NFS Mount 16+ group Issue in AIX

By pinnacle

Hi,
I am trying to read files from NFS mount. The ID with which I am trying to read is part of 16+ groups.

This is causing problem in doing change directory to the NFS mount directory.

I was able to get some code which does newgrp to change the default group so that I could change directories into NFS mount.
But as per the man pages of “newgrp”. Looks like newgrp command invokes new shell everytime when it is called.
I am calling newgrp command as part of my korn shell. I would like to know, if calling it will impact my rest of the shell.
Looks like I could handle this issue by using here document.
But not sure if this is the right way. I have read other documentation to handle this NFS mount 16+ group situation but nothing seems to be helpful in my case (and not easy to understand documentation)
Help is appreciated.

Code:


/usr/bin/newgrp group1 << newgrp1
echo "Changing directory to /nfsmount/abc"
cd /nfs/abc

/usr/bin/newgrp group2
cd /nfs/abc/def

cp /nfs/abc/def/test.txt /landingarea/app
if [ $? -eq 0 ];
then
echo "copy successfull"
else
echo "copy failed
fi
newgrp1


…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

PowerHA(HACMP) full vg loss – cluster hangs on release_vg_fs event

By vilius

Hello,

AIX 6.1 TL7 SP6
POwerHA 6.1 SP10

I was experimenting with new hacmp build. It’s 3-node cluster build on AIX 6.1 lpars. It contains Ethernet and diskhb networks. Shared vg disk is SAN disk. Two nodes see disk using vscsi, third node sees disk using npiv. Application is db2 server.

Most accidents usually involve some kind of network failure – so I decided to test my cluster against Ethernet failure and SAN failure. Ethernet failure test was successful – when node lost Ethernet connectivity(both cables of course) my resource group jumped to next node with no problem.

Next I did SAN failure test:
I did it in 2 different ways by removing vsci mapping in vios or by removing fcs mapping in vios(npiv case) – results were exactly the same in both cases – cluster reacted correctly and started release_vg_fs event, release_vg_fs script tried to unmount filesystems but since all fs disk devices were gone script just hung, and cluster started issuing config_too_long events..
So clstat reports resouce group as “RELEASING..” and that’s it…

How do I configure PowerHA to handle full vg loss(for example SAN down causes that) correctly ??

thanks,
Vilius M.

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

DB2 user query utilization?

By savigabi

I am new to AIX, but not new to the UNIX world. Recently I got a request to come with some kind of report to do the following: report if user query is using > 70% CPU (within DB2) > 5 minutes. I am by no means a DB2 guru so I do not know how to get that from within it, so I was wondering if there is another way to do it. Any help is appreciated.

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Mkcluster: Cluster product not licensed

By LordFire

Hi,

I have installed PowerHA 7.1.1 on my two node with AIX 6.1 TL08 SP02, i’ve verified that my server is correctly supported.

but before of starting my PowerHA, i must create my respository disk (CAA), and unfortunatly i have this ERROR:

mkcluster: Cluster product not licensed.

someone, can help me? :confused::confused::confused:
Thanks in advance,

Maurizio

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Help with nested "if"

By blacksteel1988

Hi, i just wanna ask for some help with this

Code:

while true
do
clear
date
echo AIX 630 AMOUNT OF FEPs
VAR=`ps -eaf | grep fep2 | grep cajaBMSz | wc -l`

{
if [ $? -gt 10 && -le 20 ]
then
if [ $? -ge 21 ]
then
printf "33[01;31m%s33[00mn" "$VAR"
else
printf "33[01;33m%s33[00mn" "$VAR"
fi
else
printf "33[01;32m%s33[00mn" "$VAR"
fi
}

done;


What i want is this.. if the value returned by

Code:

ps -eaf | grep fep2 | grep cajaBMSz | wc -l


is between the values i suggested the script must output the colors i selected… but instead i get the “mon55z[22]: test: 0403-021 A ] character is missing.” message. mon55z is the name of my script BTW

thanks in advance

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Accessing files on AIX system from Linux system

By amitnm1106

I have a following requirement in production

system 1 : LINUX
User: abcd

system 2: AIX (it is hosting a production DB)

Requirement
user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora , group oracle. The log files are not getting created on a shared drive, it is a physical drive on system 2.

The requirement is just to read the log files and not change anything in them.
Following options are ruled out:
1. Shipping files from System 2 to system 1. There is a utility trying to read those file, won’t get access for shipping.
2. Creating same user abcd on system 2 and make it part of system 1.

Note: the two systems are on the same network

can someone help on this ?

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Unable to mount.

By manoj.solaris

Hi,

I am unable to mount the AIX share on Red Hat Linux 5.5

getting below error on linux server while mounting.

reason given by server: unknown nfs status return value: -1

I have checked on AIX side.

lssrc -g nfs showing below output.

bash-3.00# lssrc -g nfs
Subsystem Group PID Status
biod nfs 196734 active
nfsd nfs 114876 active
rpc.mountd nfs 151760 active
rpc.statd nfs 131200 active
rpc.lockd nfs 258190 active

Please suggest.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Help understanding differences between AIX and RHEL

By SpenceSnyder

I have started a new job which requires AIX admin skills, which I have, and RHEL skills. Does anyone have a cheat sheet that if I know how to solve the problem in AIX how would I do that in RHEL? I was an IBM pre-sales technical trying to keep sales guys honest – not possible. Any other links to training would be good motor. Keep in mind I’m not going to pay $2300 for real RHEL training. Thanks to all that help – I need it:)

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Another mailx question

By nimo

Hi
I am trying to send an html file as an attachment from AIX server and recieve it using Outlook 2007 client. I tried every possible command, such as:

uuencode file file | mailx -s “subject” me@mydomain.com
uuencode -m file file | mailx -s “subject” me@mydomain.com

All of them give me:

begin-base64 664 t
aHRtbAoKPHRhYmxlIGJvcmRlcj0iMSI+Cjx0cj4KPHRkIGFsaWduPWNlbnRlcj48Yj5TSUQ8L2I+
PC90ZD4KPHRkIGFsaWduPWNlbnRlcj48Yj5UU0I8L2I+PC90ZD4KPHRkIGFsaWduPWNlbnRlcj48
Yj5TQjwvYj48L3RkPgo8dGQgYWxpZ249Y2VudGVyPjxiPkRFVjwvYj48L3RkPgo8dGQgYWxpZ249
Y2VudGVyPjxiPlRJPC9iPjwvdGQ+Cjx0ZCBhbGlnbj1jZW50ZXI+PGI+VEE8L2I+PC90ZD4KPHRk

Could someone help please. I read almost every post on google but no success.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

[SOLVED] Problem using scp to transfer a file

By jyoung

I am testing the following command to transfer a file from my server (AIX 5.2) to another server. I was able to generate the keys and sent them the public key.

Code:

scp -v -P 4030 /home/lawson/.ssh/jimtest.txt someuser@some.ftpsite.net:/Inbound/jimtest.txt > jimtest_out.txt 2>&1


Based on the output from the command it looks like it is authenticating correctly, but the file is not getting sent or they tell me they are not getting it. Can you take a look at the above command and let me know if it is not correct. I am currently doing this from the command line, but will script it when I get it working. Below is output from the comman execution.

Code:

Executing: program /usr/local/bin/ssh host some.ftpsite.net, user someuser, command scp -v -t /Inbound/jimtest.txt
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.6l 04 Nov 2003
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to some.ftpsite.net [0.0.0.0] port 4030.
debug1: Connection established.
debug1: identity file /home/lawson/.ssh/identity type -1
debug1: identity file /home/lawson/.ssh/id_rsa type 1
debug1: identity file /home/lawson/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Maverick_SSHD
debug1: no match: Maverick_SSHD
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'some.ftpsite.net' is known and matches the RSA host key.
debug1: Found key in /home/lawson/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
Welcome to the Gateway Interchange SSH server.
debug1: Authentications that can continue: password,publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/lawson/.ssh/identity
debug1: Offering public key: /home/lawson/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t /Inbound/jimtest.txt
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
lost connection


Any thoughts. I want to determine if the problem is on my side or theirs. Thank you.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Problem using scp to transfer a file

By jyoung

I am testing the following command to transfer a file from my server (AIX 5.2) to another server. I was able to generate the keys and sent them the public key.

Code:

scp -v -P 4030 /home/lawson/.ssh/jimtest.txt someuser@some.ftpsite.net:/Inbound/jimtest.txt > jimtest_out.txt 2>&1


Based on the output from the command it looks like it is authenticating correctly, but the file is not getting sent or they tell me they are not getting it. Can you take a look at the above command and let me know if it is not correct. I am currently doing this from the command line, but will script it when I get it working. Below is output from the comman execution.

Code:

Executing: program /usr/local/bin/ssh host some.ftpsite.net, user someuser, command scp -v -t /Inbound/jimtest.txt
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.6l 04 Nov 2003
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to some.ftpsite.net [0.0.0.0] port 4030.
debug1: Connection established.
debug1: identity file /home/lawson/.ssh/identity type -1
debug1: identity file /home/lawson/.ssh/id_rsa type 1
debug1: identity file /home/lawson/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Maverick_SSHD
debug1: no match: Maverick_SSHD
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'some.ftpsite.net' is known and matches the RSA host key.
debug1: Found key in /home/lawson/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
Welcome to the Gateway Interchange SSH server.
debug1: Authentications that can continue: password,publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/lawson/.ssh/identity
debug1: Offering public key: /home/lawson/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t /Inbound/jimtest.txt
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
lost connection


Any thoughts. I want to determine if the problem is on my side or theirs. Thank you.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Kill idle Process using a script

By MaggieL

Hi,
I need a script that can automatically kill all processes named “webrepn” and “webrebw” if idle for more than 30 minutes.

Then I will have a Cron Job to run the script every night or 2-3 times a day depends on how this script helps.

Right now, I run “ps -ef | grep webrebn” and “kill -9 PID” to kill the idle processes using PID if I see any. Then repeat for “webrepw”. The problem is if I forget to do so for couple days, my system will be very slow.
Would anybody help me out here?

I am using DB2 database in AIX 5.3 server.

Any help will be greatly appreciated.

Thank you,
Maggie

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

NIM Restore hangs at the start

By elcounto

Hello Gurus,

I have a couple of questions, I’m trying to do a mksysb restore from backup and it has just hung at the start.

Code:

RS/6000 Firmware
Version TCP05287
(c) Copyright IBM Corp. 2000 All rights reserved.
-------------------------------------------------------------------------------
LOAD: Waiting 60 seconds for Spanning Tree
BOOTP R = 1 BOOTP S = 1
FILE: /tftpboot/bsrs6d
Load Addr=0x4000 Max Size=0xbfc000
FINAL Packet Count = 16105 Final File Size = 8245686 bytes.
-------------------------------------------------------------------------------
Welcome to AIX.
boot image timestamp: 11:10 11/28
The current time and date: 15:40:43 03/21/2013
number of processors: 1 size of memory: 1024Mb
boot device: /pci@80000000/ethernet@c:10.11.2.9,,10.11.2.88,10.11.0.1,00,00
closing stdin and stdout...
-------------------------------------------------------------------------------


Anyone know why this is happening and how I can break out of it without someone going to power off the machine from the front panel. I’m logged on through the console cable and not the HMC unfortunately.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums