Search Results

Search: Posts Made By: GKnight
Forum: Linux 07-29-2012
3,314
Posted By GKnight
Forgot to mention, this is RHEL 5.5 (64-bit)....
Forgot to mention, this is RHEL 5.5 (64-bit). 24GB of physical memory.

Yes I agree the server was extremely slow because of constant swapping which I figured by 0 free swap space.

To be honest...
Forum: Linux 07-29-2012
3,314
Posted By GKnight
out of memory?
I had a situation where the server was basically unresponsive and apparently it was out of memory. I ran top and free commands and got the following outputs. I figured it was out of memory because...
Forum: Red Hat 10-03-2009
7,300
Posted By GKnight
changing ethernet NIC names?
I have an RHEL 5 server with 2 Broadcom on-board NICs and 2 quad-port Intel NICs. After I installed the OS, the Intel NICs became eth0-7, and the onboards are eth8 and eth9. I really need the onboard...
5,486
Posted By GKnight
trying to make sense of rsync output...
I'm running the following rsync command to sync a directory between the 2 servers:

rsync -az --delete --stats /some_dir/ server_name:/some_dir

I'm getting the following output:

Number of...
8,061
Posted By GKnight
This one works quite well, thanks! I think I...
This one works quite well, thanks! I think I understand what this regular expression does, the first is a bit too advanced for me ;)
8,061
Posted By GKnight
This isn't working, I'm just getting the file...
This isn't working, I'm just getting the file content.

I'm guessing I just need a regular expression to cut out the leading spaces. I came up with this monstrosity, there's gotta be a better way...
8,061
Posted By GKnight
"cut" problem with leading spaces
I'm trying to use the cut command on the following output to remove the first 2 columns (this is output of "find -ls", if anyone wondering, which for some bizarre reason inserts leading spaces on...
8,608
Posted By GKnight
Thanks for the suggestions! I think I finally...
Thanks for the suggestions! I think I finally figured out how the character position filed works.

I'm a bit confused though. I should be starting sorting at position 14 - right?

this works:
...
8,608
Posted By GKnight
Sorry for the confusion, what I'm trying to do is...
Sorry for the confusion, what I'm trying to do is to sort the second column disregarding the "IBMULT3580-TD" string. I was hoping sort would just sort it numerically by last 3 digits. I guess it...
8,608
Posted By GKnight
no go, "sort -n +1 -3" produces the same result...
no go, "sort -n +1 -3" produces the same result at "sort -nk 2", i.e.

0 IBMULT3580-TD13
10 IBMULT3580-TD115
11 IBMULT3580-TD111
12 IBMULT3580-TD116
13 IBMULT3580-TD12
14...
8,608
Posted By GKnight
sorting ASCII string containing numbers
I have the following output where I need to sort the second column numerically (starting with IBMULT3580-TD10 and ending in IBMULT3580-TD123)

Drv DriveName
0 IBMULT3580-TD13
1...
7,500
Posted By GKnight
I don't know what dev option means, either, but...
I don't know what dev option means, either, but in general, if you want to read up on Veritas File System (which is what you have), go here: Storage Foundation and High Availability 4.1...
16,386
Posted By GKnight
I have an even more interesting case of ls...
I have an even more interesting case of ls disagreeing with du:

[server1-/var/crash]# ls -lh 10.1.1.100-2009-01-05-14:01
total 1018M
-rw------- 1 netdump netdump 332K Jan 5 14:56 log...
44,655
Posted By GKnight
Thanks! eval definitely helped, this works: ...
Thanks! eval definitely helped, this works:

eval ssh $HOST \"vfiler run $VFILER "$COMMAND"\"

@ bakunin

I tried escaping backslashes inside double quotes as you suggested - still no go....
44,655
Posted By GKnight
escaping double-quotes inside the script?
I'm having a strange problem with escaping double-quotes. I have a script that looks like this:

#!/bin/bash

[snip]

for HOST in `cat $INFILE | grep -v ^#`
do

for VFILER in...
17,290
Posted By GKnight
wow - this works very nicely! I would have never...
wow - this works very nicely! I would have never thought of counting the fields. Thanks so much for your help! :b:
17,290
Posted By GKnight
Thanks... I was originally using "find" and when...
Thanks... I was originally using "find" and when I realized it wasn't doing me any good I switched to "ls". I forgot I can just use a wild card ;)

The grep situation is a bit tricky. I'm really...
17,290
Posted By GKnight
Thanks, this works! Gives me a bit too much info...
Thanks, this works! Gives me a bit too much info though (I only really want to see parent directories, not subdirectories):

:/]# du -kx / |sort -nr|head -10
5312843 /
4527973 /usr
1951796...
17,290
Posted By GKnight
finding largest directories in a filesystem
I'm trying to come up with a way of finding largest directories in a filesystem (let's say filesystems is running ot of space and I need to find what is consuming all the space). If a directory is a...
24,852
Posted By GKnight
Thanks again for the help, it works fine now that...
Thanks again for the help, it works fine now that I quote the variable inside the script :)
24,852
Posted By GKnight
That was it, this was the source of the problem!...
That was it, this was the source of the problem! Thanks for pointing it out! :b:
24,852
Posted By GKnight
Nope, still doesn't work... I tried that one as...
Nope, still doesn't work... I tried that one as well. It doesn't expand the file list anymore, but then I have the backslash as part of my variable (see below for an example).

I'm not sure it's...
24,852
Posted By GKnight
No go... already tried that. * is still expanded...
No go... already tried that. * is still expanded into the list of files in current directory. Backslash doesn't work, either.
24,852
Posted By GKnight
passing asterisk to a script as variable
I'm writing a script that will ssh to a number of hosts and run commands. I'm a bit stumped at the moment as some of the commands that I need to run contain wildcards (i.e. *), and so far I have not...
Forum: Solaris 05-08-2007
9,601
Posted By GKnight
Solaris 10 - init stops working
I have a really strange issue on Solaris 10 running on v490. I'm running Oracle 10g on the box. Everything runs fine and all of a sudden I get a call from a DBA. I check and none of the Oracle...
Showing results 1 to 25 of 34

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