Having Trouble With Grep

Feb 6, 2007

Having some trouble using grep and hoped someone might be able to help.

Running the following command to try and scan for an IP address match across a period of time in our access_logs:

grep '04/Feb/2007:21:*:*' /var/www/vhosts/*/statistics/logs/access_log.processed | grep
'216.2*.*.*'

This is returning all kinds of IP address results such as: 58.216.50.2 Can you suggest how I can tweak the grep command to search for the right IP addresses?

I want to scan precisely for IP addresses starting 216.2*.

We've been given the following information about spam, and want to track the source of it
down:

216.2x.x.x - email spam

So any ideas how I can scan these logfiles more precisely for the IP address I need?

View 7 Replies


ADVERTISEMENT

Is Our Host Having Tech Trouble--or Money Trouble

Feb 14, 2007

if our host is experiencing technical problems, or if they're in financial collapse.
Since 5 PM Sat., many sites hosted by powerfulhosting.com of Santa Monica have gone dead, mostly on NS01.POWERFULHOSTING.COM and some on NS1.IOCUS.COM They include:

chandarawestla.com
peggypotter.com
countrysidepet.com
robertpaulgalleries.com
cameraleather.com
goeastern.com
roastyourown.com

and many more. Over the weekend, tech help claimed the problems were assocaited with an "upgrade" to a new server. As the site owners started talking to each other, and the outage grew into the work week, Powerful Hosting stopped responding to inquiries, even from longtime clients. Their phone mailboxes are full and silent.

Now, I'm not an administrator or even a very quick FTPer, but these stores have burned to the ground and there are are livelihoods on the line. Can anyone in this community find any evidence suggesting a geniune technical glitch on their servers? A couple of people in our group think maybe they can't pay a server bill, in which case we all need to bail out immediately.

View 5 Replies View Related

Grep/ionice

Oct 31, 2009

I am trying to run a script that will locate the process number and will change the iowait priority

This will display the process number :

ps -ef |grep rsync|grep -v grep | awk '{print $2}'

ionice runs like this:

ionice -c3 -p <process number>

Any way to combine these to change iowait priority of a process?

View 1 Replies View Related

Save Grep To Txt File

Jan 28, 2008

I grepped an IP address on a domain log and it showed thousands of lines. How do I save this grep result to a txt file so I can send it to someone?

View 4 Replies View Related

Hotsanic Grep Disk_io

Feb 6, 2008

I have installed HotSaNIC and I get no output when I do a
cat /proc/stat |grep disk_io

I have also tried
grep disk_io /proc/stat

and still no response, is any one able to help or suggest anything..

I am using RH E 5.1 ..

View 0 Replies View Related

Having Trouble With PHP

Feb 14, 2007

So I finally decided to upgrade apache from 1.3 to 2.2 and thought I'd upgrade php while I'm doing it. Everything isntalls ok and the php installer says it has configured apache etc but I just can't get it to parse php. It just loads a blank page!

I've tried adding handlers, types everything etc

The php 5.2.1 (latest)

View 4 Replies View Related

FTP Connection Trouble

Mar 2, 2007

I have a client trying to log in via ftp. They cannot log in and get this error.

[14:36:05] Resolving host name "www.domain.com"
[14:36:05] Connecting to "IP ex 1.1.1.1" Port: 21
[14:36:06] No connection could be made because the target machine actively refused it.
[14:36:06] Cannot login waiting to retry (30s)...
[14:36:06] Client closed the connection.

I restarted FTP and checked to see if apf was blocking them and neither worked. She is using smartftp and I also had her try filezilla and neither worked.

However I am able to log in fine from my pc using this login info.

View 1 Replies View Related

Ffmpeg Does It Worth The Trouble ?

Jul 12, 2007

I was wondering, if installing ffmpeg-php is worth the trouble for shared hosting accounts or if it is too much of a resource hog. I had a couple of requests for that but I am not used to this extension.

Thank you for giving me your feedbacks on this.

View 5 Replies View Related

Trouble Setting Up Wildcard DNS

Jun 16, 2005

I have a virtual dedicated server (Red Hat) at GoDaddy and I'm trying to set up wildcard DNS. In short, I want:

anything.mydomain.com/thepage.html

to resolve to:

mydomain.com/thepage.html

I've taken the following steps: ......

View 1 Replies View Related

Trouble Moving A Site

Oct 19, 2009

We are in the process of changing web hosting companies and I am having difficulty in moving all the directories. We are a membership based company with over 8,900 members. The original web site (called Site a) has over 26,700 individual directories along with many tutorials in video format. The entire site is approximately 80 GB in size.

When I had the second web hosting company try to move the site via tar they indicated that the tar would abort at about 4 GB every time.

Is there any other way to move this site or get a complete backup of the site. I have no problem moving the MySQL databases.

View 3 Replies View Related

Xcache Trouble On Centos 4.5

Apr 8, 2009

I managed to install xcache on my Centos 4.5 server.

Xcache is shown in my phpinfo, but I think there's problem since php -v gives me following error, I don't have a clue how to fix this. See attached images.
I tried several different configurations in xcache.ini, but all with this same result.

It seems that this error doens't occur always.

PHP Warning: Module 'XCache' already loaded in Unknown on line 0
/dev/zero: No space left on device
Failed creating file mappping
PHP Fatal error: Failed creating file mappping in Unknown on line 0
PHP Fatal error: XCache: Cannot create shm in Unknown on line 0
PHP 5.2.9 (cli) (built: Mar 10 2009 16:30:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
Segmentation fault

View 9 Replies View Related

Cirtexhost Trouble...anyone Experience This

Jun 22, 2008

my site has received surge in traffic. basically doubled everday for a week.

although this is great. it appears its seriously loading the site slow and timing out now.

what to do ? i doubt submitting ticket will help.

i guess you get what you pay for ?

i think so far, cirtexhosting is not too shabby considering its price. 14 bucks for 1TB bandwith.

View 14 Replies View Related

Webdav Trouble With IIS6

Oct 29, 2008

I am having trouble setting up webdav on IIS6. I wasted all day on this today.

So far I have set it up to work over the internet with anonymous access.

Now I want to turn on:

1) basic authentication

2) SSL

I try to turn on (1) but:

- when try to access over the internet, it prompts for my login but it doesn't accept the login and keeps reprompting me.

- when I try to access from the local server, it seems to accept the login but gives an error 'the folder you entered does not appear to be valid, please choose another'

I have created a new user who has permission to access both the directory on the server and the virtual directory in IIS. I have turned on the webdav extension. I have tried reinstalling IIS too.

View 1 Replies View Related

DNS Trouble When Trying To Set Up Addons In CPanel Account

Jan 15, 2009

I'm trying another cpanel hosting service in addition to one with which I have a main domain and a bunch of addons. I'm used to being able to create the addon accounts regardless of whether I've already changed the ns for the domains being added yet. In the new service I'm trying, I am unable to to do that, but instead get an error message which appears online in various forum posts:

Quote:

Error from park wrapper: Using nameservers with the following IPs: exampleIP 1,example IP 2 Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.

With the hosting service where I can always create the accounts any time, I use a secure login that contains my account ip: [url] I will only do secure logins, and not any unsecure http logins. The other hosting service where I am unable to create the addons does not appear to have that available for my normal account url or ip, at least it doesn't work when I've tried, but after searching I found out that you can get a secure login in another way, so I am able to securely log into my account using [url] but this is not the same as my account's IP or the normal shorter url for my regular unsecure login. I would guess that's the significant difference which allows me to create accounts any time in the first account vs. not at all in the second - that I'm using my account's normal ip for the one, but the longer-than-normal secure urls for the other (?), although I don't fully know how that would work.

There is however, one significant difference in the second account which I do not have in the first, and that is that I have SSH access in the second account. So, I am wondering if there is a simple method for using that SSH access to change a setting in my second account in such a way that I can have the same freedom to create addons there first and then attend to ns changes and so forth later when I'm ready? Especially is there a way to do this only once for the whole account, instead of having to do it for each and every addon? Thanks in advance to those who might really know the score on all this stuff and exactly what the best solution or solutions are.

View 8 Replies View Related

Name Server Errors / Trouble Fixing

Jul 12, 2007

i am tring to setup my own nameservers for the past two days but couldn't get them to work.

i hve already created the ns at godaddy.com. and created dns zone file with corress ponding ips in my vps

iam getting the following error on the dns report. can anyone help me fix them......thanks aloot

Errror 1:
FAIL: Lame nameservers
ERROR: You have one or more lame nameservers. These are nameservers that do NOT answer authoritatively for your domain. This is bad; for example, these nameservers may never get updated. The following nameservers are lame:
xxx.xxx.xxx.xxx < -- my ips
xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx

Errror 2:
FAIL : Missing nameservers 2
ERROR: One or more of the nameservers listed at the parent servers are not listed as NS records at your nameservers. The problem NS records are:
ns3.mydomain.com.
ns4.mydomain.com.
ns5.mydomain.com.
ns6.mydomain.com.

Error 3:
FAIL : Single Point of Failure

ERROR: Although you have at least 2 NS records, they both point to the same server, resulting in a single point of failure. You are required to have at least 2 nameservers per section 2.2.

Error 4:
FAIL SOA Record
No valid SOA record came back:
is not mydomain.com.

View 4 Replies View Related

Netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

Feb 1, 2007

What does this string do? I copy and paste it into my SSH Shell and i get ip addresses and numbers next to them.

Each number means one connection?

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

View 1 Replies View Related

500 Error For Compiled Lisp Program And No Trouble For The Equivalent C App

May 9, 2009

I'm trying to setup the Clozure Common Lisp implementation for CGI web programming. I've made a hello application and compiled it.

I can type ./index.cgi at the terminal and the properly formatted header and some text are displayed.

When I try to view the index page though the web browser I get an internal server error.

Quote:

Couldn't load lisp heap image from
[Sun May 10 09:31:25 2009] [error] [client 127.0.0.1] Premature end of script headers: index.cgi

I'm wondering if this is a Lisp problem or a problem with the web server/permissions.

I wrote a hello world CGI app in C and ran that through the browser without any problems.

I applied the same permissions from the C app to the Lisp app and still had the same problem.

I *think* this is a Lisp problem, but just felt that I should check with some people who are more familiar with server setups than myself.

View 1 Replies View Related

.htaccess & Java Applet Trouble Displaying Images

May 22, 2007

I have a java applet that displays (local)images. I also have anti leach code in .htaccess that is adde via cpanel:

.htaccess contents:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://owndomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://owndomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.owndomain/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.owndomain.com$
RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Symptems:
1- Java Applet loads && runs ok but doesn't display images.
2- When .htaccess file is removed, images display ok.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved