Home > AS/400 Tips > iSeries administrator tips > CWBPING does what PING can't for your 400
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

CWBPING does what PING can't for your 400


Joe Hertvik
01.09.2002
Rating: -3.56- (out of 5)


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


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.

  • /all -- CWBPING attempts to verify all possible Client Access socket servers. By default, only the most common servers are verified. Note, however, that there are some Client Access servers that are not available in each OS/400 release. Therefore, you may receive some warning messages if CWBPING uses /all to contact a server that doesn't exist on your system.
  • /at:n -- Specifies the address mode used by CWBPING. The address mode determines how often CWBPING should retrieve the IP address for a particular host name. (n=0 always retrieves the IP address; n=1 retrieves it one hour after the last lookup; n=2 retrieves it one day after the last lookup; n=3 retrieves it after one week; n=4 tells CWBPING not to retrieve the address because it's using a configured IP address; and n=5 tells CWBPING to look up a particular IP address only once after the PC is restarted.) Note, however, that the /at:n parameter is ignored when CWBPING is called with a direct IP address.
  • /pl:n -- Specifies how CWBPING looks up the port numbers of the servers the program is verifying. (n=0 uses the Server services file for port number identification; n=1 uses the Local services file; n=2 uses standard ports for each service.) Note that if you tell CWBPING to verify services on a particular port by using the /port:n parameter, the /pl:n parameter will be ignored.
  • /password:password -- Sends a password to the server if the server requires user ID and password verification before answering.
  • /port:n -- Tells CWBPING to contact a service residing on a TCP/IP port designated by n (ex, 23=Telnet). This is handy to continue verification if your security administrator changes port numbers for a popular service, such as Telnet, after hackers have threatened a system.
  • /serv:name -- Tells CWBPING to verify whether a particular host access or TCP/IP server is available. To retrieve the exact names of the Client Access host servers for this command, run the following CWBPING command in verbose mode:

    CWBPING ip_address or host_name /v

    You can also use the /serv:name parameter to verify whether non-Client Access TCP/IP servers, such as FTP or Telnet, are active. Simply put the OS/400 name of the target TCP/IP server in the name area of the /serv:name parameter.
  • /ssl:n -- Enables or disables Secure Sockets for use with CWBPING (n=1 enables SSL; n=2 disables SSL).
  • /timeout:n -- Changes the connection timeout for contacted servers to the number of seconds specified in n (where n=0-3600).
  • /userid:userid -- Sends a user ID to the server if the server requires user ID and password verification before answering.
  • /v -- Displays verbose (detailed) messages. Verbose mode is useful if you want to list out the service name of each server for use with the /serv:name parameter.

    CWBPING is a handy tool to keep in mind when you need to verify your host server connections. It's something to keep in mind the next time you have problems connecting a Client Access Windows PC to your AS/400 or iSeries.

-------------------------
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
========================


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




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



RELATED CONTENT
iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

PC/Windows Connectivity
CA Express utility helps you manage SSL certificates
Windows XP SP2 causes problem for iSeries Access
Top 10 tips from our experts
The registration facility helps you tailor your system -- Part II
20 FTP tips in 20 minutes
Are your terminal sessions secure?
Top advice on connecting to the iSeries
Fast guide to PC/Windows connectivity resources
The Lazy Coder: Find your iSeries using a DNS or name server
The Lazy Coder: Fun with TCP/IP

Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
Watch your profiles
Avoid locking issues
Send message to users at a remote site
Security journal receiver management
Top 10 backup commands
Tracking critical file access in real time
Create an iSeries Access image and update it with the latest Service Pack

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

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
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