Is there a way to get all the system information off an AS400 with out looking at 6 different screens. I guess what I am looking for is a way to have the AS400 dump all the System information into a spool file or even a text file.
What do you mean by "system information"?
If you are using WRKSYSVAL, you can get all of those values in a CL program by using the RTVSYSVAL command (or in another HLL program by using the QWCRSVAL API).
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
There is a portion of each screen that I need to maintain a Database on. We want to have the everything from the processor to the tape drives. We also need to know how much of the storage capacity is currently being used. I deal with just over 50 AS/400's and this can get very time consuming.
A lot of these commands can produce spool files and/or output files, which you can FTP back to the "home" system for processing. The outfiles should all have a field for the system name, so you can differentiate systems.
For the commands that only output spool files, you'll need to copy the spool file to a physical file with a record length of 133 and use a HLL program to process it (I have also done that with good old Query/400, by defining the headers on the reports and excluding them, and sending the result to an outfile).
There may be API's to do what you want (I know about QWCRSVAL, which is the equivalent of RTVSYSVAL), you might want to see if you can use these API's in a CL or RPG program on the remote systems to get your data. Then, it's just a matter of getting all the info over to the "master" database.
It will be time consuming, also, to write this application, but it should be worth the effort. Good luck.
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.