Operating System - HP-UX
1833784 Members
2659 Online
110063 Solutions
New Discussion

Re: Help an HP Newbie :^)

 
Dave Goodwin_1
Advisor

Help an HP Newbie :^)

We've got an rx2600 on loan to gain some experience with HP/UX. I've gone through the automatic setup script for the factory installed software and the machine is running and can be connected to on the serial console. I have a few problems however...

1. I cannot telnet to the box. Connections are immediately closed. The screen output looks like this:

Trying...
Connected to 172.18.10.197.
Escape character is '^]'.
Local flow control off
Connection closed by foreign host.

I can telnet successfully on port 25 to the SMTP server, so the daemon is started and listening. I can't find any of the security-related files I've seen mentioned in other posts so I'm not sure where to go from here. Does Telnet "require" reverse DNS, because that leads to issue number 2.

2. DNS seems not to be working well. Trying to telnet to either localhost or the hostname fails with an unknown host error. The IP addresses work, but with the error as described above. Using nslookup results in a successful resolution, but only after the "looking up FILES" line, which implies it's getting the info only from the host file. I can ping the DNS server from the HP machine, but I can't resolve to it. Ping fails if I try to ping the DNS box by name.

Any thoughts are more than welcome :^)

Dave
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Help an HP Newbie :^)

Checklist

/etc/inetd.conf

If the telnetd line is commented out, telnet will not be allowed. Uncomment, save, inetd -c will reload.

also look for /var/adm/inetd.sec and see if there are deny's for telnet. Comment them out, carefully and try again.

This is a good start.

SEP

Telnet is an inherently insecure protocol,sending its passwords across the network in clear text.

Long term, you are better off with free secure shell.

Here is a link, attached is a cookbook telling how to use it.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Dvorchak
Honored Contributor

Re: Help an HP Newbie :^)

I don't know about the first question but maybe related to the DNS issue. HPUX uses /etc/resolv.conf, /etc/hosts and /etc/nsswitch.conf files for name resolution. In order for it all to work you have to edit or create /etc/resolv.conf and put in it your domain name and nameserver address(s) like this:

domain yourdomain.com
nameserver 123.123.123.1
nameserver 123.123.123.2

of course replacing the domain name and server addresses with the real ones.

Then look for /etc/nsswitch.conf if none exists look for /etc/nsswitch.hp_default etc. and cp /etc/nsswitch.hp_defaul to /etc/nsswitch.conf. That will get the system looking in DNS first, NIS second and files (/etc/hosts) lastly.

All of the above takes effect immediately so you don't need to shutdown anything or restart anything.
Good luck
If it has wheels or a skirt, you can't afford it.
Michael Steele_2
Honored Contributor

Re: Help an HP Newbie :^)

Gather up your LAN information, default gateway, DNS, NIS, NTP, hostname and ip of all including the server and verify them in:

set_parms initial

This will list current information and prompt you for changes.

It???s all automatic so you don't have to go fishing around looking at files.

Now, test for connectivity to the default gateway and a PC or another server where you can start a telnet session. Now try telnet.
Support Fatherhood - Stop Family Law