AIX Data Collection fails with error "Cannot access the CuDv object class"

book

Article ID: 158992

calendar_today

Updated On:

Products

Control Compliance Suite Unix

Issue/Introduction

 Data Collection fails with error 0514-518 Cannot access the CuDv object class in the device

 BvCUCommandWrapper.cpp|  267|Trace: - Entering function -- ExecuteCommand

 12C0064|2013/11/15|10:18:24|     BvCUCommandWrapper.cpp|  269|Information: - ExecuteCommand : CommandPath= : _>#SuDo#<_ lsattr -E -l  sys0 </dev/null 
 12C0064|2013/11/15|10:18:24|    LocalShellConnector.cpp|  258|Information: - Command Error:  lsattr: 0514-518 Cannot access the CuDv object class in the device
configuration database.
 12C0064|2013/11/15|10:18:24|     BvCUCommandWrapper.cpp|  273|Trace: - Exiting function -- ExecuteCommand
 12C0064|2013/11/15|10:18:24|  BvCUPartialLineReader.cpp|   75|Error: - Command: Code = 255, _>#SuDo#<_ lsattr -E -l  sys0 </dev/null 
 12C0064|2013/11/15|10:18:24|  BvCUPartialLineReader.cpp|  334|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|  BvCUPartialLineReader.cpp|  287|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|BvCUAIXKernelParameters.cpp|   81|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|BvCUAIXKernelParameters.cpp|   69|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|BvCUKernelParameterHelper.c|  203|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|BvCUKernelParameterHelper.c|  164|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|BvCUKernelParametersDataSou|  179|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|         BvCUDataSource.cpp|  246|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|         BvCUDataSource.cpp|  255|Perf. Timing: - Time taken by BvCUDataSource::Execute for Datasource 'KERNELPARAMETERS' for Machine: '10.10.10.01': Number of Calls: 1, Total time spent in MilliSecs: 530, Time spent in last call in MilliSecs: 530
 12C0064|2013/11/15|10:18:24|           BVUnixCommon.cpp|  455|Information: - <message level="1" target="10.60.12.58"><desc><![CDATA[Error executing datasource handler for Agent based target Command 'lsattr -E -l  sys0 @lt/dev/null ' failed with error: lsattr: 0514-518 Cannot access the CuDv object class in the device
configuration database.]]></desc><asset type="UNIX.KERNELPARAMETERS"><HOSTMACHINE><![CDATA[10.10.10.01]]></HOSTMACHINE><IPAddress><![CDATA[10.10.10.02]]></IPAddress></asset></message>
 12C0064|2013/11/15|10:18:24|BvCUUNIXAgentbasedLDCConnec|  208|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|BvCUUNIXAgentbasedLDCConnec|  216|Perf. Timing: - Time taken by BvCUUNIXAgentbasedLDCConnector::Execute to execute query.: Number of Calls: 1, Total time spent in MilliSecs: 620, Time spent in last call in MilliSecs: 620
 12C0064|2013/11/15|10:18:24|BvCUUNIXAgentbasedLDCConnec|  220|Critical Failure: - Failure occurred in query execution for data source : KERNELPARAMETERS
 12C0064|2013/11/15|10:18:24|   BvUnixQueryProcessor.cpp|  386|Error: - 0xf0000005
 12C0064|2013/11/15|10:18:24|          DataCollector.cpp|  183|Error: - Failure processing the query.
  DD004C|2013/11/15|10:18:24|              JobRunner.cpp| 1325|Information: - [266863181:6985555c-0ba8-4a1c-bb3e-2f17f0a4c9d4] Locating result files for 1 queries in the job...
  DD004C|2013/11/15|10:18:24|              JobRunner.cpp| 1338|Information: - [266863181:6985555c-0ba8-4a1c-bb3e-2f17f0a4c9d4] Looking for result file at path :- /esm/system/hostname.domain.com/tmp//J266863181/ad3b75e6-cdeb-4561-9a2e-86d341b677da.xml
  DD004C|2013/11/15|10:18:24|              JobRunner.cpp| 

Cause

 This issue has been identified when CCS Agent was deployed using unattended package script installer

Resolution

 For unknown reason when CCS Agent was installed using automated script on AIX ODMDIR variable has been set to /usr/lib/objrepos

 In manual CCS Agent installation that is recommended in installlation guide by default ODMDIR variable is set correct to /etc/objrepos

 If your data collection on AIX fails with the error "Cannot access the CuDv object class" and you use automated script to deploy the CCS Agent please modify the script and enforce $ODMDIR variable to be set to /etc/objrepos

Snippet of the script below:

# It is important to add the command below

export ODMDIR=/etc/objrepos

 

./esmsetup -a -i -b -E -p 1,2,3,4,5,6,7,8,9,10,11,12,13,14 -d ${DIRECTORY.EN_US} -t ${INSTALL.EN_US}/esm.tgz -M ${MANAGER.EN_US} -N ${NODE.EN_US} -K "" -C ${INSTALL.EN_US}/su/ccs.tpk


Applies To

CCS 11

SCU 2013-3

PU 2013-2

AIX 6.1