Locates database servers on the TCP/IP network.
dblocate [ options ] [ server-name ]
Option | Description | ||
---|---|---|---|
@data |
Reads in options from the specified environment variable or configuration file. See Using configuration files. If you want to protect passwords or other information in the configuration file, you can use the File Hiding utility to obfuscate the contents of the configuration file. See File Hiding utility (dbfhide). |
||
-d |
Lists the server name and address, for each server found, followed by a comma-separated list of databases running on that server. If the list exceeds 160 characters, it is truncated and ends with an ellipsis (...). Databases that are running on SQL Anywhere 9.0.2 and earlier database servers or that were started with the -dh database option are not listed. See -dh database option. |
||
-dn database-name |
Lists the server name and address, for servers running a database with the specified name. If the list exceeds 160 characters, it is truncated and ends with an ellipsis (...). Databases that are running on SQL Anywhere 9.0.2 and earlier database servers or that were started with the -dh database option are not listed. See -dh database option. |
||
-dv |
Displays the server name and address, for each server found, listing each database running on that server on a separate line. The list is not truncated, so this option can be used to reveal lists that are truncated when the -d option is used. Databases that are running on SQL Anywhere 9.0.2 and earlier database servers or that were started with the -dh database option are not listed. See -dh database option. |
||
-n | Lists IP addresses in the output, rather than computer names. This may improve performance since looking up computer names may be slow. | ||
-o filename | Writes output messages to the named file. | ||
-p port-number | Displays the server name and address only for servers using the specified TCP/IP port number. The TCP/IP port number must be between 1 and 65535. | ||
-q | Runs in quiet mode—messages are not displayed. | ||
-s name | Displays the server name and address only for servers with the specified server name. If this option is used, the -ss option should not be used (if both options are used, it is likely that no matching servers will be found). | ||
-ss substr | Displays the server name and address only for servers that contain the specified substring anywhere in the server name. If this option is used, the -s option should not be used (if both options are used, it is likely that no matching servers will be found). | ||
-v |
Displays the full server name. By default, dblocate truncates database server names that are longer than 40 bytes. Version 9.0.2 and earlier clients, including dblocate, cannot connect to version 10.0.0 and later database servers with names longer than 40 bytes. |
||
server-name |
Lists only database servers running on the computer with the specified IP address or host name. For example, the following command looks for servers on the computer jfrancis:
The hostname or IP address can be of any format, regardless of whether -n is specified. For example, consider a server is
running on myhost.mycompany.com, which has an IP address of 1.2.3.4. To list only servers running on this computer from any
computer with the mycompany.com domain, any of |
The Server Enumeration utility (dblocate) locates any SQL Anywhere database servers running over TCP/IP on the immediate network, and prints a list of the database servers and their addresses. This list includes alternate server names. See -sn database option.
Depending on your network, it may take several seconds for dblocate to prints its results.
If a database server is using a TCP/IP port other than 2638 on Mac OS X, dblocate will not find it, even if the -p option is used to specify the TCP/IP port. See ServerPort protocol option [PORT].
Exit codes are 0 (success) or non-zero (failure). See Software component exit codes.
The database server can register itself with an LDAP server, which keeps track of all servers in an enterprise. This allows both clients and dblocate to find them, regardless of whether they are on a WAN or LAN, through firewalls, and without specifying an IP address. LDAP is only used with TCP/IP, and only on network servers. See Connecting using an LDAP server.
If the same database server name is found more than once, dblocate displays the IP address of each host, even if the -n option is not specified. The same server name could be found in cases where a server is running on a computer with multiple IP addresses (for example, if the computer has multiple network cards), or if a network server is running on a remote computer and a personal server with the same name is running on the local computer.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |