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

learn more… | top users | synonyms

0
votes
3answers
55 views

Best way to obfuscate aix script

What is the best way to obfuscate shell script in aix? The problem is that is a shared user and I would like to the other don't know the code.
0
votes
0answers
27 views

How to set mail subject using variable and ensure attachment is not included in email body

I have the following shell script fragment. var_name='ZZPCI' for emailadd in `cat /tmp/email_list.tmp` do subject_text="Subject with Var Name "$var_name subj_text_novar="Subject without Var ...
2
votes
3answers
2k views

How to search files where two different words exist?

I'm looking for a way to search files where two word instances exist in the same file. I've been using the following to perform my searches up to this point: find . -exec grep -l "FIND ME" {} \; ...
1
vote
1answer
26 views

How to compile shared library on AIX

I have a simple shared library that is currently compiled on Linux using: gcc -c -fPIC foo.c -o foo.o gcc -shared -o foo.so foo.o I need to relay instructions to a colleague for compiling the same ...
5
votes
5answers
7k views

Next day of the user entered date - date +1 day

I am new to scripting. I need a script in the AIX environment to get the next days date based on the date entered by the user. After hard time browsing for this, I got a piece of code which does the ...
0
votes
1answer
31 views

PS1 variable inheritance between scripts and programs using bash in AIX

How to ensure that PS1 variable in AIX bash is inherited between cross calling of scripts and programs ? Suppose a program that give to the user a shell instance like the shell command of vi. This is ...
0
votes
2answers
2k views

Why doesn't alias work in AIX (Korn shell, .profile)?

I have these files in my home directory: drwxr-xr-x 3 meuser staff 256 Oct 12 13:11 . drwxr-xr-x 102 bin bin 4096 Sep 30 12:28 .. -rw------- 1 meuser staff ...
1
vote
3answers
57 views

epoch time for GMT

On AIX date -u gives date and time in GMT format date gives date and time in local timezone date +%s gives local time in epoch time Is there a way to get GMT time in epoch format? In the AIX I'm ...
3
votes
1answer
1k views

How to get start time for a defunct process on AIX?

When I run the following commands on AIX: 22:root@SERVER:/root # ps -ef | head -1 UID PID PPID C STIME TTY TIME CMD 22:root@SERVER:/root # ps -ef | grep defunct | head -1 ...
2
votes
1answer
1k views

General problem solving steps when print jobs hang in AIX?

What should I do if jobs are getting stuck in the print queue even after restarting spooling? $ stopsrc -g spooler $ startsrc -g spooler $ lpstat -oQUEUENAME | wc -l; sleep 30; lpstat -oQUEUENAME | ...
0
votes
2answers
32 views

How to open compressed file in less mode [duplicate]

How do I open a compressed file in less mode. I am able to grep using zgrep and using zcatI can open, but the file is big I want to open in less mode.
1
vote
0answers
30 views

Installing Graphviz & Dependencies without Internet access

I am trying to install graphviz on AIX7.1 - I have NO internet access and I have downloaded a lot of rpm files. I want to know is there a way to install the graphviz-*.ppc.rpm packages so that the ...
0
votes
1answer
31 views

Is there a way to comment more than one entry at a time in cron?

I know the standard way to disable a task in cron is to comment the line with the task using the # sign in front of it, as with most Unix config files or shell scripts. e.g.: 53 23 * * * ...
0
votes
1answer
18 views

How to check hcheck_interval value of a SAN disk

http://aix4admins.blogspot.co.uk/2012/05/kdb-kdb-kernel-debugger-and-kdb-command.html Question: The URL writes about local disks. But How can I check it for SAN disks? Using AIX 6. This setting ...
1
vote
1answer
66 views

Doing a 2>&1 redirection inside a script

Is it possible to run a script from within another script, and include a redirection into a log file? I'm attempting to run 3 scripts from within a larger script. One of them needs to be run "at ...
2
votes
2answers
1k views

AIX 6.1 — Without root can I get the last failed login for a user i have access to?

