Ask the Expert

Reading NETSTAT information

Reading NETSTAT information

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.

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!


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 Featured Topic: 20 ways to ensure a smooth OS upgrade

This was first published in July 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: