Hi,
Please suggest how to write a shell script which delets all the lines containing the word unix in the files supplied as argument in the shell. (4 Replies)
Let's say we have a file containing:
alllllsadfsdasdf
qwdDDDaassss
ccxxcxc#2222
dssSSSSddDDDD
D1Sqn2NYOHgTI
Hello
Alex
ssS@3
Ok, and let's say we want to delete all words from D1Sqn2NYOHgTI and back, this means
to delete the words (and the lines of them) :
alllllsadfsdasdf... (2 Replies)
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
i have a script that scans a log file every 10 minutes. this script remembers the last line of the log and then uses it to continue monitoring the log when it runs again 10 minutes later.
the script searches the log for a string called MaxClients.
now, how can i make it so that when the... (7 Replies)
Hi friends,
I have one XML file having below structure :-
INput XML file :-
<?xml version="1.0" encoding="UTF-8"?>
<START>
<A=value1>
<attr name1="a1">
</A>
<B=value2>
<attr name2="b1">
<attr name3="c1">
</B>
</START>
output xml file should be
=== (3 Replies)
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
I have a big file having 100 K lines.
I have to read each line and see at 356 character position whethere there is a word "W" in it. If it is their then don't delete the line otherwise delete it.
There are two lines as one Header and one trailer which should remain same.
Can somebody... (5 Replies)
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Hi
I need to find files in a specified folder where are two specified lines of text and delate that lines. It looks like this"
35. ?>NL
36. <iframe>.......</iframe>NLThe problem is that "?>" is in the other lines and id should not be removed if the next line is not like "<iframe>....."
So... (4 Replies)
Discussion started by: androwida
4 Replies
LEARN ABOUT CENTOS
pmdavmware
PMDAVMWARE(1) Performance Co-Pilot PMDAVMWARE(1)NAME
pmdavmware - VMware performance metrics domain agent (PMDA)
DESCRIPTION
pmdavmware is a Performance Metrics Domain Agent (PMDA) which exports metric values from a (possibly remote) VMware virtualisation host.
This implementation uses the VMare Perl API (refer to the online docs at http://www.vmware.com/support/developer/viperltoolkit). VIPerl is
a prerequisite for this PMDA, it needs to be installed and configured before attempting to use this agent. It is highly recommended that
you test your VIPerl installation using the demo programs that are shipped with VIPerl, before attempting to use this PMDA.
INSTALLATION
In order to access performance data using the VIPerl API, it is necessary to be able to login to the metrics source. Hence, a valid VMware
server name, user name and pass word are needed by the PMDA. These can be passed in on the command line (via the pmcd.conf file) or via a
vmware.conf file in the PMDA directory.
# cd $PCP_PMDAS_DIR/vmware
# [ edit vmware.conf ]
This file should contain three lines, such as:
$server = 'vm.server.net';
$username = 'XXXX';
$password = 'YYYY';
Once this is setup, you can access the names and values for the vmware performance metrics by doing the following as root:
# cd $PCP_PMDAS_DIR/vmware
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/vmware
# ./Remove
pmdavmware 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_PMDAS_DIR/vmware/vmware.conf
configuration file for the pmdavmware agent
$PCP_PMDAS_DIR/vmware/Install
installation script for the pmdavmware agent
$PCP_PMDAS_DIR/vmware/Remove
undo installation script for the pmdavmware agent
$PCP_LOG_DIR/pmcd/vmware.log
default log file for error messages from pmdavmware
SEE ALSO pmcd(1).
3.8.10 Performance Co-Pilot PMDAVMWARE(1)