PING is one of those handy TCP/IP utilities that performs a basic function on the Internet: verifying whether a device is active and able to exchange TCP/IP traffic. It's a useful but limited tool that's available on any machine that's configured for TCP/IP communications, including AS/400 and iSeries machines.
But there are things PING can't do that are needed in an OS/400 environment, particularly verifying whether Client Access host socket servers are available to a TCP/IP client. These host servers run daemon programs that service Client Access requests for sign-on security, file serving, printing, Telnet, ODBC transfers, remote commands, Management Central and more. If those servers aren't active and available over a TCP/IP network, your Client Access requests will fail.
To troubleshoot and verify whether your Client Access host servers are active, IBM provides the CWBPING utility with Client Access Express for Windows V5R1. (CWBPING is also available with earlier versions of Client Access Express for Windows as well as with Client Access for Windows 95/NT, but its full functionality is contained in Express client V5R1M0.) CWBPING is a DOS-prompt utility for verifying host server connections, and it doesn't require a Client Access license to use or distribute. Here's how it works.
Like PING, CWBPING is invoked from a DOS command line by using the IP address or DNS name of your target AS/400 or iSeries system as follows:
CWBPING ip_address or host_name
Using CWBPING without any parameters attempts to connect your PC to the target system and check whether the most common Client Access host servers are available from that client. A number of connection messages will scroll down your screen, telling you whether the PC could reach each server. A Client Access PC5250 session doesn't need to be active to run CWBPING, and if a successful connection cannot be made to one of the servers, it indicates there is a problem between your PC and your target OS/400 system. If you then need to restart your Client Access servers from OS/400, you can use the End Host Server (ENDHOSTSVR) and Start Host Server (STRHOSTSVR) commands as follows:
ENDHOSTSVR SERVER(*ALL)
STRHOSTSVR SERVER(*ALL)
In addition, you can also selectively start and end individual host servers by changing the values in the SERVER parameter list of the STRHOSTSVR command. (Press F1 on this parameter to get a list of server values.) Host servers can also be controlled inside Operations Navigator by opening the Network-Servers-Client Access node and selecting Start or Stop from the pop-up menu that appears when you right-click on a particular server.
But CWBPING does more than simple host server verification. CWBPING's syntax also contains a list of parameters that allow you to change the program's connection values for SSL connectivity, verify individual TCP/IP servers, check the availability of specific TCP/IP ports, or pass in an OS/400 user ID and password if the server requires it. To tell CWBPING to use one of these additional parameters, simply add the desired parameter(s) to the end of your CWBPING command, as follows:
CWBPING ip_address or host_name [parameter list]
Several parameters can be added to a CWBPING statement to tell the program just what server you want to verify and to add any specific processing for verifying a service. Here's a list of CWBPING parameters you can use for OS/400 server verification, and the function each parameter performs.
-------------------------
About the author: Joe Hertvik is an IT professional and freelance writer who has been working with OS/400 since the days of the System/38 in the mid-1980s. Joe can be reached at jhertvik@midrangeserver.com.
========================
MORE INFORMATION
========================