Search Results

Search: Posts Made By: *Jess*
12,739
Posted By *Jess*
Check tape drive status on HP-UX
Hi all,

We have an ESL tape library with legato networker software. From GUI - networker administrator, i can see that 3 of our tape drives are in service mode.

How can i view the same thing by...
22,962
Posted By *Jess*
If else - grep a string in a file
Hi all,

I would want to recieve notification only if there are sessions block in our databases.

This is my script, but it's not working. No matter what is the contents in the $OUTFILE, I get...
5,664
Posted By *Jess*
Thanks a lot, i actually did try similiar 1...not...
Thanks a lot, i actually did try similiar 1...not working as well..

Attach is our tester output. We are only interested in Report for Site 0 & Report for Site 1 which is highlighted in red. We...
5,664
Posted By *Jess*
grep & awk
Hi all,

I'm figuring on how to grep only specific data I want below:

Bin Total %
----- ------- -----
1 15 42.9

Bin ...
164,723
Posted By *Jess*
gzip to another location
Hi all,

I have a file which is 180GB, we would want to use gzip to compress. However this particular location do not have enough space for gzip to perform.

How can we gzip this file into a...
5,756
Posted By *Jess*
rcp and ftp hangs
Hi there,

We I attempt to rcp/ftp data from server A to server B. It copies until halfway and throw out the error:

rcp: connection lost

ftp netin: Connection reset by peer
421 Service not...
5,858
Posted By *Jess*
Script is not working when put in crontab
Hi there, this is part of my script:

/usr/bin/cd /u01/oradata
/usr/bin/cp `/bin/ls -1 . |grep -v "^DIMStemp01.dbf$" | grep -v "^DIMSts01.dbf$"|grep -v "^DIMStects01.dbf$"` /backup

It's...
15,424
Posted By *Jess*
Thanks. But using prstat/top could not saparate...
Thanks. But using prstat/top could not saparate out the network utilization for each NIC.
15,424
Posted By *Jess*
Server NIC/network utilization
Hi, as topic. We have 2 NIC in the server. How can I check the utilization/network load for each individual NIC?

using netstat seems not showing any percentage.

Is there any command which is...
5,371
Posted By *Jess*
Put the below in a script: /usr/bin/cd...
Put the below in a script:
/usr/bin/cd /u01/oradata
/usr/bin/cp `/bin/ls -1 /u01/oradata |grep -v "^DIMStemp01.dbf$" | grep -v "^DIM
Sts01.dbf$"` /backup > /tmp/list.out

Still having the below...
14,363
Posted By *Jess*
To find files with specific dates and cp another folder.
Hi all,

We have an existing script:
find /u03/oraprod/perpcomn/admin/out -type f -ctime +7 \
-exec cp {} "/u08/oraprod/backup/cout" \;

Which is to find all files more than 7 days and copy to...
5,371
Posted By *Jess*
Thanks! Got it!:)
Thanks! Got it!:)
5,371
Posted By *Jess*
Yes, a manual cp is working find. To include...
Yes, a manual cp is working find.

To include the path where to copy, can I modify like:

/usr/bin/cp /u01/oradata `/bin/ls -1 . |grep -v "^DIMStemp01.dbf$" | grep -v "^DIMSts01.dbf$"` /backup
...
5,371
Posted By *Jess*
cp: cannot access
Hi there,

I have this statement:
/usr/bin/cp `/bin/ls -1 /u01/oradata |grep -v "^DIMStemp01.dbf$" | grep -v "^DIMSts01.dbf$"` /backup

However it fails with:
cp: cannot access DIMSaccts01.dbf...
10,943
Posted By *Jess*
Thanks. For the output: bash-3.00$ ps -eo...
Thanks.

For the output:
bash-3.00$ ps -eo 'pid,args'|awk '/CSORDB1T/&&/LOCAL=NO/{print}'
22322 oracleCSORDB1T (LOCAL=NO)
19855 oracleCSORDB1T (LOCAL=NO)
8839 oracleCSORDB1T (LOCAL=NO)
8066...
10,943
Posted By *Jess*
Thanks for the reply. Both of them did not...
Thanks for the reply.

Both of them did not work for me.

I would wan to have the below:
bash-3.00$ ps -ef |grep CSORDB1T |grep LOCAL=NO
oracle 22322 1 0 14:51:21 ? 0:39...
10,943
Posted By *Jess*
How to grep more than 2 fields?
Hi all,

Currently I have this:
ps -eo pid,comm| grep CSORDB1T

But I need to grep LOCAL=NO as well:
ps -eo pid,comm| grep CSORDB1T |grep LOCAL=NO >pdwh_pid

However, there's no output. Plz...
40,581
Posted By *Jess*
Thanks for the explanation. Really appreciate...
Thanks for the explanation. Really appreciate it~;)
40,581
Posted By *Jess*
Thanks for the reply. There's an error when:...
Thanks for the reply.

There's an error when:
cp !(foo|bar) /my/destination/dir
root@rskcs3 # cp !(abc.txt|bcd.txt) /tmp/test1
syntax error: `(' unexpected

I'm using ksh, seems like not...
40,581
Posted By *Jess*
To copy everything except 2 files
Hi all,

I would want to copy everything in a particular directory. However would want to exclude 2 files:
DIMStemp01.dbf
DIMSts01.dbf

I tried to:
(1) ls files except these 2 files into...
5,480
Posted By *Jess*
Still trying out....
Still trying out....
5,480
Posted By *Jess*
Thanks! Got it... If i would want to cp...
Thanks! Got it...

If i would want to cp everything except these 2 files...izzit also using the same code?
5,480
Posted By *Jess*
To copy everything except two files
Hi all,

I would want to copy everything in a particular directory. However would want to exclude 2 files:
DIMStemp01.dbf
DIMSts01.dbf

Don't really know how to do so, any suggestions?
...
11,406
Posted By *Jess*
To spool output from a database query
Hi all,

I would want to spool file for a database query, however by using crontab, the file is not spooled. Below shows my script:

ORACLE_HOME="/u01/oraprod/perpdb/10.1.0/db_1"...
Forum: IP Networking 01-10-2008
6,539
Posted By *Jess*
Thanks for a reply! I just found out the...
Thanks for a reply!

I just found out the reason y we are able to ping the private network from our local workstation.

I did a tracert on the command prompt:

[ISS] C:\>tracert 192.168.2.1
...
Showing results 1 to 25 of 54

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