I'm looking for a way to read out the information that is provided by NETSTAT for the connected system. Is there a tool or a simple way to direct the information to a file?
Unfortunately, the NETSTAT (or WRKTCPSTS) command does not have *OUTFILE support. This command can only be run interactively, too.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
However, the display screen for this command does have an F6 key defined that will print this information. You could then write a simple CLP to copy the spool file output (CPYSPLF) into a database file.
I don't know how useful this will be though, especially since you would not be able to submit this process to batch due to the "interactive only" requirement of the command.
I would like to see IBM change this process and add *OUTFILE support and allow us to run this command in a batch environment!
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.
Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.
Check out this Search400.com Featured Topic: 20 ways to ensure a smooth OS upgrade
Dig Deeper on Past Releases
Related Q&A from Ken Graap
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery.continue reading
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ...continue reading
The only option to correct damage preventing file journaling is to use the RCLSTG command.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.