Automic Workload Automation

  • 1.  "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 21, 2016 10:02 AM
    Hi,
    Every now and then, particularly when hosts are renamed, the agent won't restart without the transfer key being renewed.
    This can only be done via Cleint 0 as far as I can see.

    x0mmf2p56c4q.pnghttps://us.v-cdn.net/5019921/uploads/editor/0i/x0mmf2p56c4q.png" width="458">


    Is there a way of scripting this by first identifying which hosts are in this state and then executing a command to renew key?

    John.



  • 2.  "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 21, 2016 12:42 PM
    For security reasons, there is not another method to do that.

    I would recommend putting that in as an enhancement request to allow for the option (I believe there have been others, but the more users that show they are interested, the better). 


  • 3.  "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 22, 2016 02:49 AM
    Or you can use the Application Interface. There is a class called 

    Class RenewTransferKey

    that does the same, you would do in the GUI.


  • 4.  "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 22, 2016 10:37 AM
    Hi John,

    To expend on the Application Interface: you need need to use the Java API to do this.

    An alternative would be to use the CLI here (built on the Java API itself): https://github.com/brendanSapience/UC4-Automic-AE-CLI-Binary-Repository, and specifically the "AGENTS_Management.jar" binary.

    here is a typical call to renew all transfer keys:

    java -jar AGENTS_Management.jar -H AETESTHOST -L UC -D UC -W UC -C 0 -f_name ".*" -u_renewkey -commit

    => you need to connect to Client 0
    => the f_name parameter takes the name of an agent or a Regular Expression
    => the commit flag is necessary (otherwise it just simulates the command)

    here is a screenshot as well:

    se221z4xz9fe.pnghttps://us.v-cdn.net/5019921/uploads/editor/cr/se221z4xz9fe.png" width="1292">


     


  • 5.  Re: "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Broadcom Employee
    Posted May 18, 2018 08:22 AM

    Hi, 

    I have tested this solution and I can renew the transfer key however the key is renewed for all the reporting to AE. Is there a way we can use this solution to renew the keys of specific agents by providing agent name?

     

    Regards, Zafar



  • 6.  Re: "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Broadcom Employee
    Posted May 21, 2018 03:47 AM

    Never Mind! I overlooked the post, '-f_name' switch is the answer to my question.

     

    Regards, Zafar



  • 7.  Re: "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 06, 2018 01:25 PM

    Zafar, 

     

    Am trying to do the same thing, renew the transfer key by a specific agent name, however below error was thrown. 

    If i do it by -f_name "", all the agents are renewed. Any thoughts? 

     

     

    java -jar AGENTS_Management.jar -H AEHOSTNAME -L UC -D UC -W UC -C 0 -f_name ".*CMHWDKRNSQA01.*" -u_renewkey -commit
    Filtering Progress:
    1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% 13% 14% 15% 16% 17% 18% 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38% 39% 40% 41% 42% 43% 44% 45% 46% 47% 48% 49% 50% 51% 52% 53% 54% 55% 56% 57% 58% 59% 60% 61% 62% 63% 64% %% Warning: Operation not supported for type: HOST_IA
    65% 66% 67% 68% 69% 70% 71% 72% 73% 74% 75% 76% 77% 78% 79% 80% 81% 82% 83% 84% 85% 86% 87% 88% 89% 90% 91% 92% 93% 94% 95% 96% 97% Exception in thread "main" java.lang.NullPointerException
    at com.automic.filters.NameFilter.isPatternMatch(NameFilter.java:19)
    at com.automic.specifics.GoRunCommand.main(GoRunCommand.java:90)

     

    Thanks in advance, 

    Kesavan



  • 8.  Re: "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Broadcom Employee
    Posted Jul 09, 2018 03:28 AM

    It appears there is an issue with the hostname filter used. I am using same command without any issues.

     

    java -jar AGENTS_Management.jar -H AEHOST -L UC -D UC -W --10206284BD0E7ED1A4 -C 0 -f_name &HOST# ".*" -u_renewkey -commit

     

    Regards, Zafar



  • 9.  Re: "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 09, 2018 11:14 PM

    Thanks Zafar. 

     

    @brendan_sapience_automic Any ideas what I might be doing incorrectly? 



  • 10.  Re: "Renew Transfer Key" - Is it possibe to do this via Automic Script command?

    Posted Jul 10, 2018 02:56 AM

    For your information, Brendan Sapience is no longer employed at CA Automic....