CA Service Management

  • 1.  Archive and Purge

    Posted Mar 28, 2017 02:08 PM
      |   view attached

    Hi I need to create a backup of tickets of one tenant , i required the backup of the attachements and logs too I am tried with Archive and Purge function but i dont know how to create the backup of all this things only for one tenant

     

    I used the precharge rule Incident and  in the  Addicional Query field  i have this 

    tenat = U'/4ED2E... id of tenant /

     

    but at the moment of verify  the History dont show me anything 

     

     

     

     

    Can you help me with a way to do this please



  • 2.  Re: Archive and Purge

    Broadcom Employee
    Posted Mar 28, 2017 02:59 PM

    Have you tried tenant_id = U'/4ED2E.....'



  • 3.  Re: Archive and Purge

    Posted Mar 28, 2017 03:39 PM

    Hi paul tank you for helpme

     

     

    I tried but at the moment to put save  appears this

     



  • 4.  Re: Archive and Purge

    Broadcom Employee
    Posted Mar 28, 2017 04:11 PM

    Do you get the same error with tenant = U'\4ED2E.....'



  • 5.  Re: Archive and Purge

    Posted Mar 28, 2017 04:32 PM

    Since tenant_id is a UUID field, I don't think you need the backslashes.  Try the following.

    tenant_id = U'4ED2E...'



  • 6.  Re: Archive and Purge

    Posted Mar 28, 2017 05:01 PM

    At the moment to save without backslashes  this message appears

     



  • 7.  Re: Archive and Purge

    Posted Mar 28, 2017 06:37 PM

    Can you run that same query in the additional arguments for Search Incident and let us know if it works?  That is formatted correctly.... Wonder if this is a bug?



  • 8.  Re: Archive and Purge

    Posted Mar 29, 2017 07:52 AM

    Hi,

    if you only want to extract all the data of this tenant for backup purpose only. you may simply want to use pdm_extract_tenant utility.

    have a look below for usage:

    https://docops.ca.com/ca-service-management/14-1/en/administering/configure-ca-service-desk-manager/setting-up-multi-tenancy/utilities-used-for-multi-tenancy

    In the same way may you want to completely remove this tenant(after you did your backup) you can then use the pdm_tenant_delete.

     

    the correct syntax for your purge rule is:

    tenant=U\'4ED2E.....\'

     

    Also note that this make take quite some time to appears in the history depending of the data to purge and current load of your system as purge have lower priority vs. other process.

     

    Hope this help.

    /J



  • 9.  Re: Archive and Purge

    Posted Mar 29, 2017 07:57 AM

    It's interesting you have treat uuid fields as a string in some areas but not others.. Thanks for clearing that up!