All Questions
28 questions
0
votes
2
answers
1k
views
Error when trying to execute command with sudo su - user -- command
I am facing a problem when trying to execute a command using another user.
If I do this
sudo su - user
direct
Works perfectly
Now if I do this
sudo su - user -c direct
I face this error
-bash: ...
1
vote
1
answer
3k
views
Command to get SHA384, 256 and SHA512 hashes in AIX servers
For AIX servers to get the MD5 and SHA1 hashes, I am able to use the command:
csum -h MD5 file1
csum -h SHA1 file1
But how to use the same command to get sha256, 384, 512 hashes ?
Or is there some ...
0
votes
1
answer
2k
views
How using sed on AIX differs from using it on linux
I know that -i option doesn't exist in sed for AIX but recently I've bumped into a different issue when trying to edit the /etc/services file in AIX.
I need to replace a line from this file so for ...
0
votes
0
answers
55
views
How to get access of all the parameters a user used to call a shell script? Or forbid the use of * as a valid parameter?
I have a shell script that will be a such of a header to be imported by others scripts
Its main goal is forbid the user of "*" and "?" as parameters.
I've already tried:
1) To get access to the ...
0
votes
0
answers
125
views
SSH Connection Radio Silence
I have been troubleshooting this issue for quite some time now and I cannot figure out the cause of this issue. We have a job running on an AIX server that uses Perl::SFTP to connect to a Linux RHEL 7 ...
1
vote
1
answer
758
views
Imfile in rsyslog running on AIX Server 7.2
AIX server's rsyslog (imfile module) is not forwarding custom application logs from a specific folder that has multiple log files generated each and every day. The log file's name pattern differs. I ...
1
vote
0
answers
230
views
imfile in rsyslog in AIX servers
AIX server's rsyslog (imfile module) is not forwarding custom application logs from a specific folder that has multiple log files generated each and every day. The log file's name pattern differs. I ...
1
vote
0
answers
108
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
1
answer
1k
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: ...
0
votes
1
answer
344
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
1
answer
71
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
1
answer
810
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 ...
2
votes
1
answer
9k
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
0
answers
590
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
...
1
vote
1
answer
3k
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 [email protected]:/root/.ssh/authorized_keys
When I execute the command and try to connect from ...
1
vote
1
answer
394
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 ...
0
votes
3
answers
2k
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
1
answer
4k
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 ...
1
vote
1
answer
2k
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 ...
0
votes
3
answers
212
views
What's the name of the file system of the operating system in UNIX\Linux?
Is that correct to assume that the operating system is ALWAYS placed in /usr in all kinds of UNIX and Linux?
I'm writing a script that has to check the free space in the operating system's file ...
0
votes
1
answer
4k
views
How do you extract a file using tar in AIX?
On a NORMAL Unix distro, tar zxvf works but seems like my machine has some super old version of tar that doesn't have the right parameters.
-bash-3.00$ tar zxvf qemu-1.7.0.tar.bz2
Usage: tar -{c|r|t|...
0
votes
3
answers
3k
views
Connect to AIX via SSH
I have to connect the AIX machine through Linux via SSH command and i m not able to figure out how to connect. Can anybody help me with the command.
Thanks,
Vivek
0
votes
1
answer
2k
views
AIX auto completion: how to show a whole file name by type in only a few letters
I used to work on Redhat Linux and really enjoy its feature that I can only type a few letters on the command line, and the rest of a file name would show up. I am running AIX 5 or 6 now, and it does ...
1
vote
3
answers
3k
views
Need to transfer files(No SCP) from Linux to IBM-AIX
I need to transfer a tar.gz file from RHEL5 to IBM AIX... The IBM AIX does not have scp and I dont think, I could install, as I am just using the system for temporary purposes. Is there an alternative ...
1
vote
1
answer
1k
views
zgrep not working on the AIX platform
zgrep does not work in AIX and gives the following error
ap61cp01> zgrep 9 ap_balance_bucket9_20120718.txt.gz
gzip: ap_balance_bucket9_20120718.txt.gz: Permission denied
Please let me know the ...
3
votes
3
answers
8k
views
Fastest way to get creation and last modification times of a lot of files
Given
a directory
a sh pattern which yields a subset of files directly in this directory (like *.log)
a sh pattern which can, given a filename,
what is the fastest way (in ksh) to obtain for each ...
0
votes
1
answer
1k
views
Where is ORACLE_HOME set in AIX?
In Linux I can set ORACLE_HOME in .cshrc. Where do I set this variable in AIX?
0
votes
1
answer
50
views
How to confirm source was correctly installed
I've installed CFEngine from source (for those of you who aren't familiar with the product, check out the wiki page) on an AIX server. I had some issues setting it up but finally got it to gmake ...