Automic Workload Automation

  • 1.  Start an agent using command line

    Posted May 15, 2015 03:29 PM
    Hi Guys,

    I'm trying to start the windows agent on about 180 servers and I was wondering if anyone knew of a way to do this using the command line or a script of some sort?

    If anyone knows anything, I'll be eternally appreciative.


  • 2.  Start an agent using command line

    Posted May 15, 2015 05:09 PM
    If you have all of the agents set to start automatically, you could build a script to cycle the UC4 service on the box, which would start/restart the agent. 

    sc \\<server> stop UC4.ServiceManager
    sc \\<server> start UC4.ServiceManager

    you could even put your server names in a vara and do a prep_process_var to go through them all. 


  • 3.  Start an agent using command line

    Posted May 18, 2015 01:35 PM
    Hmm, they are not set to start automatically...is there something in the configuration file of either the service manager or the agent to set it so it will start automatically?

    Because if so, I could write a script to rewrite that portion of the config file and then do like you said there.


  • 4.  Start an agent using command line

    Posted May 18, 2015 02:36 PM
    It appears that this is stored in the UC4.smc file that's in the bin folder of the service manager. When the agent is set to start automatically it says CREATE Agent but if it's not then it says !REATE Agent. I tested this and I changed an agent to not start automatically by changing to !REATE Agent and restarting the service. Then I changed it back and restarted the service and the agent came back up. 


  • 5.  Start an agent using command line

    Posted May 19, 2015 09:33 AM
    Hi Bertie,

    Even if they are not set to start automatically but their Smgr is up, you can use a smgr command line on a job on any other agent that is up and uses smgr, inside a looping for these 180 agents. Something like this:

    ucybsmcl  -c START_PROCESS -h &computer name:&port number -n &phrase -s &service




  • 6.  Start an agent using command line

    Posted May 20, 2015 10:31 AM
    Hmm, so it looks like what Jim said should work but now I'm actually having a different issue...so I'll have to revisit this later once I resolve the other issue.

    If you can look at it, https://community.automic.com/discussion/5189/anyone-run-into-this-issue-before?new=1 and see if you know what the heck is going on there, that would be great.