Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [aix]

AIX (Advanced Interactive eXecutive, pronounced "ay eye ex") is a series of proprietary Unix operating systems developed and sold by IBM for several of its computer platforms.

0
votes
1answer
21 views

shell: pgp: not found

I installed pgp on one of my AIX machines (AIX 7.2). When I try to run pgp from my id I get the below error: $ pgp shell: pgp: not found. But this works as expected using root account. Can ...
0
votes
0answers
5 views

Find FTPS port on AIX Server

I have setup ftps using the official documentation found here: https://www-01.ibm.com/support/docview.wss?uid=isg3T1011849 on a AIX 6.1 machine and while I can connect using both ftp and ftps, when I ...
0
votes
0answers
6 views

Not able to find KeyTool class in 1.7 java for AIX [migrated]

I am trying to sign a jar using JarSigner API using java 1.7. This works in Linux and Windows machines but fails in AIX machines with classnotfound exception (for class "sun.security.tools.KeyTool"). ...
0
votes
0answers
9 views

Find exactly what processes caused disk usage spikes in the past [Nmon Installed]

I have an AIX 6.1 machine with nmon running and after analyzing the nmon log files using nmon-analyser.xlsm for the specified time-frame, I noticed some disk and network usage spikes. Even after ...
1
vote
0answers
24 views

how many resources nmon command use in AIX?

I need to store in an external repository, every minute (in near realtime mode), the nmon information saved in a temporary file. So what would be the best scenario: 1) every minute I open an ssh ...
0
votes
0answers
216 views

AIX Command to get LPAR entitlement usage

I would like to know with a command what is the entitlement usage in my LPARs. I have thought to the topas command: save information in a file and send it to datawarehouse. topasrec -L -c 5 -s 60 ...
0
votes
1answer
195 views

How to check used space for pvdisplay?

In AIX using lspv hdisk0, i am able to get total pps, free pps, used pps TOTAL PPs: 1119 (71616 megabytes) VG DESCRIPTORS: 2 FREE PPs: 272 (17408 megabytes) HOT SPARE: ...
1
vote
0answers
23 views

Change the name of an object within an archive

My company has some software that uses a 3rd party library to interact with an oracle database. It hasn't been tested in a long time, and now that we need to verify that it's working, we can't get ...
2
votes
0answers
139 views

AIX sudo rootsh

I'm allowed to do: sudo /usr/bin/rootsh -i -u user Additionally I want do something like: echo 'date' | sudo /usr/bin/rootsh -i -u user Here I get the answer: no tty/pty on stdin: Not a ...
0
votes
1answer
60 views

Formatting multiple drives on AIX

