You know Data Protector? So you know that the modification of parameter for Data Protector is done in file global and in file omnirc. The file global is maintained on the Cell Server directly, but the file omnirc (Linux/HP-UX: /opt/omni
, Windows 2008 C:\programdata\omniback
) has to be maintained on each client individually. The Data Protector admin often maintains one version on the Cell Server and distribute the modified file manually to each individual client. That’s the case, because no distribution mechanism exist for the file omnirc, at least in the past.
With Data Protector 8.11 there is a new way to modify omnirc values for the clients, using the command util_cmd
.
util_cmd -setomnirc <hostname> <name> [<value>] util_cmd –getomnirc <hostname> <name> name – the name of the environment variable written in DP omnirc file. hostname – the name of the host on which to modify omnirc or get omnirc value from value – the value of environment variable to be added or modified in omnirc file.
If a value is omitted, the variable will be removed from omnirc file. If file omnirc does no exist, a new file will be generated on client. If a variable already exists, its value will be changed in-place, otherwise the new variable will be appended to omnirc file. The command can be used too for reading variables and values from clients.
Example to be used to further automate distribution of omnirc parameter (read non existing variable, set variable, read existing variable):
C:\Program Files\OmniBack\bin>util_cmd.exe -getomnirc w2012r2dp.localdomain OB2IPCKEEPALIVE *RETVAL*0 C:\Program Files\OmniBack\bin>util_cmd.exe -setomnirc w2012r2dp.localdomain OB2IPCKEEPALIVE 1 *RETVAL*0 C:\Program Files\OmniBack\bin>util_cmd.exe -getomnirc w2012r2dp.localdomain OB2IPCKEEPALIVE 1 *RETVAL*0
Wow, that’s cool! Thanks for sharing. Very useful and I can throw away my self-developed scripts to deploy the omnirc file. 🙂
That”s very good news, but do we need reboot DP services after this changed?
Hi Alex,
As always, changes to omnirc file do not require a restart of the Data Protector services.
Best regards
Daniel
thank you very much!
Pingback: Script to distribute omnirc file