Questions tagged [aix]

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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
3k views

Several groups can have the same groupID?

0:root@SERVER:/root # grep 300 /etc/group ipsec:!:300:admgrp 0:root@SERVER:/root # ?? Several groups (ipsec/admgrp) can have the same groupID (300)?? how can this be? /AIX 6.1/
gasko peter's user avatar
  • 5,504
2 votes
3 answers
25k views

How to run the most recent command on AIX?

How can I run the most recent command again from history in AIX Server? And how to edit the most recent command and run it again in AIX?
jrara's user avatar
  • 2,089
2 votes
4 answers
115k views

How to check that a user/password is expired in AIX?

I can check that the user is expired or not with: lsuser -f USERNAME | fgrep expires But how can I check that the user's password is expired or not? Are there any other "expiring" things that can ...
LanceBaynes's user avatar
  • 40.1k
2 votes
1 answer
206 views

Blocking a specific port

I need to block specific ports temporarily on AIX 7.2 to simulate an application using this port. I am developing a workaround for an application ignoring the entries in /etc/services and using ...
bakunin's user avatar
  • 531
2 votes
1 answer
5k views

Transferring files via Binary mode in SFTP

While using FTP we can use the option bi to transfer files in binary mode however I am unable to find similar option in SFTP. Please find my code snippet below.. fileTransferToDEST() { echo "mput $4/$...
pOrinG's user avatar
  • 145
2 votes
1 answer
4k views

Check if the file has been successfully transferred to the destination with SFTP

We have a daily process which moves file from 1 server to another via FTP using a script. Please find the snippet below: fileTransferToDEST() { ftp -inv $DEST_IP 1>$2 <<END_SCRIPT quote USER ...
pOrinG's user avatar
  • 145
2 votes
1 answer
1k views

Align columns evenly without "column - t"

I have an output file created from a Korn shell script. I need to align the output with spaces evenly. Unfortunately column -t is not available on AIX. Actual File: X1vir1000 x1-DFB127 ...
satsensort's user avatar
2 votes
2 answers
3k views

Removing characters with sed [duplicate]

I am working on AIX unix and trying to remove non-printable characters from file the data looks like Caucasian male lives in Arizona w/ fiancÃÂÃÂÃÂÃÂÃÂ in file when I view in Notepad++ using UTF-8 ...
Auguster's user avatar
  • 123
2 votes
1 answer
105 views

Why can I not see this "readable" directory?

Today, one of my coworkers ran into trouble setting up a new intern to work. An account was set up by our IT group for the intern, but we were not able to access it. When I investigated, I found: $ ...
Paul Sinclair's user avatar
2 votes
1 answer
812 views

Pdf to Text Converter in AIX

I need to convert PDF to Text files in AIX. How can I do that? I got the XPDF util for Linux and windows. But specifically looking for AIX server. Also any licensed version would work, we can buy.
Lalatendu Bag's user avatar
2 votes
2 answers
2k views

How to copy files on AIX from an FS to another FS?

We got a filesystem: /foo And we got another filesystem: /bar Q: How can I copy all the files from /foo to /bar? We don't have space to compress them, only to copy them. But there could be ...
pepite's user avatar
  • 1,103
2 votes
1 answer
931 views

AIX - use ksh builtins to free memory when fork not possible

Context: an AIX lpar with very low memory (no forking possible, so only shell's builtins (cd, echo, kill) will work). I can have a (hmc) console to it, but I need a better way to start freing memory ...
Olivier Dulac's user avatar
2 votes
1 answer
1k views

Execution of a program called by a shell called by crontab returns code 127

I'm stuck with the following (simple) problem : I want a script to be executed every 10 minutes. This script calls executable files. I use crontab and ksh on a AIX 5.3 system. The script makes use of ...
Etsitpab Nioliv's user avatar
2 votes
1 answer
551 views

Why are some pts in AIX never reused?

In an AIX system (AIX p740 1 7) that is running for about several months, some pts aren't reused anymore. This was noticed using the "who" command, with the following "awk" expression, running it ...
Luciano's user avatar
  • 1,159
2 votes
1 answer
538 views

Shell Script - Redirected output to a file and results are not as expected in first run

I have redirected the output of the command which returns some times 2 rows, 5 rows.. 100 rows etc in the file.. and i will use this file in if condition later to check some other conditions.. ...
RenukaKC's user avatar
2 votes
1 answer
972 views

How to get list of files with not having search string [duplicate]

I have a requirement to display all files in a directory which doesn't have CountOfFilesTransmitted=0 string in them. If I give below command it gives only those files which has ...
kumar2008's user avatar
2 votes
1 answer
983 views

Replace or modify file contents at one shot

I have file where I need to modify some lines for every account. The line which I need to modify looks like as below: PstlInfo <some content> NNYYYN (Every account will have this line) the ...
Aravind's user avatar
  • 1,589
2 votes
1 answer
137 views

What is making "at" in AIX add a "cd /some/path/here" prior to my explicit commands?

When I execute the following command: cd /some/path/here at -t 201409301100 ls -al <CTRL-D> at -lov I get the following output: ======================== myusername.1411755840.a Mon Sep 30 ...
Hannah Vernon's user avatar
2 votes
2 answers
2k views

Other than a kill command or a system kill(pid, signal) command, what can cause a SIGKILL to occur for a process?

My process is mysteriously getting a SIGKILL on AIX. Running trace on the system indicated the process got a signal sent by itself via the kill(pid, SIGNAL) system call. I checked my code and I ...
James's user avatar
  • 21
2 votes
2 answers
1k views

ldd: cannot find library for xl c compiled binary but could for gcc compiled binary on AIX

I have compile on AIX two version of proftpd one with gcc and one with the xl c compiler from IBM. The command line to compile both version are almost the excat same, but when I do a ldd on the gcc ...
Kiwy's user avatar
  • 9,524
2 votes
1 answer
590 views

Why PowerVM LPAR CPU utilization is negative

For a specific case I compute an PowerVM LPAR CPU utilization to be a large number less than zero. I am fetching the lpar sample event using: lslparutil -r lpar -m P750 --filter "lpar_names=i5lp5" -...
phoxis's user avatar
  • 176
2 votes
2 answers
511 views

Find when a hard disk was first installed

What's the command in AIX to find the first time a given hard disk was installed?
hari's user avatar
  • 21
2 votes
1 answer
5k views

How to troubleshoot a network adapter on an AIX 4.3.3 machine

I'm trying to brush up my skills on AIX. I have an ancient RS/6000 43P-133, which I'm trying to resurrect before investing in anything more sophisticated. I used to do automation and scripting on AIX ...
mgjk's user avatar
  • 666
2 votes
2 answers
5k 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)
LanceBaynes's user avatar
  • 40.1k
2 votes
1 answer
525 views

On AIX 6100-05-02-1034 how can I create custom umask for a specific directory?

On AIX 6100-05-02-1034 how can I create custom umask for a specific directory?
LanceBaynes's user avatar
  • 40.1k
2 votes
2 answers
979 views

What could cause which to not show something in the path?

There is an executable in my path that I believe is a perl script. >$scriptname $outputofscript but >which $scriptname which: 0652-141 There is no $scriptname in $path and the path it ...
user avatar
2 votes
4 answers
315 views

Exclude last N lines that has been last modified from list and with file extension ending in .gz

I want to use the find command on AIX to exclude files ending in .gz, and it must also exclude the last 2 lines from the list. For example, inside the directory, I have: shop14_0_Log0002019754.gz ...
Christopher Karsten's user avatar
2 votes
1 answer
2k views

Dnf/Yum repository install on AIX 7.1 ImportError: 0509-022/0509-150 libcrypto

I am trying to create a Yum/Dnf Repository for an offline AIX 7.1 and I've downloaded all the repos by using the reposync on a linux machine that was connected to the internet. I've installed the Dnf ...
Cat Hariss's user avatar
2 votes
1 answer
233 views

Command To Check If Users In /etc/passwd Exist In A Different File

Is it possible to query the /etc/passwd file to view all user UIDS less than 200 and to check if those users are within a file such as /etc/ftpusers? So far, I have managed to craft the command below ...
Help's user avatar
  • 97
2 votes
1 answer
563 views

AIX 7 - Command To Check Histsize Is Set Correctly For All Users

I am checking to see if the minimum password history setting is set to 6. Using the command below, I am able to check the default stanza: lssec -f /etc/security/user -s default -a histsize Can this ...
Help's user avatar
  • 97
2 votes
2 answers
3k views

AIX - Using Sed To Replace A String In A File

On RHEL, I am able to utilize the sed -i command to replace a string within a file, however, on AIX, it seems like the same -i parameter cannot be used. I have a file called abc.xml that contains the ...
Help's user avatar
  • 97
2 votes
1 answer
5k views

Alternatives to cURL/wget for remote API calls

I'm on IBM AIX 7.1 where cURL and wget are not available. Also, I'm not in a position to install either. Are there alternatives that would be available that would enable remote API calls using GET/...
TechFanDan's user avatar
2 votes
1 answer
676 views

AIX 6.1 copying files with non-standard characters in file names [closed]

I have a big problem with some non-standard characters while trying to copy (for the sake of backup) some files in AIX 6.1. What I need to do is have the backup archive with exactly same file names in ...
Luke's user avatar
  • 21
2 votes
1 answer
239 views

Is there a way to send a string to the STDIN of an existing PID in AIX?

To give you some context, there's a ksh script running in AIX that contained a rm file.txt instruction - the problem is that the file, being owned by a shared group but by other user, made the script'...
jimm-cl's user avatar
  • 1,128
2 votes
1 answer
201 views

When a script runs in background on AIX, it is creating a copy in /tmp directory during bg runtime, how to change this behaviour?

When a script runs in background that is creating copy of it with the parent process id in /tmp directory, ofcourse this copy is getting removed soon after the process is done, however during this run ...
user188577's user avatar
2 votes
2 answers
455 views

AIX - redirect hostname in other subnet via route

I have two servers: one application and one database. They are both connected over two interfaces. One is frontend LAN with 100 Mbit and one is in the backbone LAN with 1 Gbit. Well, planned is that ...
dafrk's user avatar
  • 61
2 votes
2 answers
4k views

Script to send email alert only when process change state

Below script checks whether MStrsvr process is running or not . The issue I'm facing is if i schedule a cron tab to run this script for every 1 hour it will throw email alert every 1hr that "MSTRSvr ...
star's user avatar
  • 173
2 votes
3 answers
4k views

Remove first and last character if present

I need to remove the first two characters of every line in a file ( always the same ) and the last "/" if it is present. Input is, in the file F1 : ^./inst/oracle/ ^./tmp/ ^./inst/maj/ ^./mkcd ^./...
Choses Curieuses's user avatar
2 votes
1 answer
2k views

How can I see history of the "at" command in AIX?

I'm experiencing a strange problem where occasionally the at command appears to not be running the command I've configured it to run. For example: at -t 201510071042 runsomescript <Ctrl-D> ...
Hannah Vernon's user avatar
2 votes
1 answer
3k views

Encoding problem on aix system when logging using log4j2

I am using log4j2 to log message on aix system. In log when I use command less I can see: ...|LU?N ...|NOV�K ...|ZEM�NEK when I copy same file on my ubunty system and use same program I can see: .....
hudi's user avatar
  • 155
2 votes
1 answer
881 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 it ...
Dhiren Dash's user avatar
2 votes
2 answers
3k views

mknfsmnt fails with "System call error number -1"

This system is part of a cluster and the other node mounts the nfs share successfully. This is currently the active node which means it has a secondary service ip address. I think this is related to ...
NekkabCire's user avatar
2 votes
2 answers
4k views

Mailx with multiple uuencode attachments and body

I am sending multiple files using following line in my script find . -type f -name "Sum*pdf*"|while read name; do uuencode "$name" "${name##*/}"; done | mailx -s "North Bus Correction" $RECIP Now I ...
Aravind's user avatar
  • 1,589
2 votes
1 answer
4k views

Start a service at boot and automatically respawn it if it dies under AIX

I'm trying to write a script that can set a service to: automatically restart after killed automatically start during boot up I can do this by using /etc/inittab but some of the AIX server that ...
Mohd Fikrie's user avatar
2 votes
1 answer
2k views

Find files older than x amount of time in specific directory with ignoring subdirectories

My setup is as following: folder structure dir |--correctfile1 |--correctfile2 |--correctfile3 |--subdir1 |--wrongfile1 |--wrongfile2 |--wrongfile3 |--subdir2 |--subdir3 I need to ...
Noosrep's user avatar
  • 195
2 votes
1 answer
1k 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 NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/...
CaiNiaoCoder's user avatar
2 votes
3 answers
1k views

How Do I install DB2 Remotely?

I have been trying to install IBM DB2 10.5.0.1 on AIX 7.1.0.0 from a Windows 8-64bit using a Remote connection. It has been 3 days and I haven't been able to succeed; Here is a list of everything I've ...
Joye's user avatar
  • 31
2 votes
3 answers
4k views

Process status on AIX

I want to get process status on AIX like we get it on Linux from /proc/<PID>/stat, I did not find the status in /proc/<PID>/status file. There was some encrypted text there. Which file ...
diago's user avatar
  • 163
2 votes
1 answer
37k views

How to resolve ssh connection refused on AIX?

I am no longer successfully able to connect to my AIX LPAR. ssh -v user@<ip> OpenSSH_6.2p2, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to &...
user1896311's user avatar
2 votes
1 answer
496 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 ...
phoxis's user avatar
  • 176

1
3 4
5
6 7
15