TMACUL

CA SDM::. Melhores práticas para alterar o arquivo nx.env

Blog Post created by TMACUL Champion on Jan 16, 2017

Veja também:

https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.tec612988.html 

 

https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.tec1788456.html 

 

https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.tec1147347.html 

 

Options Manager - CA Service Management - 14.1 - CA Technologies Documentation 

 

Iremos utilizar as seguintes opções para o comando:

  • [-c] Isto indica que a variável do NX.env será ecoado para o cliente. A lista destas variáveis está no site do servidor de arquivos / client_nx.env após a instalação.
  • -s (símbolo)] Não inclua o NX_ do arquivo NX.env.
                       Se você está desinstalando NX.env Então você pode encher
                       usar a / regex (/domsrvr:.*) para desinstalar muitas coisas.
  • -v (value) - valor
  •  -a (action) - ação

 

Para incluir uma nova opção:

 

Exemplo 01:

  • pdm_options_mgr -c -s NX_SERVLET_SERVER_URL -v "<myhostname>" -a pdm_option.inst
  • pdm_options_mgr -c -s NX_SERVLET_SERVER_URL -v "<myhostname>" -a pdm_option.inst -t

 

Exemplo 02:

 

  • pdm_options_mgr -c -s LDAP_NESTED_GROUPS -v NO -a pdm_option.inst
  • pdm_options_mgr -c -s LDAP_NESTED_GROUPS -v NO -a pdm_option.inst

 

Para remover uma opção:

 

  • pdm_options_mgr -c -s LDAP_NESTED_GROUPS -v NO -a pdm_option.deinst
  • pdm_options_mgr -c -s LDAP_NESTED_GROUPS -v NO -a pdm_option.deinst

 

pdm_options_mgr -?


pdm_options_mgr: illegal option -- ?
Usage pdm_options_mgr

pdm_options_mgr by itself will make the Options
Manager go to the database for the valid
Options. It is the same as action 1.

Examples:
pdm_options_mgr -c -a pdm_option.inst -s Symbol -v Value
pdm_options_mgr -c -a pdm_option.deinst -s Symbol -v Value

BOP Options
pdm_options_mgr -c -a option.inst -s Symbol
pdm_options_mgr -c -a option.deinst -s Symbol

BOP/NX.env Options
pdm_options_mgr -c -a pdm_option.inst -a option.inst -s Symbol -v value
pdm_options_mgr -c -a pdm_option.deinst -a option.deinst -s Symbol -v Value

 

[ -c ] This indicates that this NX.env variable
will be echoed out to the Client. A list
of these variables is in the server
site/client_nx.env file after installation.


[ -e ] This indicates that this NX.env variable
will be echoed out to the target servers ONLY.


[ -C ] If your NX.env variable is case sensitive,
use this argument. It will allow you to enter
upper and lower case symbols. The NX_ will be upper
case.

 

[ -d ] Domsrvr reply name i.e. domsrvr.


[ -u ] Make domsrvr request on behalf of this user.


[ -r ] User will be prompted to restart the Client.

 

[ -b ] If this argument is selected the Options Mgr
will try to send a bop message to indicate
the completion status.

Note: An object id must also be provided
of the variables with this specification is
kept on the server in site/client_nx.env.
If you don't provide a OID then it will
assume that is being called from the command line
and also update the value of the Option.
So use this without a OID if you are setting
an option from the command line.

 

[ -a (action) ]

action Can be option.inst, option.deinst,
pdm_option.inst, pdm_option.deinst
or one of the following numbers.

You may also enter one BOP and one NX.env
Option on one line. The same symbol will
be used for both Options.

 

action 1 - (uses rgen to sync database)
This reads Options from the database.
The option_id paramenter is ignored.
The symbol paramenter is ignored.
The value paramenter is ignored.

 

action 2 - (option.inst)
This uses the parameters to setup links.
The value paramenter is ignored.
It will use the symbol if given, otherwise
it will use the object_id to get the
symbol from the database.

 

action 3 - (option.deinst)
This uses the parameters to remove links.
The value paramenter is ignored.
It will use the symbol if given, otherwise
it will use the object_id to get the symbol
from the database.

 

action 4 - (pdm_option.inst)
This uses the parameters to set NX.env Options.
If the Options fail validation they will not
be set.

Note: If there is no validation in the
NX.env file, the Option will be set anyway.

 

action 5 - (pdm_option.deinst)
This uses the parameters to unset NX.env Options.

 

[ -n ] Use this with -b and optionally with -a to indicate
that there is no deinstall or install.


[ -t ] Use this option if you want to edit the NX.env.tpl file

 

[ -o (object id) ]


[ -s (symbol) ] Do not include the NX_ from the NX.env file.
If you are deinstalling NX.env stuff then you can
use a /regex (/domsrvr:.*) to deinstall many things.


[ -v (value) ]

 

Outcomes