Search Results

Search: Posts Made By: pdtak
9,803
Posted By pdtak
ok thanks Y!
ok thanks Y!
9,803
Posted By pdtak
This command worked: ssh user1@${server1}...
This command worked:
ssh user1@${server1} /usr/bin/ls -l /tmp/file1 | awk 'NF>3{print $5}' > ${DATAFILE}

Thanks yinyuemi!

ps. what's the difference between
awk 'NF>0{print $5}'

and...
9,803
Posted By pdtak
Thanks for your suggestions honglus & yinyeumi,...
Thanks for your suggestions honglus & yinyeumi, but still not working... it's putting a blank line "" before the real output.
9,803
Posted By pdtak
Blank line in command output
My script ssh's to another server and gathers information then process them. The problem is that the output of a command has an unwanted "blank lines".
...
ssh user1@${server1} /usr/bin/ls -l...
16,047
Posted By pdtak
Script to calculate user's last login to check if > 90 days
I need a script to figure out if a user's last login was 90 days or older. OS=AIX 5.3, shell=Korn
Here's what I have so far:
====
#!/usr/bin/ksh
NOW=`lsuser -a time_last_login root | awk -F=...
Forum: AIX 08-18-2008
18,807
Posted By pdtak
Thanks everyone! for your input.
Thanks everyone! for your input.
Forum: AIX 08-14-2008
18,807
Posted By pdtak
Yes, I ended up making mksysb backup to tape...
Yes, I ended up making mksysb backup to tape after changing the PP size and image.data file, then restored it back from the tape.
But, my original question was: is there a way to set the PP size...
Forum: AIX 08-14-2008
18,807
Posted By pdtak
setting default PP size
Does anyone know how to set PP (Physical Partition) size on rootvg when installing AIX OS from scratch (via CD or NIM installation)?
Forum: AIX 05-28-2008
11,098
Posted By pdtak
NIM server setup on etherchannel setup environment
I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it?
I'm working on a p5-590 LPAR system, and the NIM master and clients are...
Forum: AIX 05-23-2008
18,400
Posted By pdtak
bakunin, Thanks for your input. I guess I'm...
bakunin,

Thanks for your input. I guess I'm not alone with this problem.

By the way, how did you configure Primary/backup method of etherchanneling the adapters? I am new to our environment...
Forum: AIX 05-22-2008
18,400
Posted By pdtak
Thanks for your answer Bakunin, but the problem...
Thanks for your answer Bakunin, but the problem was bigger than what you and I thought.
We have an Etherchannel setup on our P5-590's, and here's the answer from IBM support:

Unforunately,...
Forum: AIX 05-20-2008
18,400
Posted By pdtak
NIM Problems creating a mksysb_resource
Has anyone run into issues creating a mksysb_resource via NIM?
We get the following messages

0042-001 nim: processing error encountered on "master":
0042-006 m_mkbosi: (From_Master) connect A...
3,690
Posted By pdtak
awk reading 2 input files but not getting expected value
I'm reading 2 input files but not getting expected value.
I should get an alpha value on file_1_data but not getting any.

Please help.

>cat test6.sh
awk '
FILENAME==ARGV[1] {...
11,644
Posted By pdtak
Problem corrected for now.
I accidentally blew away the /.ssh dir, so I regenerated the key and it worked.
Telnet's still not working though.
Thanks.
Paul
11,644
Posted By pdtak
System is pingable
Yes, the system is pingable, I have couple of sessions still open so I can test and correct the problem, but I cannot open a new session.
11,644
Posted By pdtak
Cannot login via telnet or ssh to AIX 5.2 server
I somehow modified the system so that no one can telnet or ssh into this box as any user including root. I might have blown away important files, I don't know.
Please let me know what I have to...
70,769
Posted By pdtak
How to find sticky bit dir/files
I need to find all sticky bit dir/files on my system and clean them up if necessary.
How to I write a script to do this?
Thanks.
Forum: AIX 04-02-2008
16,474
Posted By pdtak
"password min age" setting
How do you change default setting on password expiration field?
My default setting has 15 weeks for "password min age", and I would like it to be 0 for all of my current users as well as futures...
17,154
Posted By pdtak
command completion in .sh or .ksh in AIX environment
How do you user command completion in .sh or .ksh in AIX environment?
I know you can do it by hitting <esc><esc> in bash, but how do you do it in bourne or korn shell in AIX 5.3 environment?
Thanks...
Forum: AIX 03-20-2008
4,480
Posted By pdtak
sar or glace quivalent command in AIX?
I'm new to the AIX environment, and I need to check the system state at certain interval (10 minutes) to see when it's saturated to take an appropriate actions.
Any help is appreciated.
15,951
Posted By pdtak
it worked, thanks!
tput method worked for me, thank you all for your generous input.
15,951
Posted By pdtak
"BOLD" printing a variable in PS1 command
I would like to "BOLD" print the hostname in the following statement:

export PS1=$USER"@"$(hostname -s):'$PWD>'

Is there a special character I can put before and after the variable to make it...
10,956
Posted By pdtak
Thanks Shawn!
Thanks Shawn! I'll try that.
10,956
Posted By pdtak
How to concatenate 2 files using awk?
I have to select a field ($8) from file1, then add an entry to the file2 in the correct format:

/tmp> cat file1
3001-233 Invalid admin value in /etc/security/group for "imnadm"
3001-233 ...
3,014
Posted By pdtak
grpck error on AIX 5.3
I get the following output from grpck command:

> grpck -n ALL
3001-227 User name "user1" not found in password file.
3001-233 Invalid admin value in /etc/security/group for "hypadm"
3001-238...
Showing results 1 to 25 of 37

 
All times are GMT -4. The time now is 07:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy