Is none of you using WLM? A search gives no matches....
Anyway, I have set up a class with inheritance = yes. In the rules characteristics I have chosen a shell script as an application. This script is caught by the class, but not the child processes, which have the PID of the script as the parent PID.
Any ideas?
TIA.
Try to use
wlmassign <yourclasshere> $$
in your script directly after starting the child process.
As a workaround i have a script which checks if processes with a specific name are there and then adds them to the wlmclass. But this is not possible if you don't know the names of the processes. Also your workaround will not work in all situations.
So I was wondering why the inheritance is not working as described, because sooner or later I will run i a situation where I definitely need it.
Can you give an example?
If you a) set the WLM Class to inheritance, b) put the script in the right class and c) the wlmassign command from the WLM documentation does not work you might open a PMR with IBM.
e.g. if the application is not a script, but an executable
The wlmassign command works if i execute it manually, but from my understanding this shouldn't be neccessary if a) and b) are ok
This would be a different scenario. You asked for a solution when using WLM with a shell script:
Unfortunately your understanding might not help you here. Why not stick to the docs? :rolleyes:
You are right, but this scenario is also possible.
Yeah, that's what i already did and where my understanding comes from.