- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /sbin/rc2.d/S340net not found
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
07-27-2007 11:23 PM
07-27-2007 11:23 PM
I have a problem with an rx4640 it crashed in the night and had to have its processor extender board replaced. When I boot the server it comes up ok; however there are errors in /etc/rc.log saying /sbin/rc2.d/S340net not found - I've looked in /sbin/rc2.d and all of the files (links) appear to be there and pointing to /sbin/init.d/net is there and is viewable. I tried running the command from the command line but get the same error. This message is displayed for several other files in /sbin/rc2.d but it doesn't appear for all files in /sbin/rc2.d so I'm confused as to whats happening. I can't start S340net so have no network connection other than console. At the moment I am recovering sbin/rc2.d directory from backup tape and was going to overwrite the current sbin/rc2.d directory - then try rebooting and see if this has sorted the problem out - can anyone advise something diferent, or has anyone seen this problem before if so how did you fix it.
Many thanks
Annelise
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2007 12:00 AM
07-28-2007 12:00 AM
SolutionThis could be down to any number of things, but a hunch says it might be a typo in a config file in /etc/rc.config.d (as these are the ones that are more likely to get changed by hand than anything in the /sbin/rcX.d directories.
Check the config files in /etc/rc.config.d are all OK by starting a sub-shell and sourcing each one in turn. This should do this for you:
sh
ls /etc/rc.config.d/* | while read x
do
echo $x
. $x 2>&1
done | more
exit
This will print a list of the files in /etc/rc.config.d - If any of them have bogus entries then you should see a:
sh .... not found
message on the following line.
Remember to exist the subshell after you are done, as these commands will have stuffed a load of entries into you shells environment which you don't want.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2007 12:07 AM
07-28-2007 12:07 AM
Re: /sbin/rc2.d/S340net not found
/etc/rc.config.d/netconf
I've looked in this file and it appears to look ok - any ideas?
Cheers,
Annelise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2007 12:43 AM - last edited on 06-29-2021 04:42 AM by Ramya_Heera
07-28-2007 12:43 AM - last edited on 06-29-2021 04:42 AM by Ramya_Heera
Re: /sbin/rc2.d/S340net not found
Annelise,
There's something in that file it doesn't like...
run :
cat -v /etc/rc.config.d/netconf
And look for any strange characters (cat -v shows any strange non-printable characters in the file). I'm afraid you're just going to have to go through it very carfeully...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2007 05:44 AM
07-28-2007 05:44 AM
Re: /sbin/rc2.d/S340net not found
ll -d / /sbin /sbin/init.d /etc /etc/rc.config.d
drwxr-xr-x 29 root root 8192 Jun 19 12:36 //
dr-xr-xr-x 31 bin bin 8192 Jul 28 12:59 /etc/
drwxr-xr-x 2 bin bin 8192 Dec 3 2006 /etc/rc.config.d/
dr-xr-xr-x 14 bin bin 8192 Feb 23 20:20 /sbin/
dr-xr-xr-x 2 bin bin 8192 Dec 3 2006 /sbin/init.d/
Because of the random failures you're seeing, I would suspect filesystem corruption. Run a full fsck on the / filesystem. Also run swverify (if it will run at all). You may have a lot more wrong than just a few startup links. Look at /etc/rc.log to see what else is broken.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2007 09:08 PM
07-28-2007 09:08 PM
Re: /sbin/rc2.d/S340net not found
Please remove your link file and create the link file again.
Thanks & Regards
A. Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2007 07:02 PM
07-29-2007 07:02 PM
Re: /sbin/rc2.d/S340net not found
Thanks for the prompt responses, I eventually sorted the problem out - it was a problem with the /etc/rc.config.d/netconf file - after fixing this file I manually ran /sbin/rc2.d/S340net start - and it worked fine, so I reboot serve and it cam up fine.
Thank you all for your prompt responses,
Cheers,
Annelise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2007 07:05 PM
07-29-2007 07:05 PM