Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: victorcheung
Forum: AIX 08-15-2011
1,783
Posted By victorcheung
AIX resources consumption group by process pattern
Hi,

I have AIX processes something as below, how to know the resources consumption group by process pattern "price" and "devdb"?

eg:
CPU RAM WIO
price 20% 250M ...
Forum: AIX 11-30-2010
14,978
Posted By victorcheung
can not mount from aix client to linux nfs server
Hi,

I am trying to mount a nfs folder from AIX client to Linux NFS Server, but I got the following error:

# mount 128.127.11.121:/aix /to_be_del
mount: 1831-010 server 128.127.11.121 not...
2,096
Posted By victorcheung
How to retrieve digital string using sed or awk
Hi,

I have filename in the following format:

YUENLONG_20070818.DMP
HK_20070818_V0.DMP
WANCHAI_20070820.DMP
KWUNTONG_20070820_V0.DMP

How to retrieve only the digital part with sed or awk...
1,896
Posted By victorcheung
use internal function with find command
Hi,

I need to use a function in the find command to do some process on the file. I'm trying:

funcname(){ ... }
...
find ./ -name "*" -exec funcname {} \;


But somehow this is not working....
Forum: AIX 04-19-2010
15,151
Posted By victorcheung
Paging space
Hi,

I have paging size 2048M showed from topas and 10240M showed from "lsps -a", can anyone tell what is the difference? and how to change the PAGING SIZE (showed in topas) to 8192M?

Can you...
4,150
Posted By victorcheung
Hi, Thank you all very much. It works! ...
Hi,

Thank you all very much. It works!

Victor
4,150
Posted By victorcheung
cygwin shell script error
Hi,

I have a cywin test script as below but errors,


#!/usr/bin/bash
while [ 1 != 0 ]
do
echo "123"
echo "456"
done

sh-3.2$ ./test.sh
./test.sh: line 7: syntax error:...
2,105
Posted By victorcheung
Hi, Thank you all, it works! Victor
Hi,

Thank you all, it works!


Victor
2,105
Posted By victorcheung
Hi, Thanks a lot... Can I have a...
Hi,

Thanks a lot...

Can I have a further question, how to do that if the content looks like:

:
:
<span class="ColorRed"><img src="https://www.unix.com/../common/images/arrow_red_L.gif"...
2,105
Posted By victorcheung
how to retrieve the word between 2 specific words with shell script
Hi,

I have a file content like:

:
:
<span class="ColorRed"> 1.23</span><br>
:
:

the value 1.23 will be changed from time to time, and I want to use a shell script command, e.g grep or...
Forum: AIX 10-21-2009
1,783
Posted By victorcheung
How to know the total resources consumpted by a user
Hi,

In AIX, how to know the total resources(cpu, memory) consumpted by each user? any command can do that?

Thanks!
Victor
Forum: AIX 04-22-2009
7,254
Posted By victorcheung
How to send alert by email whenever failed login
Hi,

I want to write a script to send alert by email whenever any failed login to the AIX. Can anyone tell how to do that?

Thanks!
Victor
1,476
Posted By victorcheung
Help on substring of file list
Hi,

I have a folder list as below, I want to write a script to return a list like:
CASTLE_BU_20080801
CAUSEWAY_BU_20080801
HUNGHOM_BU_20080801
:
:

Can anyone help?

Thanks!
Victor...
Forum: AIX 12-05-2008
3,989
Posted By victorcheung
Hi, The error message is "Password...
Hi,

The error message is "Password authentication failed. Please verify that the username and password are correct", but I am sure the password is correct, and I can switch to this user in bash...
Forum: AIX 12-05-2008
3,989
Posted By victorcheung
cannot connect with ssh
Hi,

I have created a new user as below:

useradd -g staff -s /usr/bin/ksh test2
passwd test2
<type in new password>
<type in new password>

and I could not login via ssh with this username...
Forum: AIX 11-27-2008
7,506
Posted By victorcheung
Hi Zaxxon, You are correct, we are rootvg...
Hi Zaxxon,

You are correct, we are rootvg mirrored .

Thanks!
Victor
Forum: AIX 11-26-2008
7,506
Posted By victorcheung
used PPs not match the total disk space showed by df
Hi,

I see from lsvg the total used PPs is 1050 (67200 megabytes), but when I check the disk space with df command I can only see 31G total space, can somebody tell how this come?

Thanks!...
Forum: AIX 11-07-2008
1,862
Posted By victorcheung
Thanks!!
Thanks!!
Forum: AIX 11-07-2008
1,862
Posted By victorcheung
system usage list
Hi,

I would like to produce a list of system usage for each process, if I use 'ps v' it can only show one process a time,
i.e.
ps v 20876
PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ ...
Forum: AIX 07-28-2008
8,946
Posted By victorcheung
how to use tar to retrieve all tape content
Hi,

I use tar to backup the following programs:
tar -cvf /dev/rmt0.1 u04/devdb/log/arch
tar -cvf /dev/rmt0.1 u01/app/oracle/product/10.2.0.2/dbs
tar -cvf /dev/rmt0...
Forum: AIX 07-21-2008
2,943
Posted By victorcheung
How long does AIX resync the time with another server
Hi,

I have NTP configured:
vi /etc/ntp.conf
broadcastclient
server 128.127.1.3
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace

# xntpdc
xntpdc> sysinfo
system peer: ...
Forum: AIX 07-11-2008
13,374
Posted By victorcheung
Hi, I have got the following error when...
Hi,

I have got the following error when trying to list the content:

# tctl -f /dev/rmt0.1 fsf 3
# restore -tvqf /dev/rmt0
restore: 0511-123 The volume on /dev/rmt0 is not in backup format....
Forum: AIX 07-10-2008
13,374
Posted By victorcheung
How to list files in AIX 3.2 mksysb backup tape
Hi,

Can anyone tell how to list files in a AIX 3.2 mksysb backup tape.


Thanks!
Victor Cheung
Forum: AIX 07-03-2008
57,124
Posted By victorcheung
I have found it from this forums: ...
I have found it from this forums:
YESTERDAY=`TZ=aaa24 date +%Y%m%d`

Thanks!
Forum: AIX 07-03-2008
57,124
Posted By victorcheung
How to get the date yesterday in AIX sh
Hi,

In AIX sh, how to return the date of yesterday in format of %Y%m%d, YYYYMMDD.

i.e. if today is 20080704, I want it return 20080703.

Can anyone help?

Thanks!
Victor Cheung
Showing results 1 to 25 of 42

 

Featured Tech Videos

All times are GMT -4. The time now is 05:45 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy