<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Sybase_Packet_Trace</id>
	<title>Sybase Packet Trace - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Sybase_Packet_Trace"/>
	<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Sybase_Packet_Trace&amp;action=history"/>
	<updated>2026-05-13T10:34:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-beta</generator>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=Sybase_Packet_Trace&amp;diff=2063&amp;oldid=prev</id>
		<title>Egge: New page: Sometimes it&#039;s useful to view all the data being sent and received from a Sybase installation.  Depending on the hardware one may be able to directly run a packet sniffer to view the traff...</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Sybase_Packet_Trace&amp;diff=2063&amp;oldid=prev"/>
		<updated>2009-02-23T22:08:10Z</updated>

		<summary type="html">&lt;p&gt;New page: Sometimes it&amp;#039;s useful to view all the data being sent and received from a Sybase installation.  Depending on the hardware one may be able to directly run a packet sniffer to view the traff...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sometimes it&amp;#039;s useful to view all the data being sent and received from a Sybase installation.  Depending on the hardware one may be able to directly run a packet sniffer to view the traffic.  Alternatively, one can run the traffic through a TCP tracing utility.&lt;br /&gt;
&lt;br /&gt;
To do this, first one needs a transparent TCP proxy.  I happen to like Balance from Inlab software http://www.inlab.de/balance.html .  I like to run balance on a different machine from the DB server, and run on the same port.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
balance -pf 1394 dbserver:1394 &amp;gt; /tmp/packets.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this is setup, you need to modify the client.  For Java, the connection properties usually include a server and port, so this is easy to change.  For programs using Sybase&amp;#039;s CTLib, they expect to find an interface file in Sybase&amp;#039;s home directory.  Assuming you don&amp;#039;t want to or can&amp;#039;t change that file, one can easily make a copy of the Sybase directory.  Since this can be quite large, and we only need to modify one file, we can just create symlinks to the original files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir sybase&lt;br /&gt;
cd sybase/&lt;br /&gt;
for f in `ls /opt/sybase/ase/12.5.3.0.13325`; do ln -s $f; done&lt;br /&gt;
# now make a real copy of the interfaces file&lt;br /&gt;
cp interfaces interfaces2&lt;br /&gt;
mv interfaces2 interfaces&lt;br /&gt;
chmod 644 interfaces&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Depending on the format of the interfaces file, one may be able to edit it a text editor, or one may need to use the dscp command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$SYBASE/OCS-12_0/bin/dscp&lt;br /&gt;
&amp;gt;&amp;gt; ?&lt;br /&gt;
&lt;br /&gt;
help, h, ? -- This screen.&lt;br /&gt;
&lt;br /&gt;
open [DSNAME] -- Open a session for the default directory service, or the DSNAME directory service.&lt;br /&gt;
&lt;br /&gt;
close [SESS] -- Close the session numbered SESS, or the current one.&lt;br /&gt;
&lt;br /&gt;
sess -- List all the sessions.&lt;br /&gt;
&lt;br /&gt;
[switch] SESS -- Make session numbered SESS the current session.&lt;br /&gt;
&lt;br /&gt;
add SERVER_NAME -- Add a new server object to the directory service.&lt;br /&gt;
&lt;br /&gt;
read SERVER_NAME -- Read the content of a server object.&lt;br /&gt;
&lt;br /&gt;
mod SERVER_NAME -- Modify an existing server object.&lt;br /&gt;
&lt;br /&gt;
addattr SERVER_NAME -- Add an attribute to an existing server object.&lt;br /&gt;
&lt;br /&gt;
del SERVER_NAME -- Delete an existing server object.&lt;br /&gt;
&lt;br /&gt;
list [all] -- List all the server objects.&lt;br /&gt;
&lt;br /&gt;
copy NAME1 to { SESS NAME2 | SESS | NAME2 } -- Copy the object NAME1 to a new object NAME2 in the session numbered SESS, or the current session.&lt;br /&gt;
&lt;br /&gt;
copyall to SESS -- Copy all the server objects in the current session to the session numbered SESS.&lt;br /&gt;
&lt;br /&gt;
delete-all -- Delete all the server objects in the current session.&lt;br /&gt;
&lt;br /&gt;
config -- List the current configuration.&lt;br /&gt;
&lt;br /&gt;
exit, quit -- Exit program.&lt;br /&gt;
&amp;gt;&amp;gt; open&lt;br /&gt;
ok&lt;br /&gt;
FailOver to Interface Driver.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; read MYDB&lt;br /&gt;
&lt;br /&gt;
DIT base for object:  interfaces&lt;br /&gt;
  Distinguish name: MYDB&lt;br /&gt;
  Server Entry Version: 1&lt;br /&gt;
  Server Name: MYDB&lt;br /&gt;
  Server Service: SQL Server&lt;br /&gt;
  Server Status: 4 (Unknown)&lt;br /&gt;
  Server Address: &lt;br /&gt;
    Transport Type: tli tcp&lt;br /&gt;
    Transport Address: dbserver 1394&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; mod MYDB&lt;br /&gt;
Address:&lt;br /&gt;
    Transport Type: [tli tcp] &lt;br /&gt;
    Transport Address: [dbserver 1394] proxyserver 1394&lt;br /&gt;
    Transport Type: [] &lt;br /&gt;
Modified MYDB&lt;br /&gt;
&lt;br /&gt;
Session 1 InterfacesDriver&amp;gt;&amp;gt; close&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, fire up your client, and all your traffic will be logged.&lt;br /&gt;
&lt;br /&gt;
[[Category:Sybase]]&lt;/div&gt;</summary>
		<author><name>Egge</name></author>
	</entry>
</feed>