*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> bthost (1)              
Title
Content
Arch
Section
 

BTHOST(1)

Contents


NAME    [Toc]    [Back]

     bthost -- look up Bluetooth host names and Protocol Service Multiplexor
     values

SYNOPSIS    [Toc]    [Back]

     bthost [-bhp] host_or_protocol

DESCRIPTION    [Toc]    [Back]

     The bthost utility looks for information about Bluetooth hosts and Protocol
 Service Multiplexor (PSM) values.  It gets this information from the
     /etc/bluetooth/hosts and /etc/bluetooth/protocols files.

     In host mode it simply converts between host names and Bluetooth
     addresses.  The argument can be either host name or Bluetooth address.
     The program first attempts to interpret it as Bluetooth address.  If this
     fails, it will treat it as host name.  A Bluetooth address consists of
     six hex bytes sparated by column, e.g. 01:02:03:04:05:06.	A host name
     consists of names separated by dots, e.g. my.cell.phone.

     In protocol mode it simply converts between Protocol Service Multiplexor
     names and assigned numbers.  The argument can be either Protocol Service
     Multiplexor name or assigned number.  The program first attempts to
     interpret it as assigned number.

     The options are as follows:

     -b      Produce brief output.

     -h      Display usage message and exit.

     -p      Activate protocol mode.

     The bthost utility will print results to the standard output and error
     messages to the standard error.  You may see output of different kinds.
     Here is an example that shows all of them:

	   % bthost localhost
	   Host localhost has address FF:FF:FF:00:00:00
	   % bthost ff:ff:ff:00:00:00
	   Host FF:FF:FF:00:00:00 has name localhost
	   % bthost -b localhost
	   FF:FF:FF:00:00:00
	   % bthost -b ff:ff:ff:00:00:00
	   localhost
	   % bthost do.not.exists
	   do.not.exists: Unknown host
	   % bthost 0:0:0:0:0:0
	   00:00:00:00:00:00: Unknown host
	   % bthost -p sdp
	   Protocol/Service Multiplexor sdp has number 1
	   % bthost -p 3
	   Protocol/Service Multiplexor rfcomm has number 3
	   % bthost -bp HID-Control
	   17
	   % bthost -p foo
	   foo: Unknown Protocol/Service Multiplexor

FILES    [Toc]    [Back]

     /etc/bluetooth/hosts
     /etc/bluetooth/protocols

DIAGNOSTICS    [Toc]    [Back]

     The bthost utility exits 0 on success, and >0 if an error occurs.

SEE ALSO    [Toc]    [Back]

      
      
     bluetooth(3), bluetooth.hosts(5), bluetooth.protocols(5)

AUTHORS    [Toc]    [Back]

     Maksim Yevmenkin <m_evmenkin@yahoo.com>


FreeBSD 5.2.1			  May 8, 2003			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
bluetooth.protocols FreeBSD Bluetooth Protocol Service Multiplexor database
krb.realms Tru64 Contains configuration information that associates host names with realm names
MrmRegisterNames IRIX Registers the values associated with the names referenced in UIL (for example, UIL callback function names or
MrmRegisterNames HP-UX Registers the values associated with the names referenced in UIL (for example, UIL callback function names or
bluetooth.hosts FreeBSD Bluetooth host name database
ng_hci FreeBSD Netgraph node type that is also a Bluetooth Host Controller Interface (HCI) layer
ng_l2cap FreeBSD Netgraph node type that implements Bluetooth Logical Link Control and Adaptation Protocol (L2CAP)
getipnodebyname Linux get network host names and addresses
host FreeBSD look up host names using domain server
hosts Linux The static table lookup for host names
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service