Home > Ask the AS/400 Experts > iSeries i5/OS and OS/400 Questions & Answers > Checking if a local port is used by another job on AS/400
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Checking if a local port is used by another job on AS/400

Ken Graap EXPERT RESPONSE FROM: Ken Graap

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


iSeries news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 30 September 2008
Isn't there a api to check if a local port is used by another job on iSeries?

>
There is a command called NETSTAT which will show you who is using local ports. Unfortunately it can only be used interactively and can only create spooled output.

To execute the command do: NETSTAT OPTION(*CNN)

                      Work with TCP/IP Connection Status                       
System:   S02      
Type options, press Enter.                                                     

3=Enable debug 4=End 5=Display details 6=Disable debug
8=Display jobs
Remote Remote Local Opt Address Port Port Idle Time State * * ftp-con > 000:40:52 Listen * * telnet 000:01:52 Listen * * smtp 000:00:01 Listen * * tftp 018:13:58 *UDP * * sunrpc 518:42:58 Listen * * sunrpc 063:18:20 *UDP * * ntp 000:49:31 *UDP * * netbios > 018:13:58 Listen * * netbios > 000:00:11 *UDP * * netbios > 000:00:13 *UDP * * netbios > 000:02:14 Listen * * snmp 000:12:53 *UDP
More...
 F3=Exit   F5=Refresh   F9=Command line   F11=Display byte counts   F12=Cancel
 F20=Work with IPv6 connections   F22=Display entire field   F24=More keys

From this screen you can use the F6 key to create spooled output…


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
iSeries i5/OS and OS/400
Will overloaded discs impact iSeries performance?
Error CWBCO1049 on AS/400
Recovering from DST QSECOFR password disablement on V5R4
Enrolling a user profile in the i5/OS system distribution directory
How to resolve a CPI93B8 error message: LIC problem data has been logged for #MSTRTNS
Restricting specific user command line access
Print private authorities (PRTPVTAUT) command for user objects in a library with *public exclude
Getting modules to adopt authorities from the main program
Copying a physical file back to a spool file
See who's browsing secret file records

i5/OS
Recovering from DST QSECOFR password disablement on V5R4
How to: Configure a backup schedule between partitions on HMC
Enhancements in the intrusion detection system for i5/OS V6R1
The enhanced DB2 inside i5/OS V6R1
New password-control security features for i5/OS V6R1
Is i5/OS V6R1 in your System i shop's future
New i5/OS features announced as anticipation mounts
Using indexes on DB2 for i5/OS to improve performance
IBM previews new version of i5/OS for System i
IBM System i division filing for divorce
i5/OS Research

Systems Management Tools
Strategies for securing IBM i production files
Legacy AS/400 and new IBM i products both featured at COMMON
Translating Linux for IBM i admins: User profile commands
AS/400 lessons from the past, present, and future: A holiday tale
How to: Monitoring job activity on the AS/400
How to: Reduce the percentage of ASP used on the AS/400
Changing BRMS configurations for new naming conventions for i5
AS/400 system values quiz
DAYSPAST CLLE program for AS/400: Compares object creation date with today's date
Checking on System i disk space requires creating a new command: XRTVSYSSTS

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
AS/400  (Search400.com)
i5/OS  (Search400.com)
iSeries  (Search400.com)
OS/400  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts