Search Results

Search: Posts Made By: Vishal_dba
10,707
Posted By Peasant
Look at this example for instance : You...
Look at this example for instance :

You connect to server A with putty from your laptop L with intention to use scp to copy a file from Server A to Server B.

When connected to Server A, you...
Forum: IP Networking 04-30-2014
4,523
Posted By neutronscott
Does this post properly answer the question? ...
Does this post properly answer the question?
How to find what process is using a port in AIX 5L and above (https://www.unix.com/302422872-post1.html)
Forum: AIX 04-12-2014
16,286
Posted By jim mcnamara
Oracle Alert logs have some information. They...
Oracle Alert logs have some information. They are sometimes (by DBA scripts) renamed during oracle instance shutdown and restart but almost always kept kept. If you want interactive oracle...
1,224
Posted By chacko193
Or you can just use sed: sed...
Or you can just use sed:

sed '/^aternqaco\./d' infile >tmpFile
1,224
Posted By Lucas_0418
When you are in the command mode. Input these ...
When you are in the command mode.
Input these
:g/^aternqaco\./d
Forum: AIX 02-05-2014
6,431
Posted By rbatte1
Have a look at filemon You can get a split...
Have a look at filemon

You can get a split down of busy logical volumes from that which might give you a better clue on narrowing it down. Something like this might help when the errors are...
Forum: AIX 02-04-2014
6,431
Posted By techy1
you can use tools like nmon, topas, vmstat or...
you can use tools like nmon, topas, vmstat or iostat.

iostat -D hdisk5 2 10

This will activity of hdisk5.
2,348
Posted By hergp
When you use ./test4.sh, then the script is...
When you use ./test4.sh, then the script is "executed" by the kernel. Now the script is just text and not a executable binary. So the kernel needs to execute an "interpreter" instead. If the file...
2,348
Posted By hergp
Do you use sh script.sh ... or just ./script.sh...
Do you use sh script.sh ... or just ./script.sh to run the script? If the first, change it to bash script.sh ...
1,491
Posted By hergp
After the while...done loop you could write ...
After the while...done loop you could write

if ping -w 2 $host >/dev/null 2>&1
then
echo Host OK
else
echo Bad Host $host
fi
and

case "$targ" in
pref|avail) echo targ OK;;
...
1,491
Posted By hergp
Use #!/bin/sh #set -x while getopts...
Use

#!/bin/sh
#set -x
while getopts ":n:t:" opt; do
case "$opt" in
n)
host=$OPTARG
;;
t)
targ=$OPTARG
;;
*)
...
2,058
Posted By RavinderSingh13
Hello, Here is the example for a function...
Hello,

Here is the example for a function which will be called by arguments.


check_file()
{
for y in $*
do
if [[ -f $y ]]
then
rm $y
fi
done
}
### calling function as follows with...
2,058
Posted By RudiC
Not knowing what shell you use, this is an...
Not knowing what shell you use, this is an excerpt from man bash:So define it like calc_pref_avail ()
{
-- code using $1 and $2 --
return inst_pref;
} and use it like calc_pref_avail ...
2,420
Posted By RavinderSingh13
Hello, We can try the following codes to...
Hello,

We can try the following codes to get the same.



echo "ST1 PREF: int1 AVAIL: int2" | sed 's/\(.*: \)\(.*\)\( AVAIL:.*\)/\2/1;1q'
int1



echo "ST2 PREF :int1 AVAIL: int2" |...
1,737
Posted By Yoda
awk -F: ' # Set colon (:) as field separator ...
awk -F: ' # Set colon (:) as field separator
# Checking if pattern: Preferred instances exists in current record
/Preferred instances/ {
# Add last...
1,737
Posted By Yoda
Pipe command output to this awk program: srvctl...
Pipe command output to this awk program:
srvctl config service -d cmdbut | awk -F: '
/Preferred instances/ {
P[$NF]
}
/Available instances/ {
...
Forum: AIX 12-04-2013
8,296
Posted By radoulov
Yes, it does. This is due to a bug on AIX....
Yes, it does.
This is due to a bug on AIX. Check the following MOS note
FAQ: OPatch/Patch Questions/Issues for Oracle Clusterware (Grid Infrastructure or CRS) and RAC Environments (Doc ID...
3,077
Posted By radoulov
Thanks! As I said, you don't need to use crsctl...
Thanks! As I said, you don't need to use crsctl ... | grep ... to get the names of the databases resources, srvctl config database is sufficient.
You could use a callout script like the one, I...
3,077
Posted By RudiC
Try grep -E "ora.*\.db$"Not sure if you really...
Try grep -E "ora.*\.db$"Not sure if you really need the -E.
3,077
Posted By CarloM
In awk, NF is the number of fields in the current...
In awk, NF is the number of fields in the current record. $(NF-1) is the last-but-one field.


Look at getopts.
Forum: AIX 11-22-2013
6,119
Posted By ibmtech
To answer it in simple way An LPAR (Logical...
To answer it in simple way

An LPAR (Logical Partition) is a virtual server.

A LUN (Logical Unit Number) is a disk (it can be carved out of many physical disks). The term is use by Storage...
Forum: AIX 11-22-2013
6,119
Posted By Scott
You'd get a shorter answer asking "what does an...
You'd get a shorter answer asking "what does an LPAR and a LUN have in common?"


You could easily answer this question by searching the internet.

http://en.wikipedia.org/wiki/LPAR...
Showing results 1 to 22 of 22

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