This command gives me something like below.
What I want is two things:
1) if description= and instances=0, then skip them as to they are not needed.
so, only these will be skipped:
2) if description=xxxx and instances=x, then I want them to be displayed as
so that the repetitive words, description= and instances=, are removed and put the numeric in [ ], and display on one line.
Please advise.
Last edited by Scott; 12-23-2010 at 06:47 AM..
Reason: Please use code tags for terminal output and files also.
Hello,
I cannot figure this one out. I would like to do the following. I have a line that has 7 words. It is possible that the line can have 20 words too. I always want to show the 9th word and beyond. The 9th word will always change so I do not have something to search for, so I think... (1 Reply)
HI,
HP-UX B.11.00 A 9000/785 (ta)
I am trying to export a display using Xming & and Telnet (not SSH) but when I try..
$ DISPLAY=192.168.1.75:0.0
$ export DISPLAY
$ xclock
and get..
Xlib: connection to "192.168.1.75:0.0" refused by server
Xlib: No protocol specified
Error:... (4 Replies)
Hi. Is there a way in awk to show all lines between a line number and the next line containing a particular regex? We can do these, of course:
awk '/regex1/,/regex2/' filename
awk 'FNR > X && FNR < Y' filename
But can they be combined? Thanks. (3 Replies)
Hello people!
I would like to create one script following this stage
I have one directory with 100 files
File001
File002
...
File100
(This is the format of content of the 100 files)
2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0
then I have one... (0 Replies)
Please can you let me know how to print all the matching lines from a file in one single line using awk. Thanks
I have the following data in the input file
data1
voice2
voice1
speech1
data2
data3
...
...
voice4
speech2
data4
and the output should be as follows
data1 data2... (4 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
How do I display the filename that has been awk to each of the line in Unix, i need to so far I have tried {print FILENAME;nextfile} but to no avail.
`awk -F, '/1.2 Install TCP Wrappers/ {P=0} /1.1 Apply latest OS patches/ {P=1} P' solarisappsummary.txt solarisdbsummary.txt`
For... (6 Replies)
Discussion started by: alvinoo
6 Replies
LEARN ABOUT CENTOS
cmciclientft.enuminstances
3(2005-06-09) 3(2005-06-09)
NAME
CMCIClientFT.enumInstances() - Enumerate instances of a class
SYNOPSIS
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.enumInstances(CMCIClient*cl,
CMPIObjectPath*op,
CMPIFlagsflags,
char**properties,
CMPIStatus*rc);
DESCRIPTION
Enumerate Instances of the class (and subclasses) defined by op. The instance structure and inheritance scope can be controled using the
flags argument.
Arguments are the client object pointer cl, an ObjectPath object pointer op with the reference that contains namespace and classname compo-
nents, flags that affect the content of the returned class instance structures, a properties array, and rc which returns the operation sta-
tus (suppressed when NULL).
The flags argument is a bit mask that can contains the following flags - CMPI_FLAG_LocalOnly, CMPI_FLAG_DeepInheritance, CMPI_FLAG_Include-
Qualifiers and CMPI_FLAG_IncludeClassOrigin.
RETURN VALUE
When successful the CMCIClientFT.enumInstances() function returns a pointer to a CMPIEnumeration object that contains the class instances
found for the class and sets a successful operation status code in rc. When unsuccessful it returns a NULL pointer and sets the operation
status error code and corresponding error string in rc.
ERRORS EXAMPLES
CMCIClient *cc;
CMPIObjectPath * objectpath;
CMPIInstance * instance;
CMPIEnumeration * enumeration;
CMPIStatus status;
/* Setup a conncetion to the CIMOM */
cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
objectpath = newCMPIObjectPath("root/cimv2", NULL, NULL);
enumeration = cc->ft->enumInstances(cc, objectpath, 0, NULL, &status);
if (!status.rc) { fprintf(stderr, "operation error code %d description %s0, status.rc, status.msg->hdl);
abort();
}
CONFORMING TO SEE ALSO
Common Manageability Programming Interface (CMPI) - OpenGroup,
CMCIClient(3), CMPIEnumeration(3), CMPIObjectPath(3), CMPIFlags(3), CMPIStatus(3)SFCBroker Client Library sfcc 3(2005-06-09)