CA Client Automation

  • 1.  RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 04, 2015 11:27 AM

    Hi all,

     

    I have created a collect task from rvi agent (hostname: CAPRDASS server) to collect virtual information to Hyper-V (hostname: DC1MHV011 server) and the status is "ERROR" and status text is "D:Failed".

    I have verified the log file TRC_UAM_AMVMINVUX_0.txt from CAPRDASS (RVI agent) and I could see:

     

    ---------------////////////////---------------------------//////////////////////////------------------------------///////////////////////////////-------------------------------

     

    040915-11:26:16.9834556L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |002923|       | 

    040915-11:26:16.9969481L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |002924|       | -----------------------------------------------------

    040915-11:26:16.9970059L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |002937|       | Trace log D:\Aplic\CA\DSM\bin\..\logs\TRC_UAM_AMVMINVUX_0.log for amvminvux - amvminvux starting. Trace level is Error.

    040915-11:26:16.9970372L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |002939|       | -----------------------------------------------------

    040915-11:26:16.9970613L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |002960|       | LST : 040915-11:26:16.9970647

    040915-11:26:16.9970613L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |002979|       | GMT : 040915-14:26:16.9970875

    040915-11:26:16.9971192L|004736|00001274|amvminvux |cfTrace         |CCFTrace.cpp        |000747|       | Used configuration: Common Configuration Component

    040915-11:26:17.4951072L|004736|00001274|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000087|NOTIFY | New CCcnfAgentApi 0x1f57180, instcount 1, sesscount 0

    040915-11:26:17.4951885L|004736|00001274|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000206|NOTIFY | CCcnfAgentApi::Init() 0x1f57180, instcount 1, sesscount 0

    040915-11:26:17.5317406L|004736|00001274|amvminvux |amvminvux       |hypervapi.cpp       |000252|ERROR  | hypervapi::init: Failed to WMI connect to server DC1MHV011.ATIVASDC.LOCAL with user DC1MHV011.ATIVASDC.LOCAL\srv.itca-hyperv. Error = E_ACCESSDENIED (0x80070005)

    040915-11:26:17.5319037L|004736|00001274|amvminvux |amvminvux       |AMInventoryHyperv.cp|000089|ERROR  | hyperv init root\cimv2 failed (server=DC1MHV011.ATIVASDC.LOCAL): 1

    040915-11:26:17.5344710L|004736|00001274|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x1f57180, instcount 1, sesscount 0

    040915-11:26:17.5346631L|004736|00001274|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x1f57180 done, instcount 0, sesscount 0

     

    ---------------////////////////---------------------------//////////////////////////------------------------------///////////////////////////////-------------------------------

    I have verified srv.itca-hyperv user his password and that is working fine.

    I insert srv.itca-hyperv into "Administrator" group from hyper-v server (DC1MHV011).

     

    hyper-v collect task error.jpg

     

    My ITCM environment:

     

    - itca DM ans SS servers: 12.8 fp1

    - hyperv: Win20012 r2.

     

    Regards,

     

    Nelson



  • 2.  Re: RVI agent - collect task to MS Hyper-v - access denied
    Best Answer

    Posted Sep 04, 2015 11:55 AM

    HI Nelson

    Please have a look at this technical document and see if this corrects the issue

     

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec603664.aspx

     

    PLease let us know if this helps

     

    Thanks

    Joe



  • 3.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 04, 2015 01:15 PM

    Hi Joe!

    I created the registry key on the Microsoft Hyper-V machine. I believe that access_denied error was fixed.


    But now, I have another error from log file TRC_UAM_AMVMINVUX_0.txt. See below:



    ------------------------/////////////////////////----------------------------////////////////////////////////-----------------------------/////////////////////////--------------


    040915-14:02:54.3186573L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |002923|       | 

    040915-14:02:54.3358105L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |002924|       | -----------------------------------------------------

    040915-14:02:54.3358967L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |002937|       | Trace log D:\Aplic\CA\DSM\bin\..\logs\TRC_UAM_AMVMINVUX_0.log for amvminvux - amvminvux starting. Trace level is Error.

    040915-14:02:54.3359287L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |002939|       | -----------------------------------------------------

    040915-14:02:54.3359538L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |002960|       | LST : 040915-14:02:54.3359576

    040915-14:02:54.3359538L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |002979|       | GMT : 040915-17:02:54.3359818

    040915-14:02:54.3360141L|002124|00001b48|amvminvux |cfTrace         |CCFTrace.cpp        |000747|       | Used configuration: Common Configuration Component

    040915-14:02:54.7795292L|002124|00001b48|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000087|NOTIFY | New CCcnfAgentApi 0xb07180, instcount 1, sesscount 0

    040915-14:02:54.7796081L|002124|00001b48|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000206|NOTIFY | CCcnfAgentApi::Init() 0xb07180, instcount 1, sesscount 0

    040915-14:03:03.2572871L|002124|00001b48|amvminvux |amvminvux       |hypervapi.cpp       |000616|ERROR  | hypervapi::query_with_result: Enumerate query result failed with error 0x80041010

    040915-14:03:03.2732463L|002124|00001b48|amvminvux |amvminvux       |hypervapi.cpp       |000647|ERROR  | hypervapi::query_with_result: Failed

    040915-14:03:03.2732993L|002124|00001b48|amvminvux |amvminvux       |hypervapi.cpp       |000431|ERROR  | hypervapi::getVMList: failed to query_with_result

    040915-14:03:03.2735065L|002124|00001b48|amvminvux |amvminvux       |AMInventoryHyperv.cp|000114|ERROR  | getVMList failed

    040915-14:03:03.3629990L|002124|00001b48|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb07180, instcount 1, sesscount 0

    040915-14:03:03.3630814L|002124|00001b48|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp   |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb07180 done, instcount 0, sesscount 0


    any suggestons to fix this error?


    regards

    ------------------------/////////////////////////----------------------------////////////////////////////////-----------------------------/////////////////////////--------------

    Nelson



  • 4.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 04, 2015 01:50 PM

    Nelson

    what operating system is Hyper-v running on ? I aw an issue where someone was running ITCM 12.8 and was trying to collect from WIndows 2012 server and it was a compability issue as 12.9 supported Windows 2012 and not 12.8.

    Please advise. verify if the user is a local user of Hyper-V machine and belongs to the Administrators group. this is important

    Thanks

    Joe



  • 5.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 04, 2015 02:24 PM

    Hello Joe,

     

    Hyper-v is running on Windows Server 2012 R2 Datacenter. I checked ITCM compatibility matrix, and I noted that R2 is not compatible with 12.8.

    The uer srv.itca-hyperv belongs local administrators group.

     

    Is there a way to get virtual information? This error always occurs?

     

    regards

    Nelson



  • 6.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 04, 2015 03:05 PM

    Nelson

    I looked on the matrix and found a 12.8 fix is needed to support Windows 2012 It states that ITCM 12.8 requires FP 1 fix

     

    https://support.ca.com/irj/portal/anonymous/phpsupcontent?contentID={245191F6-DB9D-4E0A-9315-D2AD63663FEA}

     

     

     

     

    https://support.ca.com/irj/portal/solncdndtls?aparno=RO70008&os=WINDOWS&docid=610985&actionID=5&fromKBResultsScreen=T

     

     

    Thanks and let us know if this fix helps and you can use winoffline to apply the fix if it gives you issues use the standard applyptf and cazipxp commands to apply the fix

     

    Thanks and hope this is helpful

    Joe



  • 7.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 08, 2015 02:32 PM

    Hi Joe.

     

    I applied FP1 fix on RVI Agent Server (hostname CAPRDASS) and on server Hyper-V (hostname DC1MHV01). I just run CA-DSM-12-8FP1.exe localized into folder "WindowsProductFiles_x86\fp1_patch".

    I run "caf restart", but still not woking.

     

    Error from file TRC_UAM_AMVMINVUX_0.txt on RVI Agent Server (hostname CAPRDASS):

     

     

    15:18:50.9053532L|006900|000018a0|amvminvux |cfTrace        |CCFTrace.cpp        |002937|      | Trace log D:\Aplic\CA\DSM\bin\..\logs\TRC_UAM_AMVMINVUX_0.log for amvminvux - amvminvux starting. Trace level is Error.

    080915-15:18:50.9053853L|006900|000018a0|amvminvux |cfTrace        |CCFTrace.cpp        |002939|      | -----------------------------------------------------

    080915-15:18:50.9054104L|006900|000018a0|amvminvux |cfTrace        |CCFTrace.cpp        |002960|      | LST : 080915-15:18:50.9054139

    080915-15:18:50.9054104L|006900|000018a0|amvminvux |cfTrace        |CCFTrace.cpp        |002979|      | GMT : 080915-18:18:50.9054382

    080915-15:18:50.9054708L|006900|000018a0|amvminvux |cfTrace        |CCFTrace.cpp        |000747|      | Used configuration: Common Configuration Component

    080915-15:18:51.3417800L|006900|000018a0|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp  |000087|NOTIFY | New CCcnfAgentApi 0xa17180, instcount 1, sesscount 0

    080915-15:18:51.3418579L|006900|000018a0|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp  |000206|NOTIFY | CCcnfAgentApi::Init() 0xa17180, instcount 1, sesscount 0

    080915-15:19:01.2901700L|006900|000018a0|amvminvux |amvminvux      |hypervapi.cpp      |000616|ERROR | hypervapi::query_with_result: Enumerate query result failed with error 0x80041010

    080915-15:19:01.2948391L|006900|000018a0|amvminvux |amvminvux      |hypervapi.cpp      |000647|ERROR  | hypervapi::query_with_result: Failed

    080915-15:19:01.2949714L|006900|000018a0|amvminvux |amvminvux      |hypervapi.cpp      |000431|ERROR  | hypervapi::getVMList: failed to query_with_result

    080915-15:19:01.2951255L|006900|000018a0|amvminvux |amvminvux      |AMInventoryHyperv.cp|000114|ERROR  | getVMList failed

    080915-15:19:01.3916734L|006900|000018a0|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp  |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa17180, instcount 1, sesscount 0

    080915-15:19:01.3917447L|006900|000018a0|amvminvux |CcnfAgentApi    |CCcnfAgentApi.cpp  |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa17180 done, instcount 0, sesscount 0



  • 8.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 08, 2015 03:02 PM

    Nelson

    Did you verify permissions that the account you specified is a member of the local administrator's group in Windows  ? if so please open a normal support issue and someone will be glad to assist you.

    Thanks

    Joe



  • 9.  Re: RVI agent - collect task to MS Hyper-v - access denied

    Posted Sep 08, 2015 03:40 PM

    Joe.

     

    I have opened a case  00196259: RVI-collect task ERROR- HyperV.

     

    I verfied permissions and the account I specified is a member of the local administrator's group in Windows hyper-v.