:


      
/etc/ttytab

ttya "/usr/etc/getty std.9600" vt100  on local secure
ttyb "/usr/etc/getty std.9600" dialup on remote

std.9600 -      
/etc/gettytab


   

   carrier (  
     )

   ttysoftcar -n ttya

     /etc/rc -   :

   /usr/etc/ttysoftcar -a 2> /dev/null

    /etc/ttytab,  local,  ,
  remote -     .

  dialup ()   cua* , 
 =  tty* + 128

 ls -al /dev/ttya /dev/cua0
crw-rw---- 1 root  uucp  12,   0  Mar 30 07:21 /dev/ttya
crw-rw---- 1 root  uucp  12, 128  Mar 30 07:21 /dev/cua0

     /etc/ttytab
cua0 "/usr/etc/getty std.9600" unknown off remote

   /usr/bin/tip
       /etc/remote
  tip [ -speed ] hostname | phone-number ]



     
http://members.tripod.com/Vitaly_Filatov/faq/faq_index.html


/dev/term/N  /dev/cua/N

        
  /dev/term/N  /dev/cua/N,  N -   -   .
        -  
 .

  ,        Solaris 2.x
(SVR4),  -      Solaris 1.x (BSD-UNIX).

 

   /dev/term  /dev/cua      
(soft-links)    ,   
 /devices.

    ls:

# ls -lL /dev/term/* /dev/cua/*
crw-------    1 lp     sys      29,     0 Jul  6 14:31 /dev/term/a
crw--w----    1 uucp   tty      29,     1 Mar 10 12:14 /dev/term/b
crw-rw-rw-    1 root   sys      29,131072 Jul  6 14:31 /dev/cua/a
crw-rw-rw-    1 uucp   7152     29,131073 Jul 10 12:14 /dev/cua/b
                                ^^ ^^^^^^
                                |    |
Major Device Number -------------    |
Minor Device Number ------------------

,      (Major Device Number)  
  (Minor Device Number)    
,      , 
     .

   -   -    
. ,       
  ,     -   .
     .

   , ,    . 
     (linking)    
 .

   /dev/term/N,    
 ,   ,     
    .    /dev/cua/N,
   - ,    /dev/term/N,   ,
       "1".    ,   Solaris 2.x
(SunOS 5.x)      131072,   Solaris 1.x (SunOS
4.x)  128.     ,   , 
     Solaris 2 ,   Solaris 1.

    ls   Solaris 2.x, ,  
/dev/term/b  /  29  1,     , 
   /dev/cua/b     29  
 1 + 131072 = 131073.

    

 ,    ,     
 . ,        Solaris
2.x,         (boot -r).

  Solaris 2.x  Solaris 1.x   
 

       Solaris 2.x  Solaris 1.x 
.   /dev/term/[0123...]  Solaris 1.x  
/dev/tty[abcd...],   /dev/cua/[0123...]  /dev/cua[abcd...].

   ?

 Solaris 2.x  /dev/term/N   /dev/cua/N     
    "boot -r".

 Solaris 1.x   /dev/term/tty*   . 
     /dev/cua*  
mknod(8).   "Adding a Modem to your System"   11  "Solaris 1.x
System and Network Administration Guide".

 -   /dev/term/N  /dev/cua/N?

         /dev/term/N, 
   :    Data Carrier Detect
(DCD).  DCD    8 25- 
 .    ,     
      DCD.  
  DCD,       
 .      " " (hardware
carrier):     ""  
   .

    .  ttymon/getty    (
     truss)   ,   
    DCD.    ttymon   
    "login: "    login.   
  ,  DCD     ,  ,
       ttymon/getty   
     .

,   ,        
/dev/cua/N,          
DCD.     " " (software carrier), 
  DCD     ,
    .

 ,         ,   
  .     ttymon/getty  ""  /dev/term/N 
     ,      
    /dev/cua/N  ,     
  ,        (
dev/cua/N          
/dev/term/N  ).

   " "

 /dev/term/N     ,   
  DCD    .

    ,       
