Environment Variable Import
Moderators: chulett, rschirm, roy
Environment Variable Import
I'm working on developing a routine (script) for setting environment variables. I know there are the dsadmin commands of envadd, envset and envdelete. I also find now that export and import are available via the DS Administrator GUI.
Has anyone found a way to initiate the import from a command line?
The dsadmin commands also don't seem to provide the ability to add/update the variable description. Is there an option for setting the description?
Thanks,
Bob
Has anyone found a way to initiate the import from a command line?
The dsadmin commands also don't seem to provide the ability to add/update the variable description. Is there an option for setting the description?
Thanks,
Bob
Bob
I haven't looked around for a command line method, but if you are moving ALL of the environment settings from one project (or machine) to another, you could copy the "DSParams" file in its entirety.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
We do some scripted "sed" find/replace commands on the DSParams file for certain settings that cannot be changed via the dsadmin command. The same could be done for inserting env vars rather than importing via dsadmin.
Choose a job you love, and you will never have to work a day in your life. - Confucius
You need a good Unix script writer. We have a ksh script to import environment variables. The command line is documented, so mostly you need to set your Unix environment.
We use a ssi file to keep all environment variables. Updating them or adding new ones is as simple as editing the ssi file and running the script.
We use a ssi file to keep all environment variables. Updating them or adding new ones is as simple as editing the ssi file and running the script.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Note that IBM InfoSphere Information Server, Version 11.3.1.1 (Fix Pack 1) has a patch for a setenv issue. This issue can (once in a while) corrupt dsParams file.
Forgot that this was something I wanted to ask about - "ssi file"? All my searches turn up is a flood of Social Security Income references. Guessing that's not what you meant.FranklinE wrote:We use a ssi file to keep all environment variables.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
I forget what the acronym is supposed to represent. What I know is there's a standard path that ends with etc/ssi/ in which these files with extension .ssi are kept. They are text files with bunches of variables relevant to the process being run. They are sourced in at runtime.
Our DS ssi files contain all project-specific environment settings, such as default paths (/data, /cm, etc.) and settings for sys-level (dev, sat, etc.) that are determined at runtime as well. We parameterize just about everything, and the ssi file keeps us sane.
Edit: search on "unix ssi". It stands for "server side includes".
Our DS ssi files contain all project-specific environment settings, such as default paths (/data, /cm, etc.) and settings for sys-level (dev, sat, etc.) that are determined at runtime as well. We parameterize just about everything, and the ssi file keeps us sane.
Edit: search on "unix ssi". It stands for "server side includes".
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I always ask my server if the sides are included.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: