- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- server inaccessible via telnet (((Help plz)))
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
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
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
03-21-2012 10:30 AM
03-21-2012 10:30 AM
server inaccessible via telnet (((Help plz)))
Hi All,
im facing the following issue with hp-ux 11iv3 installed on rx6600 server.
The fact is today after restarting the server, it becomes inaccessible via "Telnet" however, imstill accessing it through SSH.
I tried to check the /etc/inetd.conf file (if anyone commented by a hash mark the line containing "telnet") and when i tried to issue the following command: # inetd -c i received the output: "inetd: There is no inetd running" .
I tried to restart the server without ant results.
I also tried to disable the firewall and i got the below output:
# ipfilter -d
/sbin/init.d/ipfboot[5]: Syntax error at line 5 : `{' is not matched.
/sbin/init.d/pfilboot[5]: Syntax error at line 5 : `{' is not matched.
ERROR: lan5 interface: IP address already in use
IPFilter Disabled
In addition and the weird thing is when i issued the "hostname" command, i received the output:
# hostname
unknown
For more details you can check the attached output.
Any troubleshooting suggestions are so precious to me.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2012 11:37 AM
03-21-2012 11:37 AM
Re: server inaccessible via telnet (((Help plz)))
It sounds like you may have a garbage file in your /etc/rc.config.d directory. Make sure that you DO NOT have any back up files, or any files that do not belong in the /etc/rc.config.d directory.
As far as inetd goes, what happens if you try to start it manually?
# /sbin/init.d/inted start
Does it error?
- Tags:
- rc.config.d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2012 01:22 PM
03-21-2012 01:22 PM
Re: server inaccessible via telnet (((Help plz)))
Hello Patrick and thanks for your reply,
how can i identify garbage files in order to move/remove them without affecting any other services?
and how to tell that specific files do not belong to /etc/rc.config.d ?
Your help is much appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2012 06:35 PM
03-21-2012 06:35 PM
Re: server inaccessible via telnet (((Help plz)))
I am assuming that this system worked correctly in the past. So whatever happened occurred recently. That's where sorting the list of files in /etc/rc.config.d in time order is VERY useful:
ls -lrt /etc/rc.config.d
The most recently changed files are at the bottom of the list. None of the standard configuration scripts will have extensions such as .old or .prev or .20120314, etc. Filenames like junk or test or yy or zz definitely do not belong. If you insist on making copies of your old files, create a directory called /etc/rc.config.d/old and move all the junk files there.This directory is unlike any other where everything in it will be sourced at boot up.
The original files can be seen in /usr/newconfig/etc/rc.config.d
You can test every file in this directory like this:
for RCFILE in /etc/rc.config.d/* do echo $RCFILE . $RCFILE done
Look for error messages during the above loop.
Then go through the rc start log: /etc/rc.log looking for errors, failures, other problems.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 04:05 AM
03-22-2012 04:05 AM
Re: server inaccessible via telnet (((Help plz)))
Hello,
this situation is becoming frustrating and i really need your help/opinion.
The fact is that i tried to check the /etc/rc.config.d directory for garbage files and it seems to be fine as you can see in the attached output. I also checked the //etc/rc.config.d/netcong for any missing parameter and i checked the /etc/inetd.conf file (see attachment),
Whenever i try to start inetd by issuing the command: # /sbin/init.d/inetd start im getting the following output:
/sbin/init.d/inetd[38]: Syntax error at line 38 : `{' is not matched.
Also noticed that whenever i tried to shutdown the server, im getting the below errors:
Broadcast Message from root (pts/1) Thu Mar 22 11:06:21...
SYSTEM BEING BROUGHT DOWN NOW ! ! !
/sbin/rc[75]: Syntax error at line 75 : `{' is not matched.
/sbin/rc2.d/K177hpws_apache[46]: Syntax error at line 46 : `{' is not matched.
/sbin/rc2.d/K177hpws_tomcat[46]: Syntax error at line 46 : `{' is not matched.
/sbin/rc2.d/K177hpws_webmin[45]: Syntax error at line 45 : `{' is not matched.
/sbin/rc2.d/K177hpws_webproxy[44]: Syntax error at line 44 : `{' is not matched.
/sbin/rc2.d/K177hpws_xmltools[42]: Syntax error at line 42 : `{' is not matched.
/sbin/rc1.d/K300acct[39]: Syntax error at line 39 : `{' is not matched.
/sbin/rc1.d/K410Rpcd[30]: Syntax error at line 30 : `{' is not matched.
System shutdown in progress
i also printed /etc/rc.log file for reference
Your help / suggestions are much appreciated.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 04:23 AM - edited 03-22-2012 04:29 AM
03-22-2012 04:23 AM - edited 03-22-2012 04:29 AM
Re: server inaccessible via telnet (((Help plz)))
This is a bit strange, there is always a line like
Syntax error at line 45 : `{' is not matched.
I compared some of the files and found almost everywhere a line like this
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin
There must be a bad line or character in a very central location, maybe a typo "{" instead of "/".
Look for "{" in
/etc/PATH
and do a
# echo $PATH | grep {
Also check /etc/profile and /.profile for such typos.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 04:27 AM
03-22-2012 04:27 AM
Re: server inaccessible via telnet (((Help plz)))
Hello,
could you please be more specific? and how can it be that those files were modified?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 04:31 AM
03-22-2012 04:31 AM
Re: server inaccessible via telnet (((Help plz)))
I suspect there is anywhere a typo in a file that is everytime sourced when a script is executed.
If you review your last attachment - what is in the specific lines when the error is reported?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 04:47 AM
03-22-2012 04:47 AM
Re: server inaccessible via telnet (((Help plz)))
-r--r--r-- 1 bin bin 4584 Nov 16 12:45 SnmpMaster
changed, recently, more or less.
Then this:
/etc/rc.config.d/SnmpMaster
sh[4]: Syntax error: `{' is not matched.
So please check this file too, but I still asume there is something wrong in a "profile" file.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2012 08:33 AM
03-22-2012 08:33 AM
Re: server inaccessible via telnet (((Help plz)))
Hello,
I have a similar running server without problems on the subnet so if i just copy the profile files from the 1st one to the 2nd showing problems and replace its files does it work instead of comparing each file by itself? or are these server/profile files specific to each server?
Any other hint/suggestion that helps in that issue is appreciated.
Thanks in advance