PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: "Unknown network type found in interface file"
Date: Jan 12 2001 1:20AM

Mike.Sklar@msdw.com writes:
 > 
 > Hi,
 > 
 > Running perl 5.00503, sybperl-2.13, redhat 6.2, 
 > sybase-openclient-11.1.1-1.
 > 
 > I see this message when executing a perl script on the 
 > linux box:
 > 
 > "DB-Library error: Unknown network type found in interface file."
 > 
 > Seems to work fine on a Solaris 2.5.1 box running perl 5.004_04, 
 > sybperl-2.10-3, and sybase-openclient-10.0.4.4.
 > 
 > The interface line in question:
 > 
 > ##
 > ## NYP_RISK11 on ny51db01:7024  (primary)
 > ##
 > NYP_RISK11
 >         query tli tcp /dev/tcp \x00021b70900e4f2f0000000000000000
 > 

Linux OC doesn't use the tli network type.

You need to convert the above to something like this

NYP_RISK11
	query tcp ether  

1b70900e4f2f in the line above is the port followed by the IP address
followed by the port, like so:

1b70 90 0e 4f 2f

7024 144.14.79.47

Michael
-- 
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com