I originally got help here to figure out how to remove multiple drives from a list. I now would like to try and use that same sort of code to format multiple drives with a loop. for i in `lsdev -Cc ...
1
vote
1answer
42 views

Setting up DNAT servers

Hi i have trouble connecting to server that i had setup with DNAT configuration. i have two listening servers 145.217 and 145.241 both have configured their gateway ip same as my loadbalancer ip 145....
1
vote
1answer
168 views

Creating users across all cluster nodes

Is there a way to add a user across all cluster nodes via command line? I have the manual instructions from IBM here (and listed below) and found instructions for listing the users (cl_lsuser), but ...
0
votes
2answers
38 views

UNIX owner 42286?

An AIX 6.1 server with a NFS share mounted worked for years but then changed owner on all of the files and folders on the mount from sbladmin to a 5 digit code: 42286. It didn't change the group but ...
0
votes
1answer
667 views

Removing multiple hdisk from smitty->devices ->fixed disk-> remove

Original Code that I saw I want to do the same thing but need to make sure i dont delete hdisk0 since this is my OS. photo of drives being deleted.
2
votes
1answer
3k views

How to Identify automount mount path

I need to know all the mount points monitored by autofs/automount. I came across "automount -m" to dumpmaps and "/etc/init.d/autofs status" in the older versions. But these commands doesn't work ...
0
votes
0answers
101 views

AIX cut the file size from the ls -l output

Given the 2 lines from the ls -l command: ls -l /text*.txt -rw-r--r-- 1 root root 1307250 Jun 01 10:44 text1.txt -rw-r--r-- 1 root root 697 Jun 01 10:30 text2.txt How can I ...
0
votes
1answer
61 views

Can SU group be used on Suse as it is AIX?

I'm the admin of a large AIX environment. I utilize the SU Group attribute for users to determine who can access root, even if they know the password. If they are not in the root group then access is ...
2
votes
2answers
1k views

AIX service account - how to find who is locking it

I have a non-expiring service account on an AIX server. I use the account to connect to my database. Every couple of weeks some user or task tries to connect to the account with the wrong password, ...
0
votes
1answer
2k views

How can I send email with attachment xls file using shell script as application/xls mimetype without making the received file becoming unreadable

#!/bin/bash ATTACH1=file.xls<br> SUBJECT="subj"<br> FROM=me@domain.com<br> TO=you@domain.com<br> CC=them@domain.com<br> MIME="Application/vnd.ms-excel" <br> FILE=$...
4
votes
1answer
197 views

AIX: meaning of lslpp type-column

Running lslpp -L yields the following (shortened) output: Fileset Level State Type Description (Uninstaller) -----------------------------------------------------------------...
0
votes
0answers
323 views

AIX - Memory space error when running script

I run the following: for i in `ls -ld /u03/sss/| awk '{print $9}'` do echo $i for j in `find $i -name "*.gz" | grep $send_sysdate` do count=`gunzip -c $j | wc -l` sum5=`expr $sum5 + $count` done ...
0
votes
2answers
133 views

Is it possible to make UNIX FTP client and CentOS VSFTPD server working together?

I have a UNIX bull AIX client with ftp installed and a CentOS 6.2 server with vsftpd installed. Can the client connect to the server ? Cause it seems that the vsftpd server is refusing all ...
0
votes
1answer
133 views

Cannot Suspend vi with Ctrl-Z

It's on an AIX 6.1 connected via PuTTY 0.65. If I open a file and hit Ctrl-Z then. It works 1st. But when I switch back and hit Ctrl-Z again. A square cursor jumps to the bottom. I can type something ...
0
votes
1answer
3k views

String replacement shell script on AIX

I am using AIX, and there is not an -i option available in the version of sed I am using: sed: illegal option -- i Usage: sed [-n] Script [File ...] sed [-n] [-e Script] ... [-f Script_file] ...
0
votes
5answers
2k views

Extract filename from file using shell script

I have a text file which has the following line: /u/tux/abc/spool/frtbla_mcdetc_0000149099_20101126135009990_1.tif I want to extract frtbla_mcdetc_0000149099_20101126135009990_1.tif; the word after ...
2
votes
1answer
10k views

AIX - how to change user shell to bash?

I want to know how I can run bash automatically when I log into my AIX server. How can I do that without having to type bash every time I log into my AIX server?
0
votes
1answer
1k views

AIX 7.1 Create another user with equal privileges as root and then disable root user

I've got a weird, stupid question. I've used linux for a long time, but I know AIX is different in certain places, so my question is if I wanted to disable the root user at least from remote login I ...
1
vote
0answers
700 views

AIX lspath doesn't show any output

root@xxxxx:/>lspath root@xxxxx:/>lspath -l hdisk20 lspath: 0514-538 Cannot perform the requested function because the specified device does not support multiple paths. root@xxxxx:/>...
1
vote
0answers
792 views

Verify current routing table matches AIX ODM

My task is to verify that all current routes will be preserved after a reboot of AIX 6.1 and 7.1 systems, i.e., I want to verify the system will reboot and build the current routing table with a ...
1
vote
1answer
2k views

Can I manually replace password hashes in the AIX /etc/security/passwd file?

Can I safely replace the password hash in the AIX /etc/security/passwd file? Are there any AIX quirks that would stand in the way of me just using vi to replace the hash? I want to consolidate the ...
1
vote
2answers
3k views

AIX 5.3 Tar - Exctact to a different directory

I am trying to extract a untar a file to a different directory on a AIX 5.3 box tar -xvf -C /tmp/ ./MyFile.tar tar: -C: No such file or directory tar -C /tmp -xvf ./MyFile.tar Usage: tar {c|r|t|u|...
0
votes
1answer
111 views

Using chuser and stopudt without root

I am trying to create a user account that can preform certain commands via command line without having to login as root. The commands I want to run are stopudt, chuser, chpasswd. What I have tried is ...
1
vote
1answer
2k views

Password less ssh AIX Linux

I tried to configure password less SSH from AIX to Linux. I executed the command. scp .ssh/id_rsa.pub root@10.170.163.74:/root/.ssh/authorized_keys When I execute the command and try to connect from ...
0
votes
1answer
344 views

cd to newest directory

Not strictly bash, but rather Bourne shell if possible. How can I programmatically cd to the newest directory? I want to install the latest package of whatever software, which is located in the newest ...
0
votes
1answer
338 views

Cron jobs on IBM i 7.1

I just found out today that on an IBM i system I am able to use SSH to get to a Unix-like terminal (AIX/PASE) and would like to use this to schedule automated tasks using crontab. Does anyone know if ...
1
vote
1answer
236 views

How to store password for switch user in my .profile

I usually connect to my AIX server using putty via my regular account and then do "su - otherAccount". This way I've to enter password twice, one for my account and one for the otherAccount. I've ...
1
vote
1answer
558 views

AIX 6.1 won't boot, I need support for make a report of incident

As I wrote the issue is now solved, but I don't understand what happened and how I've solved it! Now I have to report to my boss what exactly happened. Yesterday, after a task for tuning the ...
0
votes
3answers
620 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * 2>/dev/...
0
votes
2answers
406 views

bash autocompletion + command history using sudosh on AIX

We configured sudosh on AIX as login shell with /usr/bin/bash as their default shell. All is working fine except bash autocompletion and command history are not working anymore. TAB is TAB, arrows ...
1
vote
2answers
978 views

Is there a way to show “File not found” or a message alike when using the `find` command?

I'm trying to check the existence of several files, without knowing in advance where the files are located. So, I thought of find as the de facto utility to do this... It works as expected, but the ...
1
vote
0answers
854 views

XCOFF32 object files are not allowed in 64-bit mode while installing Crypt-SSLeay-0.65_02

I am installing a Perl package Crypt-SSLeay-0.65_02 in an AIX 6.1 system but while performing perl Makefile.PL getting the following error. The test suite can attempt to connect to public servers to ...
0
votes
1answer
2k views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
2
votes
2answers
10k views

UNIX command for deleting / removing files on today's date

I want to remove all the files in the directory I am in currently in that were created today. So if today is April 3rd then the UNIX commond I am asking for would remove someFile2, someFile3, ...
0
votes
1answer
26 views

Not able to reference softlinks in a script

we have couple of softlinks to scripts a directory in our current directory. Let's take we have two softlinks , script1 and script2. We are referencing script2 from within a script1 like below. . ...
1
vote
1answer
1k views

What is the AIX's `ps -T PID` equivalent for Linux?

I really like the way ps -T PID works on AIX. It shows you a nice tree of processes in the right side, and their PID, PPID and other info in the left side. In AIX docs, the -T flag reads Displays ...
2
votes
3answers
2k views

Are files in /tmp cleaned up by the operating system?

I have a script that generates log files that I place under /tmp I run it on Linux RedHat, Ubuntu, Solaris and AIX. I'm wondering I have to clean the logs periodically by myself (e.g. after 14 days) ...
0
votes
1answer
729 views

Filesystem unmounted after machine reboot

I'm having some problems last weekend according to various filesystems are unmounted on monday morning, having them mounted and running the work days before. During the weekend the machine reboot but ...
1
vote
1answer
54 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
0
votes
1answer
123 views

editing string using sed or grep

first of all please execuse my ignorance on UNIX. I am quite new. I have lot many sql files that contains following string ${DB_USERNAME}.${TABLE_NAME} Can anyone please tell me how could I change ...
1
vote
1answer
638 views

Injecting a keypress into a tool started by a bash script

I'm writing a bash script to gather some informations about disks and then start the 'nmon' tool to monitor only those specific disks. I start the nmon tool out of the bash script (with -g). To get ...