Operating System - HP-UX
1833882 Members
2220 Online
110063 Solutions
New Discussion

Re: connection problems...

 
millsm
Advisor

connection problems...

something has changed. I can no longer print and ftp can no longer find the names of servers. any ideas?

$ftp .
ftp: .: Host name lookup failure
ftp> bye
$lpstat ibm2
connection to ibm2 is down
$ping ibm2
PING ibm2: 64 byte packets
64 bytes from 55.92.250.122: icmp_seq=0. time=2. ms
64 bytes from 55.92.250.122: icmp_seq=1. time=2. ms
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: connection problems...

Shalom,

Few possible answers.

1) A firewall may be blocking access to ftp. Check /var/adm/syslog/syslog.log for evidence that there was a connection. tcpdump port 20-21 may also help.

2) See the the ftp service, normally run by inetd is running. vi /etc/inetd.conf check the configuration of the ftpd server. inetd -c to restart.

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
Reshma Malusare
Trusted Contributor

Re: connection problems...

Hi Millsm,
1>First check /etc/hosts for host name resolution.
2>Also check for firewall,whether it is allowing connection to take place or not.

For Ftp:
For enabling FTP & its use. Please refer following points:
1> /etc/services --> The used must be registered in the /etc/services file.Also,check for port 21 as it is used for FTP.
2> /etc/inetd.conf -->The Internet daemon accesses the configuration data it needs by reading the file /etc/inetd.conf.
Please read following document for how to add entries in this file.
http://docs.hp.com/en/32650-90897/ch02s02.html
3>/var/adm/inetd.sec --> disallow & allow users network services
The /var/adm/inetd.sec file is a security file that inetd reads to determine which remote hosts are allowed access to the services on your host. The inetd.sec file is optional; you do not need it to run the Internet Services.check thif file alos.
You can use either a text editor or SAM to edit the inetd.sec file
This are essential files. now for ftp configuration.you need following files.
There are five files used to hold FTP configuration information.
Check following files:
1./etc/ftpd/ftpaccess --> configuration file is the primary configuration file for defining how the ftpd daemon operates. It is not necessary to enable the ftpacess file inorder to run ftpd. The configuration files allow you to configure FTP features, such as the number of FTP login tries permitted, FTP banner displays, logging of incoming and outgoing file transfers, access permissions, use of regular expressions, etc.

2. /etc/ftpd/ftpconversions -->Defines options for compression/decompression and tar/untar operations

3./etc/ftpd/ftphosts -->Lets you allow/deny FTP account access according to source IP addresses and host names.

4./etc/ftpd/ftpusers --> Restricts FTP access for specified users. This file shows entries which dont have access for ftp.
deny ftp access to selected users.

5./etc/ftpd/ftpgroups -->The group password file for use with the SITE GROUP and SITE GPASS commands

Also check for :
2./etc/passwd --> anonymous ftp access

3.~/.netrc -->login information for ftp.The .netrc file contains login and initialization information used by the ftp autologin process .ftp autologin
allows users to ftp to other hosts.

You check all files once again to be on safer side.
For printer problem. check whether printer is configured correctly.

Thanks & Regards
Reshma
Court Campbell
Honored Contributor

Re: connection problems...

I have seen this happen when dns servers go down. anything in your hosts file resolves, but anything using dns doesn't.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Reshma Malusare
Trusted Contributor

Re: connection problems...

Hey millsm,
if your query is solved then can you please reward the answers with points.
Regards
Reshma
millsm
Advisor

Re: connection problems...

thx