RE: Pegasus Logs In Linux

"Sampige, Sahana Prabhakar \(R&D Bangalore\)" <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <3051CFF4B0ABBF418CBA816A2BF3F2033608C3485D@GVW1105EXC.americas.hpqcorp.net>
Hi Manjunath,
You can turn on tracing in the cimserver as below :

#cimserver traceLevel=4 traceComponents=All <== This is the highest tracelevel and will generate detailed trace output. You could chose to use a lower trace level as well. This will place all logs in the cimserver's and provider's trace files ( cimconfig -g traceFilePath). This should easily point you to the location of the failure. If there is some issue within your provider you would have to add some tracing logic in your provider. This log will only indicate the request which resulted in the failure.

If you have built the cimserver with debug enabled, then you can debug the core generated by the cimprovagt process using gdb.

Printf's & cout's are visible only when cimserver is started with option -X ( cimserver -X). This will only print printf's from the cimserver's process. The prints in your provider are not associated to any terminal, hence will not be printed.

Rgds,
Sahana


From: Manjunath Marlabeeti [mailto:[email protected]]
Sent: Thursday, February 10, 2011 2:38 PM
To: [email protected]
Subject: Pegasus Logs In Linux

Hi,

I have compiled Pegasus 2.10.0 (with OpenSSL) on Fedora-14 x64 bit Linux OS.
I have written a simple provider, registered with cimserver ,compiled successfully.
When I call the provider it is throwing the error.

cimcli CIMException:  Cmd= ei Object= C_Test Code= 1
CIM_ERR_FAILED: Lost connection with cimprovagt " C_TestProviderModule".

I read in the web above error occurs when the provider is crashing.

I did not find Log folder in compiled Pegasus for debug.
I tried to debug with printf statements but these are not printing at cimserver terminal (like in windows).

Please can any suggest me where the Pegasus logs will get created and where the printf debugging prints.

Thanks,
Manjunath M
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.