• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Use Wireshark To Diagnose IBM i Communications Problems

    March 5, 2014 Ted Holt

    Troubleshooting communications problems is akin to dealing with teenagers. There’s plenty of room for blame and finger-pointing, and resolving a problem sometimes seems impossible. I don’t have anything to help you with teenagers, but I can recommend a free tool for communications problems. It’s called Wireshark, and here’s how to use it with IBM i communications traces.

    First, visit www.wireshark.org to get Wireshark. It is a network protocol analyzer that runs under Microsoft Windows and several operating systems of the Unix flavor. Like the best things in life, Wireshark is free.

    Next, install the QSPTLIB library. This is a library of tools that the helpful people at IBM Rochester have developed to help them help us. IBM doesn’t support this software, but they’ll let you use it. The QSPTLIB library is available as a save file PTF.

    V5R2M0 - SE06946
    V5R3M0 - SE16633
    V5R4M0 - SE24152
    V6R1M0 - SE32507
    V7R1M0 - SE45610
    

    I was not able to order this PTF through normal channels and had to have IBM send it to me. I used a binary FTP transfer to put the save file onto my IBM i system.

    Since it’s a save file PTF, not a regular PTF, you’ll need to use the RSTLIB command to restore the library.

    RSTLIB SAVLIB(QSPTLIB) DEV(*SAVF) SAVF(QGPL/QSE45610)
    

    Now you’re ready for a communications trace. Run the Trace Connection command (TRCCNN), replacing the little x’s with the IP address of the remote system, to start the communications trace.

    TRCCNN SET(*ON) TRCTYPE(*IP) TRCTBL(TRCCNNIP) SIZE(998000) 
              TCPDTA(*N () ()  *N 'xxx.xxx.xxx.xxx')
    

    Do whatever you do to interact with the remote system. In my case, I was accessing a Web service.

    Turn off tracing.

    TRCCNN SET(*OFF) TRCTBL(TRCCNNIP) CCSID(*ASCII)
    

    This process gave me a spooled file called QSYSPRT. It’s a plain ol’ vanilla report. Humans can read it, but Wireshark can’t. Wireshark needs a file, and here’s how you get one.

    Run the following commands to access the support tools menu.

    ADDLIBLE SPTLIB
    SPT
    

    Take option 12 to display the Communications Trace menu. From there, use option 15 to convert the spooled trace to a CAP file.

    CVTTRCCNN SPLF(QSYSPRT * *LAST)
                      OUTF('/some-directory/comm-trace.cap')
    

    At this point, you have a brand new cap file in the IFS. Copy it to the machine on which you’re running Wireshark. I used a binary FTP transfer.

    If you open the cap file in Wireshark, you’ll see something like this:

    Figure 1

    (Click graphic to enlarge.)

    How much of a Wireshark guru you want to be is up to you. You can find plenty of information, and even buy a book, at wireshark.org. You may even want to attend the upcoming SHARKFEST ’14 conference, which will be held June 16-20 in San Rafael, California.

    In my case, I sent the cap files to IBM Rochester. Patient and sagacious Richard showed me how to find the problem, which I shared with my contact at the Web service, who also knew what Wireshark was and how to use it. Before long, the problem was resolved, and now my application runs all day long and never misses a beat.

    I was so excited to have my communications problem resolved, I forgot to ask Richard if he had anything to help with teenagers!

    Ted thanks Richard Halleen of IBM for his assistance with a messy communications problem, and for introducing him to Wireshark and QSPTLIB.



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Maxava:  Don't wait for a disaster. Start planning today. DR Strategy Guide for IBM i FREE eBook.
    System i Developer:  Upgrade your skills at the RPG & DB2 Summit in Dallas, March 18-20.
    Northeast User Groups Conference:  24th Annual Conference, April 7 - 9, Framingham, MA

    More IT Jungle Resources:

    System i PTF Guide: Weekly PTF Updates
    IBM i Events Calendar: National Conferences, Local Events, and Webinars
    Breaking News: News Hot Off The Press
    TPM @ EnterpriseTech: High Performance Computing Industry News From ITJ EIC Timothy Prickett Morgan

    Infor Adds Industry-Specific Functionality to M3 Rumors Say Power8 Systems Debut Sooner Rather Than Later

    Leave a Reply Cancel reply

Volume 14, Number 5 -- March 5, 2014
THIS ISSUE SPONSORED BY:

HelpSystems
WorksRight Software
Northeast User Groups Conference

Table of Contents

  • DB2 For i Scalar Function Performance Considerations
  • Use Wireshark To Diagnose IBM i Communications Problems
  • Admin Alert: Setting Up IBM i TCP/IP Host Routes

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25
  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle