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
1
vote
0answers
33 views

AIX services logging

I have created sample subsystem for service as this: mkssys -s testService -p /usr/opt/myscript -a "-n" -u -R -S -f 9 -n 15 Now when I start it via : startsrc -s testService I get the message: ...
1
vote
1answer
53 views

AIX and daemon service

I see that the daemon service is started and stopped via the commands: startsrc and stopsrc on group/subsystem. I have init.d script and I want to make it daemon service in AIX. From these commands ...
0
votes
5answers
39 views

Awk all lines above matched parameter

I have a file called test.out with the below lines in: -rw-rw---- 1 informix informix 9117025 Jan 21 05:22 shop4_0_Log0000331875.Z -rw-rw---- 1 informix informix 8897981 Jan 21 05:24 ...
0
votes
1answer
27 views

OpenSSH Server: Directive 'SyslogFacility' is not allowed within a Match block

I want a specific matched User to have its 'ssh/scp' activities logged in an alternative facility. The current default is AUTH, but I'd like to log stuff for user 'dummy' to syslog Facility 'LOCAL2'. ...
0
votes
1answer
23 views

AIX netstat -a proto column

Greetings everyone, I am looking at the output of the "netstat -an" output on an AIX 7 server and the proto column has confused me a little bit. First, the output: Active Internet connections (...
0
votes
1answer
28 views

Need AIX command to extract a particular text file from a compressed file

I am looking for an AIX command to extract a particular text file from a compressed file. For example, my compressed file abc.gz contains millions of files with multiple sub directories. I need to ...
0
votes
0answers
21 views

Excluding line numbers from sourced in files in KSH93 debug output

I have a number of ksh93 scripts on AIX 7.1 which print debug information using the following command to print the script/function name, time and line number when used with 'set-x': PS4='$0 @ `...
1
vote
1answer
60 views

Cannot convert from utf16be to utf8

I'm working on a script for aix 7.2 and I'm getting an error when I try to convert from utf16be to utf8. I'm using iconv to convert. Using the follow the script: for file in *.OPEN do echo "...
1
vote
2answers
82 views

AIX: how to use egrep to search the maching pattern?

I'm looking for how to use egrep or grep to complete my task. I want to show the last line of each interfaces. I tried to use grep and egrep with option but the results didn't mach my expectation. #...
1
vote
1answer
17 views

Script that Show which hdisks each of the filesystems reside on for IBM AIX [closed]

i have the folowing script that Show which hdisks each of the filesystems reside on for IBM AIX. #!/bin/ksh for vg in `lsvg -o`; do for fs in `lsvgfs $vg`; do printf "%-22s" $fs; ...
0
votes
2answers
44 views

How do I remove leading text from this string

How do I remove all the chars up to the number 41 in this line all the way to the number 41 ##SHUTDOWN_MAINT##41 * * * * /vend/oracle/util/bin
1
vote
0answers
34 views

AIX - how modify the service configuration of the sshd? [closed]

I need to change the config file (path) and destination location on FS for the 'SSH tectia server' therefore I also need configure Tectia service. On Linux with systemd, I would just change '...
0
votes
0answers
35 views

AIX strong memory consumption

Yesterday i had empty free memory on one of my main vio ! This vio got 8 lpars $ w rksh: 0403-031 The fork function failed. There is not enough memory available. Today i am lucky i can send command,...
0
votes
1answer
32 views

AIX and winbind users, works fine all except for:“”I have no name!"

I want winbind auth in AIX. Samba works fine: wbinfo -g cert publishers dnsadmins domain guests group policy creator owners domain computers allowed rodc password replication group domain ...
0
votes
1answer
28 views

Why use tape for restoring AIX mksysb instead of other ordinary drive devices?

I'm intrigued by the fact that the only way to restore a mksysb backup on AIX Unix systems can be done either by using a NIM server or by manually using a tape. Why is it that you cannot replace the ...
0
votes
2answers
40 views

Error while using array in AIX : syntax error error at line 81 : '(' unexpected

I am trying to execute one .sh script in AIX environment, but it's giving an error at below line tableList = ( Value1 Value2 Value3 ) I have tried executing the script like below: sh file1.ksh I ...
0
votes
1answer
20 views

Round 2nd decimal place when performing calculation within awk

here is a simple example: echo "36974820" | awk '{print "("$1 " KB)" " (" $1/1024 " MB)" " (" $1/1024/1024 " GB)\n"}' Output: (36974820 KB) (36108.2 MB) (35.2619 GB) What I want is below: (...
2
votes
2answers
110 views

Iterate through array of strings applying a Regex to each element in Korn Shell

I have an array of strings called names containing names with some subsequent garbage data. Like this Jill Shortz, City Contractor, America Bill Torts, Family Doctor, Canada Will Courtz, Folk DJ, ...
1
vote
1answer
46 views

Bash Syntax for Using GREP to Extract Text from File and Store in an Array

I have recently upgraded from bash 4.2.46 to bash version 4.2.50 I had a script with the line: mapfile -t my_array < <(grep ${ID} -w /etc/passwd | cut -d ":" -f 1,4,5) where ID is an ...
1
vote
0answers
38 views

Native binary libraries containing duplicate composite symbols error

I am compiling a C/C++ library from source using GCC. The bulk of code was written for Unix with an emphasis for Linux kernels. I've been trying to adapt it for AIX. The majority of the changes I have ...
2
votes
2answers
55 views

Better method to get a side-value from awk

I have a script whose main purpose is to gather some information and output it in a table. The primary part is an awk script: awk ' { # do some stuff, including calculating dwt ...
0
votes
0answers
31 views

Which hypervisors support AIX as guest? [duplicate]

I have Debian as client. I need to learn IBM/AIX for research, unfortunately VirtualBox doesn't support AIX as guest. Which hypervisor can help me? Qemu, Xen, KVM or .... ?
-1
votes
1answer
42 views

UNIX AIX using Array to store name and path then get them using for loop separately

I have a script in which i need to create an array with the Path and Name of some files, then i need to pass the Path and Name separately to another script after checking the user's arg matching one ...
1
vote
0answers
65 views

Understanding the memory growth of a process in svmon's “Inuse” column on an AIX 7 system

Our company has developed a process where I had to add a new method that implies some memory overhead. I'm required to measure it. So I went to svmon and applied it to my process. This is the original ...
0
votes
1answer
54 views

Password Settings of AIX

esaadmin: password = * dbahx: password = ************* sysgina: password = ************* fsecbp: password = C6qoi9yK.H0So Hi All, I am trying to understand what does password = **...
0
votes
1answer
67 views

What is included in the syscall.h in Linux?

I am compiling a set of native binaries from source for AIX 7.1. The source code references the sys/syscall.h header which is present in Linux but not for AIX. On digging through the raw code, this ...
0
votes
1answer
26 views

Visualisation for etc_security_lastlog

I am looking for an easy way to visualise data from etc_security_lastlog for reviewing inactive user IDs. "Inactive" users would be determined based on their time_last_login being old enough. How do I ...
0
votes
1answer
121 views

Convert string to date in AIX and get difference between date time

I have a log file like this: 2019.09.02 06:40:28 --- 2019.09.02 06:43:34 --- 2019.09.02 06:43:41 --- I need to read the file and get the difference between datetime "2019.09.02 06:43:34" -and- "...
1
vote
0answers
89 views

ssh-keys enabled but prompting for password [closed]

I have an user in an AIX server which could login with its ssh-keys. However all of a sudden, the system started prompting for password. In the /etc/ssh/sshd_config file the AuthorizedKeysFile is ...
1
vote
0answers
50 views

CMake failed to detect installed OpenSSL which was compiled from source

I am trying to compile Hadoop 3.2.0 from source on AIX 7.1 as the pre-built 32-bit binary is incompatible with the 64-bit machine we are using. The OpenSSL is built from source so I have both the ...
0
votes
1answer
63 views

Free space information about FS on AIX system

I am looking for a faster way to know how much space my filesystem on an AIX system has available to grow into. Currently, I am using: lsvg -o | lsvg -i -l savevg: LV NAME TYPE LPs ...
-1
votes
1answer
70 views

rpm fault following db package upgrade

I'm in the process of upgrading the internal packages in AIX 7.1. After upgrading the db package with db-6.2.32-1.aix6.1.ppc.rpm from the AIX toolbox page rpm commands no longer works. I've check the ...
0
votes
0answers
39 views

The strange behavior with the installation fileset of devices.ethernet.mlx.rte?

1) What mean about the warnings "0454-066 Cannot update traceid 66C0 to an earlier version." 2) What ever about the fileset of devices.ethernet.mlx.rte 7.99.1.0 that does not exist at all? # # #...
0
votes
1answer
546 views

AIX How to import CA certificate

I need to import my company's CA certificate to AIX6. I copied .crt file to /var/ssl/certs and /opt/freeware/etc/ssl/certs/ where all CA certificates are located, but I it's not enough. How should I ...
1
vote
1answer
55 views

Kill bash script if Terminal is closed

Problem is that i have a bash script that requires user to login and perform operations. Everything is logged in a log file. Now issue is if user exits the terminal, the scripts keeps running and ...
0
votes
1answer
30 views

Read multiple messages from a same line using a separator in aix

I have to read multiple messages written in a single line separated by a separator from a file in AIX. Messages are separated like follows: Message1#@#@#Message2#@#@#Message3#@#@#Message4 The ...
0
votes
2answers
42 views

cat file in for loop keeping format of data on 1 line once in loop

I have a file called indexes.out The contents below is inside indexes.out file: informix abc_aseld_idx1 informix abc_aseld_idx2 informix abc_aseld_idx3 informix abc_aseld_idx4 informix ...
0
votes
2answers
85 views

How replace tabs with comma after 3rd tab position in a file

I have tab separated text file, the number of fields is not the same for every record. But I want to replace all tabs with commas after 3rd tab in the file. Input 100 Apple COOK USA EUROPE CHINA 200 ...
0
votes
1answer
134 views

AIX restricted shell add entry to inittab

Need a help in adding an entry to the AIX inittab on VIO server. The VIO server is a restricted shell, to add entry to the inittab we need to access the root shell using command: oem_setup_env. I'm ...
1
vote
1answer
846 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/$...
2
votes
1answer
292 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 ...
0
votes
0answers
79 views

Unix - Expect Shell - Syntax for using ifcondition on while loop

I have been working on a expect script on AIX OS. The script should pick the server list from input file from while loop and proceed with an if condition to match a specific pattern then proceed. else ...
1
vote
2answers
52 views

How can I find the latest log for multiple jobs in AIX and delete the latest one

I am new to unix. I am trying to find the latest log of multiple jobs and delete the latest one. Can I write a shell script for it? I have tried with basic commands, but there it is selecting a ...
0
votes
2answers
59 views

How do I split a CR-delimited string into multiple lines and append id to each new line?

I have a file where the lines are partitioned by internal carriage returns, like the below: EMP|123|10\rINFO|JOHN|SMITH|M|01/12/1980\rADDR|125|BRIDGE RD|COLUMBUS|OH EMP|456|10\rINFO|DAVID|PIRT|M|02/...
1
vote
1answer
43 views

Remove multiple CIFS shares using for loop in AIX

I want to unmount multiple CIFS shares on my AIX LPAR using for loop. I created a file named cifs.txt containing all CIFS shares. Will my command work? for i in $(cat cifs.txt); do rmcifsmnt -f $i; ...
1
vote
1answer
973 views

Unable to install any rpm package in AIX after removing some packages

We have an AIX 6.1 server which was working; it does not have most of the freeware packages: root@srv/ins:rpm -qa cdrecord-1.9-7 mkisofs-1.13-4 vnc-3.3.3r2-6 openssl-0.9.7l-2 unzip-5.51-1 bash-4.2-3 ...
4
votes
2answers
468 views

Determine the application client is using to connect

Is there any way in Linux/Unix to determine the client application user is using to connect to OS. In our environment thousand of users connect to our system via client applications like WinSCP, ...
0
votes
1answer
108 views

Ambiguous error while executing ksh file

I have created a audit.ksh file which is used to clear old "*.aud" files. But when i run this file am getting below error. The strange thing is the commands inside the file works fine while executing ...
1
vote
2answers
58 views

How add new lines between rows and start and end position of the csv file

The below input data contains table attribures with header information. The expected output is given below as well where the header and newline with intended text. This is expected as and when there ...
5
votes
1answer
575 views

Unix AIX passing variable and arguments to expect and spawn

I am writing a script to scp some files but need to pass file location through the user or another script as an argument #!/usr/bin/expect set FILEPATH1 $1 spawn sh "scp $FILEPATH1 $USER@$HOST:/...