,       , 
        /.
    "software carrier"    
   /dev/term/N,   Serial Port Manager 
 admintool,    Solaris  2.3  .  
        
  ,        
 ,     DCD.

   Solaris 1.x    "local"   
 /etc/ttytab.

     /dev/cua/N , 
  " ",  ,    
 -,      /dev/term/N - 
       DCD   (  8
25-   ).

  ,      ,    
,    ,  -    
    .



Copyright  1996 Sun Microsystems, Inc., 2550 Garcia Ave., Mtn. View, CA 94043-1100 USA.
All rights reserved.
: Copyright © 1996   All Rights Reserved.



  Sun

1.    Sun.    A  B  , 
   ""  c  
1-8  20.           A  B
 (,  SPARC Station 10, Classic/LX  . .)   
     B,      
(p/n X985A).

2.   root     eeprom:

        eeprom ttya-ignore-cd=false  (  A)



        eeprom ttyb-ignore-cd=false  (  B)

  halt ,   ,   
eeprom    printenv.    boot  b. 
 root.

3. ,   getty        
.    :

        ps -aux | grep getty

    :

        root  308  0.0 0.0 40 0  a IW 13:38 0:00  - cons8 ttya (getty)

  ,   "/etc/ttytab"    "#"  
  , :

        #ttya   "/usr/etc/getty cons8"  wyse50  on local secure

   "kill -HUP 1",   . ,  
     ps,    .

4.      "/etc/gettytab".    
   :

        #
        # Modem dial-in getty entries
        #
        D38400|Fast-Dial-38400: :sp#38400:p8:ms=crtscts:
        D19200|Fast-Dial-19200: :sp#19200:p8:ms=crtscts:
        D9600|Fast-Dial-9600:   :sp#9600:p8:ms=crtscts:

 "p8"      :  8
, 1  ,   ,     .  
 "p8",    ,   Sun  :  7 , 1
 ,   even.  "ms=crtscts"  
        .
  ,  Sun     
 : 2400, 9600, 19200  38400.

5.   "/etc/ttytab":

        ttya    "/usr/etc/getty D9600"  dialup  on remote secure
           ^                      ^
           |                      |_____  D9600, D19200, D38400
           |                                
           |                            .      
           |                            "/etc/gettytab"/
           |____  ttyb,      B.

6.       (dialout),    :

        cd /dev
        mknod cua0 c 12 128
        mknod cua1 c 12 129
        chmod 666 cua0 cua1
        chown uucp cua0 cua1

   "/dev/cua0"  ttya ( A)  "/dev/cua1"  ttyb ( B).

7.  :

        /usr/etc/ttysoftcar -n ttya

      . 
   getty     
 Carrier Detect.      ""   
,   ,   getty - .  , 
   3.

 

         
  Sun.     ,  
  -      .
 A       . 
,       ,   
       .  
   :

1.         tip.  :

a.   "/etc/remote"      ,
  "hardwire:\"

  A:
hardwire:\
        :dv=/dev/cua0:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
modem1:\                        <---    
      :dv=/dev/cua0:br#9600:
                       ^
                       |_____  *
                               - ,   ,
                               getty.   ttytab
                              D9600,    
                              br#9600.
  B:
hardwire:\
        :dv=/dev/cua0:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
modem1:\                        <---    
      :dv=/dev/cua1:br#9600:
                       ^
                       |_____  *
                               -    ,
                               getty.   ttytab
                              D9600,    
                              br#9600.

*      28.8k,      38400;
   14.4k  19200,     9600  9600.

b.    "/etc/remote"      , 
shelltool      :

        tip modem1      (  shelltool    !)

    "connected".      ,
, "all ports busy" -      "/etc/remote".

c. ,     . :

        AT

       "OK".

:   ,     tip   shelltool  
 .          
     (CR).

2.  .  :

a.    A      .  
,   dip  ,  ,   
   . ,   US Robotics Courier
