Get domain names from IP addresses of apache2 access.log
I am totally new to shell scripting. I want to see people from which domain access my website. I want to generate the domain names from IP addresses in the Apache access.log file.
There are around 54 log files. I concatenate all the files into one.
I am using Ubuntu 12.04 LTS.
So I used a script as follows in the file ips.sh -
Now I execute this command -
But this does not do anything as of now and throws an error - ips.sh - command not found. Please help.
hey what the hell happens if you make sure (as best one can) that a domain name like anything.com is not used at all, and you set up your own DNS and use that name without registering with a registrar, i know if the address is in use you will make some people very upset and give many internet users... (2 Replies)
Hi,
We're an internet company with several domain names. Our mail server was originally set up to deal with xxx@domain1.com email addresses which works fine.
The problem I have is that we're now also using a domain2.com, and sales@domain1.com isn't the same as sales@domain2.com.
I've added... (1 Reply)
Arright, here's what I'm trying to do. I want to dig up currently active IP addresses on my subnet, and my present strategy is to ping every address until I find active ones, then ping them more often to verify their status. Next, I want to find the names of the computers associated with those... (1 Reply)
Hello,
i have a file contains the information like below
/home/username/domain.com/log/access
/home/username/domain23.net/log/access
/home/reseller/username/domain.com/log/access
using a loop i can read every line of the file but i wants to extract domain name like(domain.com,... (3 Replies)
I am needing to extract and list domain names out of a very large text file. The text file contains tlds .com .net .org and others as well as third level domains e.g. host1.domain.com and the names are placed within paragraphs of text.
Domains do not have a http:// prefix so I'm thinking the... (6 Replies)
Suppose i have a txt file that is the list of the addresses,something like:
lala0045 john james
lala0234 george james
and i want to send an email to lala0045@blabla.com and lala0234@blabla.com,the same domain...what is the exact syntax i should use in my script?
there is a command... (10 Replies)
Hi Everyone,
I searched for an answer to this but couldn't find one so I'm hoping someone can lend some advice. My issue is that I have an AIX server running Sysback (for TSM backup/restore) and Sysback uses TFTP for sending the boot image to the client during a restore. A recent penetration... (2 Replies)
Hello everyone,
I have written a one liner which looks in a configuration file for remote hosts to connect to. It then resolves them by first ping, and nslookup if it fails, then places the info in the hosts file.
The whole thing works, seemingly, apart from one slight issue. I would like to... (0 Replies)
hi there,
im beginner in solaris 10.
we are using solaris 10 as our DNS server
Solaris 10 8/07 s10s_u4wos_12b SPARC
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
... (0 Replies)
Discussion started by: tappetmus
0 Replies
LEARN ABOUT CENTOS
pmdaxfs
PMDAXFS(1) General Commands Manual PMDAXFS(1)NAME
pmdaxfs - XFS filesystem performance metrics domain agent (PMDA)
SYNOPSIS
$PCP_PMDAS_DIR/xfs/pmdaxfs [-d domain] [-l logfile]
DESCRIPTION
pmdaxfs is a Performance Metrics Domain Agent (PMDA) which extracts performance metrics describing the state of the XFS filesystem from the
Linux kernel.
The xfs PMDA exports metrics that measure information about metadata buffer usage, the journal, btree operations, inode operations,
extended attributes, directories, quotas, read and write operation counts and of course throughput.
The PMDA provides a facility to reset the values of all counters to zero using pmstore(1) with the xfs.control.reset metric.
A brief description of the pmdaxfs command line options follows:
-d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should
be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts.
-l Location of the log file. By default, a log file named xfs.log is written in the current directory of pmcd(1) when pmdaxfs is
started, i.e. $PCP_LOG_DIR/pmcd. If the log file cannot be created or is not writable, output is written to the standard error
instead.
INSTALLATION
The xfs PMDA is installed and available by default on Linux. If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/xfs
# ./Remove
If you want to establish access to the names, help text and values for the XFS performance metrics once more, after removal, do the follow-
ing as root:
# cd $PCP_PMDAS_DIR/xfs
# ./Install
pmdaxfs is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMCDCONF_PATH
command line options used to launch pmdaxfs
$PCP_PMDAS_DIR/xfs/help
default help text file for the xfs metrics
$PCP_PMDAS_DIR/xfs/Install
installation script for the pmdaxfs agent
$PCP_PMDAS_DIR/xfs/Remove
undo installation script for the pmdaxfs agent
$PCP_LOG_DIR/pmcd/xfs.log
default log file for error messages and other information from pmdaxfs
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5).
SEE ALSO PCPIntro(1), pmcd(1), pmstore(1), pcp.conf(5) and pcp.env(5).
Performance Co-Pilot PCP PMDAXFS(1)