Displaying 20 results from an estimated 20000 matches similar to: "Find user accounts with uid > 500"
2008 Jul 09
1
Need help with awk one-liner
This awk command pulls URLs from an apache config file, where $x is
the config filename.
awk '/:8008\/root/ {printf $3 "\t"}' $x
The URL that is output by the script looks something like this:
ajpv12://hostname.network.company.com:8008/root
Is there a way to alter the output so it only shows "hostname" by
itself? Do I need to pipe this through awk again to clean it
2008 Aug 11
4
df to get total disk usage on all filesystems?
Is there a flag for the df command to get the total disk space used on
all filesystems as one number? I have a server with a lot of mounted
shares. I'm looking for a simple way to measure rate of data growth
across all shares as one total value.
2008 Jul 30
1
machine not shutting down and connection failures in logs
Hi,
this is my first nut installation, i see lot of connection failure and when i tried
the configuration removing the power chord from the ups i expected tha machine will
power itslef down but this has not happened.
I'm using nut 2.2.2-2 from debian lenny, ups is a mustek powermust 2000 with usb cable.
All config files are root:nut and 640, i've had to add nut user to nut group
2012 Jun 28
4
Optimizing grep, sort, uniq for speed
This snippet of code pulls an array of hostnames from some log files.
It has to parse around 3GB of log files, so I'm keen on making it as
efficient as possible. Can you think of any way to optimize this to
run faster?
HOSTS=()
for host in $(grep -h -o "[-\.0-9a-z][-\.0-9a-z]*.com" ${TMPDIR}/* |
sort | uniq); do
HOSTS+=("$host")
done
2010 Mar 04
4
Permissions problem
What am I doing wrong here? I need to be able to write to /var/cvs.
This used to work before I moved these groups into an LDAP directory
instead of /etc/group:
[scarolan at watcher:/var/cvs]$ touch test.txt
touch: cannot touch `test.txt': Permission denied
[scarolan at watcher:/var/cvs]$ ls -ld
drwxrwsr-x 4 cvs cvsgrp 4096 May 18 2008 .
[scarolan at watcher:/var/cvs]$ id scarolan
2005 Jan 01
1
Advice for dealing with bad sectors on /
All,
Trying to figure out how to deal with, I assume, a dying disk that's
unfortunately on / (ext3).
Getting errors similar to:
Dec 31 20:44:30 mybox kernel: hdb: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Dec 31 20:44:30 mybox kernel: hdb: dma_intr: error=0x40 { UncorrectableError },
LBAsect=163423, high=0, low=163423, sector=163360
Dec 31 20:44:30 mybox kernel: end_request:
2009 Jun 24
4
More awk help
Hey guys,
Looking through my book and the web and I am not having any success
returning data from a search.
I need to have awk search for a string and print the first field which
is no problem but now its returning two options as the input data has
changed. The change is reliable, I only want the first field if it ends
in a regex that I have, and I only want what that regex matches to be
printed.
2014 Apr 05
1
USB 3.0 NIC / Sitecom NL-031
Hi, I have a Sitecom NL-031 USB 3.0 NIC which I'd like to use under
centos 6.5, but unfortunately I see no support. Or, I am doing something
wrong.
According to LKDDb (Linux Kernel Driver DataBase), the correct driver is
"CONFIG_USB_NET_AX8817X: ASIX AX88xxx Based USB 2.0 Ethernet Adapters"
but obviously, I've grabbed a non matching "iProduct", because mine is
2009 May 04
6
Best mobile SSH client?
I'm up for a cell phone contract renewal and am considering upgrading
my handset. I looked at some devices at my local AT&T store but
nothing really jumped out at me. I'm particularly interested in a
cell phone that has a reliable ssh client, with ssh-agent and public
key authentication abilities. Those of you who administer systems
remotely, what mobile ssh client do you recommend?
2009 Jun 03
4
Good md5sum snapshot tool?
I have a server that is undergoing some patching soon and would like
to make note of any files that have changed after the patching is
complete. Can you recommend a tool that uses md5sum snapshots to do a
quick before and after test, showing anything that's changed on a
particular file system?
2010 Mar 26
3
awk global replacement only after keyword
Trying to avoid a perl script which wouldn't be hard, but I am looking
for an awk one liner that does a replacement, but only after it sees a
key word on some line.
Anyone know of that's easy to do?
Thanks!
jlc
2009 Feb 27
4
Banging my head on wall (hosts)
Ok, so I figured I''d move this here since IRC isn''t the place for it.
Ok, so I have my 40ish servers. Of those, 36 or so of them have hosts
entries that need to look like this:
127.0.0.1 localhost
172.x.x.x dbprod1.xxx.com dbprod1
172.x.x.x mgmt01.xxx.com mgmt01 puppet certmaster
172.x.x.x mybox.xxx.com mybox
Where mybox is the name of the box.
The others have a few
2011 Mar 03
4
Gnu Screen - terminal issues
I really like gnu screen and use it everyday but there's one thing
that is a bit inconvenient, and that's the odd line wrapping and
terminal size issues that seem to pop up. The problem crops up when I
type or paste a really long command, and then go back and try to edit
it; the text starts to wrap over itself and you have no idea what you
are editing. Any fixes for this?
2009 Jul 20
3
Limit RAM used by a perl script
I have a perl script which runs from a cron job. How would you limit
the amount of RAM that this script is allowed to consume? Is there a
ulimit setting that will accomplish this? If so does ulimit have to
be run each time the script is run, or is there a way to set it
permanently?
2006 Nov 07
6
Sweex 1000VA UPS
Hi,
I'm trying to get a sweex ups working with nut on debian sarge.
This one:
http://www.sweex.com/producten.php?lang=1&%20sectie=&item=59&artikel=95
It's shipped with UPSmart and according to the compatibility list it should
work with the
genericups upstype=7 driver. But it doesn't.
I get:
mybox:/etc/nut# /etc/init.d/nut start
Starting Network UPS Tools: (upsdrvctl
2011 Apr 28
1
Samba with 389 Directory Server Auth problem
Hi Folks,
I had a crack at setting up a Samba PDC using a fresh installation of FDS
1.2.4 as the backend on one of our RHEL 5.3 servers per the Wiki
Howto:Samba but ran into a few issues.
In the section 'Populating FDS with PDC Entry', it instructs the user to run
'net getlocalsid'. This results in the following:
[root at mybox logs]# net getlocalsid
2012 May 08
4
best way to upgrade from default Python 2.4 to Python 2.6?
What is the best way to upgrade to Python 2.6 from the default Python 2.4.
I'm running CentOS 5 --> Linux mybox.domain.com 2.6.18-238.9.1.el5 #1
SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I've read these horror stories online and don't want to break yum.
2008 Jul 15
2
Help with iptables rule for blocking UDP port 53
I would like to block all DNS queries that come from one particular ip
address. I used TCPdump to verify that the queries were in fact,
coming from this IP:
[scarolan at server:~]$ sudo tcpdump -n udp port 53 and src 10.100.1.1
tcpdump: listening on eth0
11:12:17.162100 10.100.1.1.19233 > 10.100.1.61.domain: 14270+ A?
server.domain.com. (32) (DF)
Could someone help with the proper syntax
2012 Sep 20
6
accept email and make phone call?
Any ideas on how asterisk could accept an email (such as an email to SMS or "number at mybox.org" sort of thing) and make a phone
call to a specific number and make an announcement?
I imagine the first part is the big question.
joe a.
2008 Feb 28
2
smokeping on CentOS questions
I'm having some problems getting CentOS to serve up my Smokeping pages (
http://oss.oetiker.ch/smokeping/)
However, I'm having problems getting the pages to serve up correctly.
Here is a quick run down of what I've done.
(1) wget and untar to /usr/local/smokeping
(2) chown -R root:root /usr/local/smokeping
(3) modifying to the following files to reflect my environment
(not sure if