Hi Juan,
Have you considered writing your own AXP CLI? AXP provides a way for you to write a CLI in the app-service submode. For example, you can write a CLI like the following:
axp# app-service my_app
axp(my_app-exec)# my new cli
This can execute whatever code you wish, so you do not have to go into a linux shell and modify files manually.
You can find examples and definitions in our AXP Developers Guide. Take a look at the CLI Plug-in Applications section, beginning on p. 173 (of the 1.6.1 document.) There is also an example of a simple applicaton CLI on p. 198. This CLI prints the current time of the system, but can be modified to change the config files you want.
Hope this helps,
-Carl
Hi.
We have been able to install TSM client in our lab environment AXP modules and it´s working fine (great!! :-)). Now, we want to go ahead one more step. We are interested about the way to pass config parameters from AXP CLI mode to application linux console avoiding to log into linux console to modify tsm config files.
This is the problem. A TSM client installed in AXP module has one specific config parameter in dsm.sys TSM config file. This is the TSM remote nodename. Now, when we finish to install TSM client in AXP, we have to modify manually this file login into application linux console. We are looking for a way to automate TSM client setup in AXP without to modify manually config files. It would be a good idea to pass config parameters from AXP CLI mode to application linux console.
One example. We have noticed, when you configure hostname under app-service in AXP CLI mode:
app-service tsmc
hostname TSM-REMOTE1
.
.
An entry in /etc/hosts application linux console is created automatically with this hostname command under app-service. We could obtain this hostname from /etc/hosts file and configure it as nodename in dsm.sys TSM config file using script commands, and it would be great if these script commands could be executed in post-install.sh package script. The problem is we can configure hostname under app-service only when TSM application is already installed.
Is there anyway to do it? Can you help us to achieve it?