Jack:

I have to extrapolate from my knowledge of Linux here a little, but ...

/etc/services simply =names= the services and equates them to a port and
protocol.  

The file usually known as /etc/inetd.conf (you said "inetd.config"?) tells
inetd which ports to listen on, and when an incoming connection is made on 
one of those ports which program to start and pass the socket to. 

The problem I see is that you refer to a service called "otelnet" that is
=not= defined in /etc/services.  (I think you need to change "telnet" to
"otelnet" in /etc/services.)

The TCPIP.PROFILE (or whatever it's called on your system) data set should 
also have:

    4023 TCP OMVS                ; TELNET SERVER    

to cause TCP/IP to reserve the port for the service you assigned to it.

I don't know if it is possible to invoke an actual tn3270 daemon from inetd, 
but I can tell you that the Vista 3270 client that I use works fine as a 
telnet client with the otelnet daemon (for a usual telnet session).

--Art


At 10:55 AM 3/2/2006, Jack Kelly wrote:
  
>I was trying to get inetd to take control for telnet sessions (otelnetd 
>and/or tso telnet) but so far I can only get vtam (msg10) to get control. 
>Netstat show mvs tcpip task listening on port 23 (from tcp profile). inetd 
>is listing on port 513 and 540 (from /etc/services).
>
>I?ve removed the intclien from port 23 tcp profile as well as the port 23 
>from the telnetparms, I?ve added port 4023 as inetd in the mvs tcp 
>profile, I?ve added port 4023 as tcp in /etc/services but still no 
>luck.lots of different errors, the current set from the attached 
>configuration is:
>
>inetd.16777834.: FOMN0080 *:otelnet/tcp: getaddrinfo: EDC9508I The service 
>passed was not recognized for the specified socket type.
>
>telnetd.83886697.: EZYTU34I id 50008 pri 3 call getpeername 
>(0,8C69718,8C69710->128) code 451 reason 110D0223 h_errno N/A
>
>r/c451 is 
>ENOTSOCK 
> Socket operation on a non-socket. 
>
>/etc/inetd.config is
>
>#======================================================================
># service | socket | protocol | wait/ | user | server  | server program
># name    | type   |          | nowait|      | program |   arguments
>#======================================================================
>#
>otelnet   stream tcp nowait OMVSKERN /usr/sbin/otelnetd otelnetd -l
>#shell    stream tcp nowait OMVSKERN /usr/sbin/orshd    orshd    -LV
>login     stream tcp nowait OMVSKERN /usr/sbin/rlogind  rlogind  -m
>#exec     stream tcp nowait OMVSKERN /usr/sbin/orexecd  orexecd  -LV
>#
>uucpd     stream tcp nowait UUCPD    /usr/sbin/uucpd    uucpd    -10
>
>snips from /etc/services are
>
>ftp             21/tcp
>#telnet          23/tcp
>telnet          4023/tcp
>smtp            25/tcp 
>
>login           513/tcp
>who             513/udp
>
>uucp            540/tcp
>
>the mvs tcp profile snips are
>
>TELNETPARMS
>    PORT 23
>
>PORT
>      7 UDP MISCSERV            ; Miscellaneous Server
>      7 TCP MISCSERV
>      9 UDP MISCSERV
>      9 TCP MISCSERV
>     19 UDP MISCSERV
>     19 TCP MISCSERV
>     20 TCP OMVS      NOAUTOLOG ; FTP Server
>     21 TCP FTPD1               ; FTP Server
>     22 TCP SSHD1               ; FTPS-UNIX
>     23 TCP INTCLIEN            ; TELNET SERVER-MVS
> ;   23 TCP INETD4 BIND 156.132.10.15
> ;   23 TCP INETD               ; TELNET SERVER-UNIX
> ;   23 TCP OMVS                ; TELNET SERVER-UNIX
>     25 TCP SMTPD               ; SMTP Server



==================================================
Art Celestini       Celestini Development Services
Phone: 201-670-1674                    Wyckoff, NJ
=============  http://celestini.com  =============
Mail sent to the "From" address  used in this post
will be rejected by our server.   Please send off-
list email to:  ibmmain<at-sign>celestini<dot>com.
==================================================

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to