版次注意事項


10.23 PING (new command)

PING

Tests the network response time of the underlying connectivity between a client and a database server where DB2 Connect is used to establish the connection.

Authorization

None

Required Connection

Database

Command Syntax

                           .-time-.
                      .-1--+------+---------------------.
>>-PING---db_alias----+-+-----------------------------+-+------><
                        '-number_of_times--+-------+--'
                                           +-times-+
                                           '-time--'
 

Command Parameters

db_alias
Specifies the database alias for the database on a DRDA server that the ping is being sent to.

Note:
This parameter, although mandatory, is not currently used. It is reserved for future use. Any valid database alias name can be specified.

number of times
Specifies the number of iterations for this test. The value must be between 1 and 32767 inclusive. The default is 1. One timing will be returned for each iteration.

Examples

To test the network response time for the connection to the host database server hostdb once:

   db2 ping hostdb 1
or: 
   db2 ping hostdb

The command will display output that looks like this:

   Elapsed time: 7221 microseconds

To test the network response time for the connection to the host database server hostdb 5 times:

   db2 ping hostdb 5
or:
   db2 ping hostdb 5 times

The command will display output that looks like this:

   Elapsed time: 8412 microseconds
   Elapsed time: 11876 microseconds
   Elapsed time: 7789 microseconds
   Elapsed time: 10124 microseconds
   Elapsed time: 10988 microseconds

Usage Notes

A database connection must exist before invoking this command, otherwise an error will result.

The elapsed time returned is for the connection between the client and a DRDA server database via DB2 Connect.


[ 頁面頂端 | 前一頁 | 下一頁 | 目錄 | 索引 ]