The ports that are scanned by the autodiscover process are defined in the file “autodiscover_ports.txt” which is located in the “[dbWatch Server]/server/resources/” catalog.
It contains an xml like syntax that defines a set of ports/port ranges for each supported DBMS type in the following way:
<dbms> <name>oracle</name> <ports> <port>1520-1527</port> <port>5633</port> <port>5635</port> </ports> </dbms>
As you see, a dbms tag contains:
- A name defining the dbms type (legal values: “oracle”, “sqlserver”, “sybase”, “mysql”, “postgres”, “mysql”).
- A ports tag with a set of port tags. Each port tag can define a port range (f.ex 1520-1527), or a single port (f.ex 1521).
The dbms tags are contained in an enclosing port-def tag, so the file will look like this:
<port-def> <dbms> <name>oracle</name> <ports> ... </ports> </dbms> <dbms> <name>sqlserver</name> <ports> ... </ports> </dbms> ... </port-def>