looking to replace parameters within a string with an external answer - with multiple replacements within a string %% will be used to wrap the objects to be replaced
i.e. hello %%title%% %%user%% from %%address%% you last %%action%% on %%object%%
the params will be used to make calls to a... (1 Reply)
Hello All,
I have come across a small problem. It would be great if any of you could help me in resolving the issue.
one file named dummy.txt will be ftped to Unix machine twice daily. If i receive it second time in a day i need to do some processing with the file.
How to find the... (2 Replies)
I have a unix shell script (ex.sh) written.
How to find out how many users (incl. myself) have run this .sh ?
I can insert code snipet at top of script if need be.
- Ravi (2 Replies)
I am new to Shell scripting and below is my requirement.
I need to search some specific word e.g. "exception" or "transaction" from log file.
We have multiple env e.g. Level1 , Level2 etc and each env have Multiple boxes e.g. For Level 1 env we have "test11.test.com" , "test12.test.com".
Each... (1 Reply)
how to store the count of queries in variables inside a filein shell script
my output :
filename
-------
variable1=result from 1st query
variable2=result from 2nd query
.
.
.
. (3 Replies)
I have file listed in my directory in following format
-rwxrwxr-x+ 1 test test 4.9M Oct 3 16:06 test20141002150108.txt
-rwxrwxr-x+ 1 test test 4.9M Oct 4 16:06 test20141003150108.txt
-rwxrwxr-x+ 1 test test 4.9M Oct 5 16:06 test20141005150108.txt
-rwxrwxr-x+ 1 test ... (2 Replies)
Viewers Please help me to get out of the below issue.. Thanks in advance
Required shell script for Monitoring status of the objects and it should update the child objects status as well.
Requirements:-
1. We are working on IIB (IBM Integration Bus v10) and trying to implement the broker ('... (0 Replies)
I want to count the number of lines, I need this result be a number, and sum the last numeric column, I had done to make this one at time, but I need to make this for a crontab, so, it has to be an script, here is my lines:
It counts the number of lines:
egrep -i String file_name_201611* |... (5 Replies)
Hi All ,
I have multiple pipe delimited csv files are present in a directory.I need to find out distinct count on a column on those files and need the total distinct
count on all files.
We can't merge all the files here as file size are huge in millions.I have tried in below way for each... (9 Replies)
Discussion started by: STCET22
9 Replies
LEARN ABOUT CENTOS
pmdainstance
PMDAINSTANCE(3) Library Functions Manual PMDAINSTANCE(3)NAME
pmdaInstance - return instance descriptions for a PMDA
C SYNOPSIS
#include <pcp/pmapi.h>
#include <pcp/impl.h>
#include <pcp/pmda.h>
int pmdaInstance(pmInDom indom, int inst, char *name, __pmInResult **result, pmdaExt *pmda);
cc ... -lpcp_pmda -lpcp
DESCRIPTION
pmdaInstance uses the standard PMDA(3) data structures to return information concerning the instance domain indom.
The result structure is constructed by pmdaInstance and will contain one or more instance names and/or identifiers as specified by the inst
and name arguments.
If inst has the value PM_IN_NULL and name is a null string, result will contain all the instances names and identifiers in the instance do-
main.
If inst is PM_IN_NULL but name is the name of an instance in the instance domain indom, then result will contain the instance identifier
for instance name. Note that if name contains no spaces, partial matching up to the first space in the instance name is performed, i.e.
``1'' will match instance name ``1 minute''. If name contains an embedded space, then no partial matching is performed and name should
match one of the instance names exactly.
If name is a null string but inst is an instance identifier in the instance domain indom, then result will contain the name for instance
inst. The result structure is allocated with malloc(3) and should be released by the caller with free(3).
DIAGNOSTICS
If any errors occur during the execution of pmdaInstance, the result structure is deallocated. If the instance domain indom is not sup-
ported by the PMDA, pmdaInstance will return PM_ERR_INDOM.
If the inst or name does not correspond to any instances in the indom domain, pmdaInstance will return PM_ERR_INST.
CAVEAT
The PMDA must be using PMDA_INTERFACE_2 or later, as specified in the call to pmdaDSO(3) or pmdaDaemon(3).
Because of optional partial matching up to the first space in the instance name, the PMDA developer should ensure that if instance names
are allowed to have spaces, the names are unique up to the first space.
SEE ALSO malloc(3), PMAPI(3), PMDA(3) and pmGetInDom(3).
Performance Co-Pilot PCP PMDAINSTANCE(3)