:

        AT&F1&B1&C1&D2X0S0=1&W

b.      ,     
        

c.   ,    "tip"  :

        ~.

(" ",     "~"  ".")

  Login

    getty,    login  .

1.    getty (login service),   :

        kill -HUP 1

2. ,   getty :

        ps -aux | grep getty

  , , :

        root  557  0.0 0.0  40    0  co IW 09:02  0:00 - cons8 console (getty)
        root  558  0.0 0.0  40    0  a  IW 09:02  0:00 - D9600 ttya (getty)
        root  596  0.0 1.6  32  196  p1 IW 09:51  0:00 grep getty

 558 -  getty   login service  .

 Sun  

,     DTR (Data Terminal Ready).  
 DTR,    .  DTR    -
   .

   CD (Carrier Detect).    CD
     Carrier Detect   . 
 , -      , 
      .

        ,     .

      .   
   -     Sun/UNIX .

 Sun        
.        ,  .

 A

  

         
 (dialin  dialout).

Hayes Optima/Acura:

        AT&FN0Q2X0&C1&D2S0=1&W

US Robotics Courier:

        AT&F1&B1&C1&D2X0S0=1&W

         dip-:
                Switch          Settings
                1               OFF
                2               OFF
                3               ON
                4               OFF
                5               ON
                6               OFF
                7               ON
                8               ON
                9               OFF
                10              OFF

US Robotics Sportster:

        AT&F1&B1&C1&D2X0S0=1&W

         dip-:
                Switch          Settings
                1               OFF
                2               OFF
                3               ON
                4               OFF
                5               OFF
                6               OFF
                7               OFF
                8               ON

Telebit:

         WorldBlazer, T3000  T1600:
                AT &F3 E1 X0 &S0 S2=255 S45=255 S48=0 S58=2 &W
                AT S0=1 S59=15 S68=255 S111=255 S180=2 &C1 &W

         T2500, TrailBlazer Plus, T2000  T1000:
                AT &F X0 Q4 S45=255 S48=1 S51=254 S52=2 S54=3 &W
                AT S0=1 S58=2 S64=1 S66=1 S95=2 S97=1 S106=1 S131=1 &W

GVC 288 V.34:

        AT&F2E0Q1S0=1&C1&D2&W&W1

Black Box Corporation, Modem 144FX:


        ATN0S37=0S0=1Q1&C1&D2&K3&W

 B

     

1.     Sun       
 ""

    ,      
     Sun  .  
   ,     Sun.  
      tip    .
    .    tip 
-     ttytab  getty.

2.       ,  
,         CALL FAILED

   - ,       
-     /  .  
         - 
.    .    S7
.      .   
.

3.    "all ports busy"   tip?

-    .       tip,
 lp,  getty ,    ,  tip/cu.  ,
:
a. -  ,   .
.     DCD.     ,
 Data Carrier Detect   ,     
.        .
  getty      .

4.    "permission denied or link down"   tip?

,      "dv=/dev/cua0"  "dv=/dev/cua1"   /etc/remote.
    *.LCK   /var/spool/locks  
 .      /dev/cua0  /dev/cua1   .

5.          


  .     , 
 Data Carrier Detect   ,     
.        .

6.       tip

  . ,     .  ,
 tip    shelltool   ,    cmdtool,  
.

7.    Sun    

  . ,     
 (  S0=1). ,    DTR  TR , 
   Data Terminal Ready   Sun.

8.  "Login:" 

   , ,   "Logn:"  "Logi"   
    ,      
"Control-J".    ,  
  8 , 1  ,   .

9.  :    

     .   terminal/tip 
,     getty.

10.   "login:"

, ,  - ,   getty     
   getty.     getty,   
     .     ,
    getty.



Copyright  1996 Sun Microsystems, Inc., 2550 Garcia Ave., Mtn. View, CA 94043-1100 USA.
All rights reserved.
: Copyright © 1996   All Rights Reserved.


Last-modified: Tue, 18 Sep 2001 19:04:29 GMT
: