Firebird 1.5.x. Blackbox.

Hi,
Last time I have been forced to administrate Firebird in version 1.5. My main problem was that lack of knowledge what this system actually is doing, what kind of SQL is executed, which machines request server to response. Unfortunatelly, my internet explorations about this gave me clear answer: Firebird in this version is “blackbox”.

My own solution to this inconvenience was operating system tool called strace and thanks to these instructions I was able to see much more…

pgrep -u firebird -f fbserver | xargs strace -s 512 -v -tt -e trace="accept,recv,select" \
-o /tmp/strace-fbserver -p ;
tail -f /tmp/strace-fbserver | sed 's/\\0//g' | sed 's/\\//g' | \
grep -e "select\|execute"

While reading some articles about MySQL I found a very interesting solution on base of view of network traffic. Source: mysqlperformanceblog

tcpdump -i eth0 -s 0 -l -w - dst port 3050 | strings | perl -e '
while(<>) { chomp; next if /^[^ ]+[ ]*$/;
if(/^(SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER)/i) {
if (defined $q) { print "$q\n"; }
$q=$_;
} else {
$_ =~ s/^[ \t]+//; $q.=" $_";
}
}'
  1. on my linux boxes i have used wireshark
    and configured to listen on port 3050
    that is a solution too

    • SD
    • July 24th, 2010

    Your internet explorations were strange, because you failed to find FBScanner…

  2. FBScanner is not a part of the FireBird server. I knew FBScanner but I had needed simplest solution which give me also another information about the process. So, Firebird 1.5.x, itselfs is a blackbox.

  1. July 16th, 2010