I know the information is in the security files but I don't have access and it's more work then I want to do to go to our Unix admins to get the information (everytime the account gets locked which is ...
0
votes
2answers
39 views

filtering files from search

I have some files containing date and timestamp which I want to exclude from the output of ls as in: test.log.15-05-25_20:41:05.20150611 test.log.15-05-27_20:28:32.20150611 ...
0
votes
1answer
45 views

Show AIX operator panel status

Is possible to see codes on the operator panel of P5 IBM workstation from console?
0
votes
4answers
46 views

tabs in variable not working

I have this lines that i will insert in a mail called "header". header=" ------------------------------------- Name\tAge\tGender\tAddress ------------------------------------- " Unfortunately, the ...
-10
votes
1answer
85 views

What are the three mandatory checks to be done after a unix/linux reboot? [closed]

What should I immediately do after rebooting a UNIX/LINUX system? I was asked what are the three checks, so I would like to know the three. Along with their commands.
-2
votes
2answers
54 views

If a UNIX system is shutdown and it is not coming up, how do I resolve the problem? [closed]

Let's say I have remotely logged into a UNIX system and I run reboot command. The system shuts down but does not come up. What should I do now?
6
votes
4answers
271 views

Is there a way to display all the scripts called from some other script?

I have a large number of scripts that I need to modify. Each script probably calls 5 to 10 other scripts, which in turn might call several other scripts, and who knows how deep that rabbit hole runs. ...
0
votes
1answer
50 views

Mailx -E flag fails

I am using mailx command with -E flag.This is what it says in man page for linux. -E If an outgoing message does not contain any text in its first or only message part, do not send ...
1
vote
1answer
53 views

Stopping find command after finding files in one directory

I have a command in a Korn script which is like as written below, find <path1> <path2> <path3> -name filename After this, it stores the output in a txt file. Using this txt file ...
15
votes
5answers
54k views

How to strip multipe spaces to one using sed?

sed on AIX is not doing what I think it should. I'm trying to replace multiple spaces with a single space in the output of IOSTAT: # iostat System configuration: lcpu=4 drives=8 paths=2 vdisks=0 ...
1
vote
3answers
70 views

Use alias after issuing sudo su command

I am on AIX 7.1. I have a bunch of aliases defined in my personal .profile. alias df='df -k' alias cl=clear alias h=history alias ll='ls -al' alias lt='ls -latr' alias ls='ls -Fa' alias psj='ps -ef ...
0
votes
1answer
45 views

CDE and AIX nothing work

On other unix systems,simply set "dtsession" on .xstartup file of vnc start the cde session. On aix i have this problem when i start the session,appear only an error message The DT messaging system ...
0
votes
1answer
36 views

How to skip email notification for at command in AIX?

(AIX 6.1 ) man page for at says -m option could send an email to the user. But this is the default behavior, even without specifying the -m option. Is there a way to turn this off, I do not want mails ...
1
vote
1answer
55 views

A question about shell and .profile,.bash_profile,.bashrc

I'm on aix 7.1,my shell is bash if i did ssh ibmunix gqlplus user/pass All works and gqlplus start,gqlplus is on /opt/freeware/bin If i did from another machine ssh ibmunix "gqlplus ...
4
votes
4answers
236 views

Linux as a network printer device (Raw, port 9100)

Is possible to configure a Linux computer to work as a "network printer device" ? I have an USB printer that I intend to share in the network like a native network printer device. Is that possible? ...
0
votes
2answers
62 views

Uninstall Hitachi.aix.support.rte when disk is booted over SAN

I have a server which boots of SAN and recently the storage migrated to Hitachi VSP. Earlier it was having PowerPath along with Hitachi.aix.support.rte to detect the Hitachi disks. Now we wanted to ...
2
votes
2answers
3k views

Diagnose high swap usage on AIX

Which would be the best approach to diagnose high SWAP usage on an IBM AIX 6.3 machine? I've already tried with lsps -a and lslv. But also I'm looking for a strong scenario, like using topas. Any ...
2
votes
2answers
2k views

AIX ftpd - how to set umask for a given user?

I know how can I change the umask settings for all the users using ftpd, but how can I change the umask for a given user using FTPD? AIX/6100-05-02-1034 FTP server (Version 4.2)
1
vote
1answer
50 views

How to pass flags to IBM xlc compiler?

I want to build samba4 on aix,gcc give me error,so i want to try xlc ibm compiler But give me this error "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax ...
2
votes
1answer
163 views

Perl fails to set locale on AIX 7.1

After setting user language to Chinese with GB18030 encoding in SMIT, the following env variable were added to the user's .profile: LANG=Zh_CN LC_MESSAGE=%l.%c ...
8
votes
2answers
294 views

Unix: a question about xargs

On AIX (but this happens on HP-UX as well), I have GNU ls in my path and it is also aliased as ls. But when i use xargs, it uses the standard Unix ls instead of the alias. For example (flocate is a ...
0
votes
2answers
106 views

File transfer from AIX to Windows - CR and LF issues (Control Characters)

I have an issue transferring files between Unix(AIX) and Windows. I use the following mount command to mount a Windows folder on Unix. mount -v cifs -n /admin/@dmin -o ...
1
vote
1answer
145 views

AIX Memory Limits

I cannot find these numbers anywhere on the IBM Web site or even random blogs that Google finds. Questions What is the maximum physical memory size a POWER7 CPU supports? What is the maximum ...
5
votes
2answers
1k views

how to return to underlying script from tail -f

I have a ksh script, in which I use tail -f to view a log file. How can I terminate the tail process, and continue executing the underlying script? I am running it on AIX 7.1. ...
0
votes
2answers
20 views

AIX: mptconfig equivalent

On hpux i use mptconfig to show speed and other info about scsi controller. There is something similar on aix?
3
votes
1answer
234 views

Want to grep a date in a file and its next 5 lines

I want to grep the current date in a file, but also output the next 5 lines. How do i do that with the grep or anything else. grep -A 5 file.txt does not work and the output is shown below. Please ...
0
votes
1answer
77 views

How to check whether my AIX is PPC OR PPC64?

My AIX machine is currently running on 6.1 OS. I would like to know whether it is on PPC OR PPC64, Is there any command other than arch which gives the information about PPC ?
0
votes
1answer
23 views

assistance with scripting list of users

I'm new to scripting, so far I've created this: #!/bin/sh ( echo List of users in PRD echo $(date) cat /etc/passwd | awk -F: '{print $1,$3,$5}' | sort | \ while read username uid gecos do echo ...
3
votes
0answers
158 views

SSH always refuses first connection attempt

There's an AIX box where I work and so I've not got any root access to it. When I connect to it using telnet I can get on fine. When I connect to it using SSH if I put in my correct password on the ...
2
votes
1answer
172 views

Determine the owner of the session of a process

I am trying to implement a way to determine which user is owner of some process's session, in a way that's as cross-platform as possible. In Linux I can trace the process's pty by following the link ...
1
vote
1answer
177 views

What to check in AIX bootlist?

It's OK that we can list the bootlist with: 2:root@server:/tmp/foo # bootlist -m normal -o hdisk0 blv=hd5 pathid=0 hdisk4 blv=hd5 pathid=1 hdisk0 blv=hd5 pathid=1 hdisk4 blv=hd5 pathid=2 hdisk0 ...
1
vote
1answer
1k views

How to kill a ghost process? AIX 6.1

oslevel: 6100-05-01-1016 according to topas: root 1769602 1 93 20 112 0 128 32498:07 87.1 0 0 ldmp_pro according to ps: -bash-4.1# ps -ef | egrep -i "1769602|ldmp" ...
1
vote
1answer
218 views

AIX CPU usage - how to know how many CPUs running?

Over AIX 6.1 - I do see the following output, it says I have 16 Max Physical CPUs; but there are only 8 active - why is that? The system will use the remaining 8 if needed? Or are they disabled? # ...
2
votes
1answer
124 views

PowerVM lpar specific cpu/mem info

I want to get the CPU and memory allocation information from lpars of PowerVM through HMC. I have used lshwres -r proc -m <ms> --level lpar lssyscfg -r proc -m <ms> The fields of ...
1
vote
0answers
43 views

How to investigate TCP, domain socket and similar activity of a process in AIX

I have to collect as much information as possible about a running production system under AIX 5.3. This must not cause any downtime and I may not install any additional software. The final goal is to ...