cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
687
Views
0
Helpful
2
Replies

changing variable value depends on enviornment

i am calling below perl script from tidal.

command-/info/run_job.pl

command parameters-
-p <V1.724> -j DEV
the varaibles v1 will change as per the enviornment.For example for v1 i need to pass the value as DEV in dev enviornment,test in qa enviornment,
prod in prod enviornment.current we are changing variable v1 value before migrating to other enviornment.Like this i have different variables which will vary from one enviornment to another enviornment.Is there any way to change values of variables dynamically depends on enviornment?

2 Replies 2

I consider these as Environment Variables which refer to variables that are static for given environment. Granted, there is one time effort set them in each environment.

Let us call it as Environment for simplicity. Which is set to DEV in Dev env and so on.

Let's say we want to use the environment name in a folder name. Then you could use c:\<Environment>Folder which will result in c:\DEVFolder in DEV and C:\TSTFolder in TST and so on.  In this case, you are using only one public variable though, instead of 10 variables

Hope this works

Also, please refer to the post below for some interesting discussion on similar scenario

https://supportforums.cisco.com/discussion/12692061/group-variable-issue

Thanks for Input.it is one time effort only.I have around 10 variables for each job.Is it possible to change the value of each variable[10 variables] depends on enviornment?

Review Cisco Networking for a $25 gift card