WLM inheritance


 
Thread Tools Search this Thread
Operating Systems AIX WLM inheritance
# 1  
Old 10-05-2010
WLM inheritance

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.
# 2  
Old 10-05-2010
Try to use
Code:
wlmassign <yourclasshere> $$

in your script directly after starting the child process.
# 3  
Old 10-05-2010
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.
# 4  
Old 10-05-2010
Quote:
Originally Posted by firefox111
[...] Also your workaround will not work in all situations.
Can you give an example?
Quote:
Originally Posted by firefox111
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.
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.
# 5  
Old 10-05-2010
Quote:
Originally Posted by shockneck
Can you give an example?.
e.g. if the application is not a script, but an executable

Quote:
Originally Posted by shockneck
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.
The wlmassign command works if i execute it manually, but from my understanding this shouldn't be neccessary if a) and b) are ok
# 6  
Old 10-05-2010
Quote:
Originally Posted by firefox111
e.g. if the application is not a script, but an executable
This would be a different scenario. You asked for a solution when using WLM with a shell script:
Quote:
Originally Posted by firefox111
[...] I have set up a class with inheritance = yes. In the rules characteristics I have chosen a shell script as an application. [...]
Quote:
Originally Posted by firefox111
The wlmassign command works if i execute it manually, but from my understanding this shouldn't be neccessary if a) and b) are ok
Unfortunately your understanding might not help you here. Why not stick to the docs? Smilie
# 7  
Old 10-05-2010
Quote:
Originally Posted by shockneck
This would be a different scenario. You asked for a solution when using WLM with a shell script:
You are right, but this scenario is also possible.

Quote:
Originally Posted by shockneck
Unfortunately your understanding might not help you here. Why not stick to the docs? Smilie
Yeah, that's what i already did and where my understanding comes from.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

What is wrong with below python inheritance code?

I am using python 3.4. Below is the exception I am getting- Traceback (most recent call last): File "./oop.py", line 20, in <module> y = DerivedClass("Manu") File "./oop.py", line 15, in __init__ super().__init__(self,value) TypeError: __init__() takes 2 positional arguments but... (2 Replies)
Discussion started by: Tanu
2 Replies

2. Red Hat

Ulimit Inheritance

Hi , If i start mysqld or httpd as root user which inturn starts them as "mysql" or "apache" user, will the ulimit of "root" user or ulimit of "mysql/apache" user be set for the mysql/apache processes. My understanding is that the ulimit of the user who initiates the process(root in this... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

3. Programming

Difference in multiple inheritance and multilevel inheritance: same method name ambiguity problem

Hi, In multi-level inheritance: class A { public: void fun() { cout << "A" << endl; } }; class B : public A { public: void fun() { cout << "A" << endl; } }; class C : public B { }; int main() { C c; c.fun(); // Ans: A } (1 Reply)
Discussion started by: royalibrahim
1 Replies

4. Programming

Inheritance

whats the use of inheriting with access specifier as private..? Please specify the answer with a simple example... Regards -- Madhu (5 Replies)
Discussion started by: MadhuM
5 Replies

5. Shell Programming and Scripting

Inheritance in Perl

package Inventory_item; sub new { my($class) = shift; bless { "PART_NUM" => undef, "QTY_ON_HAND" => undef }, $class; } package main; $item = Inventory_item->new(); Can any one please help me in brief explaining the line... (5 Replies)
Discussion started by: parthmittal2007
5 Replies

6. Programming

C++ Inheritance problem??????

Hi friends, I hope u people are ok and doing fine. I have this small problem with the derived class. I have created te base class and there is a small problem with the definition of the derived class which the compiler is pointing out, could you please help me. Here is my code #ifndef... (2 Replies)
Discussion started by: gabam
2 Replies

7. Shell Programming and Scripting

Makefile: Parent - Child Inheritance and export

Hi, I have a number of Makefiles, including a couple of files that I include in Makefiles, a few scripts that are executed through Makefiles, and I have problems with environment variables that are not inherited to the scripts properly. Simplified scenario: rootdir/Makefile: all: ... (1 Reply)
Discussion started by: Shompis
1 Replies

8. Shell Programming and Scripting

perl - variable inheritance

Hey Everyone, Does anyone know how - or if it's even possible - for a child perl script to inherit the variables of a parent perl script? In a shell script, you would use "export" for example. I am running Perl 5.8. Basically, let's say "perl1.pl" calls "perl2.pl" and I want "perl2.pl" to... (2 Replies)
Discussion started by: gsatch
2 Replies

9. AIX

Workload Manager (WLM)

Guys, What is this Workload Manager (WLM) & Partition LoadManager and their advantages Thanks in advance Manu (0 Replies)
Discussion started by: b_manu78
0 Replies
Login or Register to Ask a Question