Operating System - HP-UX
1850681 Members
3645 Online
104055 Solutions
New Discussion

Re: What does this errors mean in rc.log?

 
Marcin_9
Frequent Advisor

What does this errors mean in rc.log?

Please see parts of my log:
########is separator###########

#########################
Initialize loadable modules
Output from "/sbin/rc1.d/S112kminit start":
----------------------------
/sbin/rc1.d/S112kminit[206]: 1: not found.
/sbin/rc1.d/S112kminit[206]: 2: not found.
/sbin/rc1.d/S112kminit[206]: 3: not found.
/sbin/rc1.d/S112kminit[206]: 4: not found.
/sbin/rc1.d/S112kminit[206]: 5: not found.
/sbin/rc1.d/S112kminit[206]: 6: not found.
/sbin/rc1.d/S112kminit[206]: 7: not found.
/sbin/rc1.d/S112kminit[206]: 8: not found.
* All configured modules are registered successfully.
############################################

Then

#############################################
Setting hostname
Output from "/sbin/rc1.d/S320hostname start":
----------------------------
/sbin/rc1.d/S320hostname[36]: 1: not found.
/sbin/rc1.d/S320hostname[36]: 2: not found.
/sbin/rc1.d/S320hostname[36]: 3: not found.
/sbin/rc1.d/S320hostname[36]: 4: not found.
/sbin/rc1.d/S320hostname[36]: 5: not found.
/sbin/rc1.d/S320hostname[36]: 6: not found.
/sbin/rc1.d/S320hostname[36]: 7: not found.
/sbin/rc1.d/S320hostname[36]: 8: not found.
############################################

And there is also:
###############################################Output from "/sbin/rc3.d/S990dtlogin.rc start":
----------------------------
/sbin/rc3.d/S990dtlogin.rc[98]: 1: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 2: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 3: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 4: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 5: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 6: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 7: not found.
/sbin/rc3.d/S990dtlogin.rc[98]: 8: not found.
############################################

I checked that line in [] always have
. /etc/rc.config

BTW, I dont see any implications.
Server is working fine.

?Waiting for hints
17 REPLIES 17
baiju_3
Esteemed Contributor

Re: What does this errors mean in rc.log?

Hi Marcin ,


It seems there is some problem with your /sbin.rc script.

Edit and see any thing you can fix it .Or kepp backup of this file copy from a similar system try .


Ragrds ..bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
baiju_3
Esteemed Contributor

Re: What does this errors mean in rc.log?

correction plz.

I mean /sbin/rc .
Good things Just Got better (Plz,not stolen from advertisement -:) )
James R. Ferguson
Acclaimed Contributor

Re: What does this errors mean in rc.log?

Hi Marcin:

The numbers in square brackets are the line numbers of the executing script. I'd bet that each equates to the point where the '/etc/rc.config' file is sourced (read).

Check your '/etc/rc.config.d' directory for a file that is syntatically incorrect when it, in turn is sourced.

You syntax check by doing :

# for X in `ls /etc/rc.config.d`
> do
> sh -n ${X}
> done

Regards!

...JRF...

Marcin_9
Frequent Advisor

Re: What does this errors mean in rc.log?

Which script?
I compared to other server that has no errors... seems the same but no errors in that log
A. Clay Stephenson
Acclaimed Contributor

Re: What does this errors mean in rc.log?

I suspect you are missing the config files corresponding to these init scripts in /etc/rc.config.d.

Do these operations and post the output:

1) ls -l /etc/rc.config
2) cat /etc/rc.config
3) ls -l /etc/rc.config.d

If it ain't broke, I can fix that.
Marcin_9
Frequent Advisor

Re: What does this errors mean in rc.log?

This is not the case...
The fiels are there and this is exactly as in another node that I compare the configuration
Fabio Ettore
Honored Contributor

Re: What does this errors mean in rc.log?

Hi Marcin,

did yout try what James suggested?

# for X in `ls /etc/rc.config.d`
> do
> sh -n ${X}
> done


This should show if there is something unexpected around. I see sometimes those errors (not exactly the same ) and the reason always is something dirty under /etc/rc.config.d. Pls check if you have some 'false' command o script or tool under there.

Good luck.

Best regards,
Fabio
WISH? IMPROVEMENT!
James R. Ferguson
Acclaimed Contributor

Re: What does this errors mean in rc.log?

Hi Marcin:

Sorry, I dropped the path. Do:

#!/usr/bin/sh
for X in `ls /etc/rc.config.d`
do
sh -n /etc/rc.config.d/${X}
done

Regards!

...JRF...
Marcin_9
Frequent Advisor

Re: What does this errors mean in rc.log?

Ok.
What I get here is:

root@server1:/etc> for X in 'ls /etc/rc.config.d'
> do
> sh -n ${X}
> done
sh: ls: Execute permission denied.
root@server1:/etc>
This is on my test server and the problem doesn't exists in rc.log
Marcin_9
Frequent Advisor

Re: What does this errors mean in rc.log?

Ok. I tested it again on lab, there are no errors.
I will do on discussed server tommorow and let you know.
Just question.
Can it be safety run on commercially run platform?
James R. Ferguson
Acclaimed Contributor

Re: What does this errors mean in rc.log?

HI Marcin:

Yes, you can safely run the shell code I suggested on a production server.

The 'sh -n file' is causing the file to be read and checked for syntax only.

Regards!

...JRF...
Marcin_9
Frequent Advisor

Re: What does this errors mean in rc.log?

Skript passed ... no output...
Cem Tugrul
Esteemed Contributor

Re: What does this errors mean in rc.log?

Hi Marcin,

As an additon to other replies here is an useful pdf about settings startup scripts/env

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: What does this errors mean in rc.log?

oppsss,
here it is...
Our greatest duty in this life is to help others. And please, if you can't
Devender Khatana
Honored Contributor

Re: What does this errors mean in rc.log?

Hi,

This sort of symtoms have been seen by me once after installing a corrupted patch. Have you done some recent chanes like patch installation etc?

This was also there in this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=852342

HTH,
Devender
Impossible itself mentions "I m possible"
Sorrel G. Jakins
Valued Contributor

Re: What does this errors mean in rc.log?

Czesc Macin, Jak sie masz?

Please attach
/sbin/rc1.d/S320hostname and
/sbin/rc3.d/S990dtlogin.rc
to this thread - click on the 'reply' button below and then fill in the 'Attachment:' tag below the Reply: text box.
Marcin_9
Frequent Advisor

Re: What does this errors mean in rc.log?

CzeÅ Ä ...
Bardzo dobrze :)... Good language...
I checked it exactly with the script with another node that has exactly the same script exactly seems the same... No errors in log