- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- telnet: tcp/telnet: unknown service
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 06:48 PM
02-08-2005 06:48 PM
telnet: tcp/telnet: unknown service
I am facing some problems on HPux 11.23 (PA risc) system.
I am unable to use any of the inted services (server/client). it fails with unknow service/.conntction refused error.
/var/adm/rc.log identifying all services are unknown.
Feb 9 12:11:42 banpchp7 inetd[855]: Configuration complete
Feb 9 12:40:48 banpchp7 inetd[855]: Going down on signal 15
Feb 9 12:40:51 banpchp7 inetd[11057]: Reading configuration
Feb 9 12:40:51 banpchp7 inetd[11057]: ftp/tcp: Unknown service
Feb 9 12:40:51 banpchp7 inetd[11057]: telnet/tcp: Unknown service
/etc/inetd.conf, /etc/services, /etc/protocols, /var/adm/inetd.sec looks fine for me. (telnet & ftp was shows as tcp6, but changing to tcp was no help to me.
/etc/inetd.conf: the line
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
is uncommented.
Thanks & regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 07:21 PM
02-08-2005 07:21 PM
Re: telnet: tcp/telnet: unknown service
If you 'egrep "ftp|telnet" /etc/services' do you get a positive response?
Regards - Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 07:29 PM
02-08-2005 07:29 PM
Re: telnet: tcp/telnet: unknown service
Yes.Here is the output. (I compared with another working system 11.23 IPF, I could not find any difference in services, protocols, inetd.conf files.
#egrep "ftp|telnet" /etc/services
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)
telnet 23/tcp # Virtual Terminal Protocol
tftp 69/udp # Trivial File Transfer Protocol
sftp 115/tcp # Simple File Transfer Protocol
bftp 152/tcp # Background File Transfer Protocol
ftp-ftam 8868/tcp # FTP->FTAM Gateway
Thanks,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 07:34 PM
02-08-2005 07:34 PM
Re: telnet: tcp/telnet: unknown service
change this line :
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
to this one :
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
then refresh inetd conf with "inetd -c" and retry a connection.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 07:55 PM
02-08-2005 07:55 PM
Re: telnet: tcp/telnet: unknown service
That is because I changed it back later.
Now again tested & found this change does not help.
In fact, all inetd services (both udp & tcp)shows unknown service error in /var/adm/syslog/syslog.log
from /etc/inetd.conf
----
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
from /var/adm/syslog/syslog.log
--------------------------------
Feb 9 12:40:51 banpchp7 inetd[11057]: Configuration complete
Feb 9 14:24:00 banpchp7 inetd[11057]: Rereading configuration
Feb 9 14:24:00 banpchp7 inetd[11057]: ftp/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: telnet/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: login/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: shell/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: exec/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: ntalk/udp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: auth/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: printer/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: daytime/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: daytime/udp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: time/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: echo/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: echo/udp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: discard/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: discard/udp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: chargen/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: chargen/udp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: kshell/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: klogin/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: dtspc/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: swat/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: hacl-probe/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: registrar/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: hacl-cfg/udp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: hacl-cfg/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: recserv/tcp: Unknown service
Feb 9 14:24:00 banpchp7 inetd[11057]: Configuration complete
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 08:21 PM
02-08-2005 08:21 PM
Re: telnet: tcp/telnet: unknown service
Just to check the obvious, what is the result of a 'll /usr/lbin/telnetd'?
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 08:36 PM
02-08-2005 08:36 PM
Re: telnet: tcp/telnet: unknown service
Here is the output,
bash-3.00# ll /usr/lbin/telnetd
-r-xr--r-- 1 bin bin 143360 Aug 27 06:55 /usr/lbin/telnetd
bash-3.00# telnet
telnet> open 172.22.43.15
telnet: tcp/telnet: unknown service
telnet> exit
?Invalid command
telnet> quit
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 08:43 PM
02-08-2005 08:43 PM
Re: telnet: tcp/telnet: unknown service
Could you post
# ll /etc/services
-r--r--r-- 1 bin bin 9560 Feb 7 12:03 /etc/services
# ll /etc/inetd.conf
-r--r--r-- 1 root sys 4489 Mar 10 2003 /etc/inetd.conf
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 09:06 PM
02-08-2005 09:06 PM
Re: telnet: tcp/telnet: unknown service
Here are they
bash-3.00# ls -l /etc/inetd.conf
-rw-r--r-- 1 root sys 4764 Feb 9 14:23 /etc/inetd.conf
bash-3.00# ls -l /etc/services
-r--r--r-- 1 bin bin 11655 Oct 25 23:40 /etc/services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 09:07 PM
02-08-2005 09:07 PM
Re: telnet: tcp/telnet: unknown service
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 09:16 PM
02-08-2005 09:16 PM
Re: telnet: tcp/telnet: unknown service
I could not attach /etc/inetd.conf. Here is it
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 09:26 PM
02-08-2005 09:26 PM
Re: telnet: tcp/telnet: unknown service
Yeah.That is correct. It is name service switch.
I did not create one /etc/nsswitch.conf , but wasusing NIS. NIS server cannot provide info on services as I did not create maps for services.
bash-3.00# ls -l /etc/nss*
-r--r--r-- 1 bin bin 566 Sep 3 2003 /etc/nsswitch.compat
-r--r--r-- 1 bin bin 391 Sep 3 2003 /etc/nsswitch.files
-r--r--r-- 1 bin bin 615 Sep 3 2003 /etc/nsswitch.hp_defaults
-r--r--r-- 1 bin bin 551 Sep 3 2003 /etc/nsswitch.nis
-r--r--r-- 1 bin bin 604 Sep 3 2003 /etc/nsswitch.nisplus
I created /etc/nsswitch.conf and it is working now.
Feb 9 15:56:07 banpchp7 inetd[852]: Reading configuration
Feb 9 15:56:07 banpchp7 inetd[852]: ftp/tcp: Added service, server /usr/lbin/ft
pd
Feb 9 15:56:07 banpchp7 inetd[852]: telnet/tcp: Added service, server /usr/lbin
/telnetd
Thanks for your great help
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 09:51 PM
02-08-2005 09:51 PM
Re: telnet: tcp/telnet: unknown service
James