Our bigger business groups have dedicated servers for their line of business, in part because they have dedicated developers who actually code the scripts we schedule.
We do have a good share of shared servers as well though.
I sense your questions have been answered, but here is how we have things set up.
Agent: In order to make it easy to move DE applications between various environments (Dev, Stage, Prod) we use a variable for the Agent Name. If the application is run in Dev, the agent variable will resolve to a a development server ( ex. FTP
D04), and if the same application is copied and run in Prod the agent will resolve to the equivalent production server (ex FTP
P04)
Command to run: if you want to execute Powershell then this field should be:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments to pass: again, if you are executing Powershell the first argument you will likely pass to it is the path to the PS1 file you want to run.:
-command "C:\Cyb_exec\your_powershell.ps1"
If your powershell is short enough to fit onto one line, you can just put the whole command into the Argument to pass. For example, the following command will strip a 16 character timestamp from filenames of the files in a specific folder.
Get-ChildItem -Path D:\Inetpub\FTProot\PROD\IN\*.csv | foreach { rename-item $_.FullName -newname ($_.BaseName.Substring(0,$_.BaseName.length - 16) + $_.Extension)}
------------------------------
Andy Reimer
------------------------------
Original Message:
Sent: 10-22-2019 09:39 AM
From: stan teitelbaum
Subject: plumbing windows jobs to powershell files
Hi. I just got started with ca workload automation. I've created an event and set up a related series of 4 jobs connected by dependencies in my app. I have links on the front and back also for what I understand could support inter app dependencies later. I've set up various user accounts for dev test, etc.
I'd like to relate each job to a powershell script that would be executed when that job runs but don't understand how agents, servers and the command line come into play at this juncture. Or if an agent is even necessary. I get the feeling agents relate to a server and are woken up by ca wa. I cant find any documentation on this subject, especially the setting up of agents.
I see the "command to run" text box related to each job when I rt click and edit.. its been recommended to me that the agent group be a ca variable. Can somebody fill me in a little on what my options are and where I would go from here?