We would like to test whether a certain number of jobs with known names are running in a subsystem. Example: EDIGEDA should be running in ROBOT.
We would also like to test whether at least 1 job is running in a sub-system. My idea was to test via : --filter-subsystem-name=‘^SUBSYS$’ --filter-subsystem-library=‘LIB’ --critical-status=0 Is it necessary to test a warning state in this case?
Finally, is it possible to manually create all the tests in the CLI, as we will have a large number of them on several systems?
Thank you in advance for your answers, Best regards, Jean
Page 1 / 1
Hello :)
Firstly, could you tell me which connector you are using, as there are two AS400 connectors (one of which is deprecated):
Then I wasn't able to determine whether you were talking about using the ‘Jobs’ or ‘Subsystem’ service, even though the Jobs service seems to me to be the most consistent with your request. Some of the options you mentioned exist but others such as `filter-subsystem-library` or `critical-status` don't exist as such in the list of options available for this ‘Jobs’ mode. Here is the list of macros for the Jobs service and their description (this is an extract from the AS400 connector documentation which will be updated soon):
We want to test the existence of a certain number of works within sub-systems. However, according to the online help, only a certain number of jobs (and the associated status) is reported per job queue. The expected result is to know whether a finite number of sub-systems are available, and whether jobs whose names are known are running in each one.
For example: ROBOEDIGED and ROBOTGEDA must be running in ROBOT. Jobs must exist in PMEDH.
The online help could provide examples for each mode.
Thank you for your reply, Jean
Hello :)
We have taken care to publish the updated documentation for the AS400 connector, which was very incomplete. We hope it will help you better understand how to use the models and options available.
About your issue, as I understand it there are several stages:
1. Use OS-AS400-SubSystem-Connector-custom to monitor the following metrics:
which will tell you the number of sub-systems available.
2. To monitor jobs OS-AS400-Jobs-Connector-custom, you need to use the mode and filter on the sub-systems identified in connection with the jobs using this macro:
Note that there is a discovery rule for Subsystems that automates the deployment of associated services by automatic recognition. However, this functionality is not available for Jobs. If you are interested, you can suggest the idea here so that it can be voted on and when the time comes we can deploy development resources on the subject. I hope this message has helped you. If necessary, you can try to clarify your request with examples of orders to help me better understand the steps you've taken.