Debian Codegraph @

interfaces

raw
1 #
2 # Note: interfaces has been superceded by freetds.conf, however it can
3 # continue to be used at sites that require compatibility with the
4 # Sybase implementation.
5 #
6 # This format of the interfaces file is this:
7 #
8 # The entry starts with the server name beginning in the first column
9 # (no whitespace preceding it).
10 #
11 # Next comes the services lines. They must be preceded by some
12 # whitespace (preferably a tab). There are five fields in the services
13 # line:
14 #
15 # 1) Service. Currently only "query" means anything "master" is
16 # present for historical reasons only.
17 #
18 # 2) Transport. Currently ignored by FreeTDS, it should be "tcp".
19 # When ipv6 support is added a second option of "tcp6"
20 # will probably be available.
21 #
22 # 3) Physical layer. Sybase uses this field for a description of the
23 # physical layer (usually "ether"), FreeTDS can also
24 # use it to specify the version of the protocol to use
25 # when connecting to the server.
26 #
27 # 4) Hostname. A hostname or IP address of the server machine.
28 #
29 # 5) Port. The TCP port on the server to connect to.
30 # Microsft SQL Server defaults to 1433.
31 #
32 # So putting it all together, let's say you have an NT box running a
33 # Microsoft SQL Server named "myserver" at ip address 10.0.2.1 and we
34 # are connecting using version 4.2 of the protocol, your interfaces
35 # entry would look like this: (without the comments)
36 #
37 #myserver
38 # query tcp 4.2 10.0.2.1 1433
39 #
40
41 # This is a Sybase hosted database server, if you are directly on the
42 # net you can use it to test.
43 JDBC
44 query tcp 5.0 192.138.151.39 4444
45 master tcp 5.0 192.138.151.39 4444
46
47 # The same server, using TDS 4.2. Used in configuration examples for the
48 # pool server, since the pool server supports only TDS 4.2.
49 JDBC_42
50 query tcp 4.2 192.138.151.39 4444
51 master tcp 4.2 192.138.151.39 4444
52
53 # The client connecting to the pool server will use this to find its
54 # listening socket. This entry assumes that the client is on the same
55 # system as the pool server.
56 mypool
57 query tcp 4.2 127.0.0.1 5000
58 master tcp 4.2 127.0.0.1 5000
59
60 #myserver
61 # query tcp ether 127.0.0.1 4000
62 # master tcp ether 127.0.0.1 4000
63 #
64 #myserver2
65 # query tcp ether 127.0.0.1 4001
66 # master tcp ether 127.0.0.1 4001