Operating System - HP-UX
1822522 Members
2692 Online
109642 Solutions
New Discussion юеВ

Unable to open file /var/adm/nettl.LOG00

 
JHL_1
Frequent Advisor

Unable to open file /var/adm/nettl.LOG00

I continue to get the message "Unable to open file /var/adm/nettl.LOG00 - error code - 2 No such file" on my console. I've checked and the files nettl.LOG00 and nettl.LOG01 are in the /var/adm/directory and include what appears to be valid, redundant messages like "tcp_rput_other : case T_ERROR_ACK, ERROR_prim == 1" The user id as described on the console is user "lp" when checked in /etc/passwd file. Should I be concerned? Why does this message appear on the screen when the /var/adm/nettl.LOG00 file does in fact exist? Should I (can I) disable the prompting of this message?
7 REPLIES 7
Tim D Fulford
Honored Contributor

Re: Unable to open file /var/adm/nettl.LOG00

I'm not 100% sure exactly what your question is!!

1 - You can stop the network transportt layer logging daemon by doing /sbin/init.d/nettl stop

However it can produce some important logs so I would view this as a tempory solution.

2 - You mention something about the user lp being mentioned. This files should be owned by root
# ll /var/adm/nettl.LOG*
-rw-r--r-- 1 root sys ... /var/adm/nettl.LOG00
-rw-r--r-- 1 root sys ... /var/adm/nettl.LOG01

This process is a root process
do
# ps -fe | grep nettl
root 435 1 0 ... /usr/lbin/ntl_reader 0 1 1 1 1000 /var/adm/nettl /var/adm/co
root 436 435 0 ... /usr/sbin/netfmt -C -F -f /var/adm/nettl.LOG00 -c /var/adm/c

For what ever reason it sounds like the user lp has taken control (hence it may not be able to read it)

Tim
-
Robin Wakefield
Honored Contributor

Re: Unable to open file /var/adm/nettl.LOG00

Hi John,

Are there any processes running as lp that shouldn't be:

ps -flu lp

Rgds, Robin
Rainer von Bongartz
Honored Contributor

Re: Unable to open file /var/adm/nettl.LOG00

did you check the permissions of /var/adm/nettl.LOG00 ??

they should belong to root and have permissions 644

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
JHL_1
Frequent Advisor

Re: Unable to open file /var/adm/nettl.LOG00

The message as it appears (exactly) on the console is "Unable to open file '/var/adm/nettl.LOG00. (208) open() returned error code : 2 - No such file or directory. Check input file name and try again"

The continued messages in the nettl.LOG00 file are "tcp_rput_other: case T_ERROR_ACK, ERROR_prim == 1".
JHL_1
Frequent Advisor

Re: Unable to open file /var/adm/nettl.LOG00

Thanks guys. The ownership/permissions are
-rw-r--r- 1 root root for both nettl.LOG00 and nettl.LOG01.
JHL_1
Frequent Advisor

Re: Unable to open file /var/adm/nettl.LOG00

Checked the above and am still getting the errors. Again am not sure what is generating the errors but don't want to discount a genuine problem. I anticipate disabling the messaging with the stop command but again would like to know why I'm getting this message.

Thanks
Peter Van Sant
Advisor

Re: Unable to open file /var/adm/nettl.LOG00

Check that the nettl processes are running;

# ps -ef | grep nettl
root 28622 1 9 12:44:05 ? 0:00 /usr/lbin/ntl_reader 0 1 1 1 1000 /var/adm/nettl /var/adm/co
root 28648 25193 2 12:45:25 ttyp1 0:00 grep nettl
root 28623 28622 14 12:44:05 ? 0:00 /usr/sbin/netfmt -C -F -f /var/adm/nettl.LOG00 -c /var/adm/c

May never know why this happened but recovering should be easy. Just do a nettl stop, remove or rename the existing nettl.LOGxx
files and restart. It will create new log files for you.

/usr/sbin/nettl stop
rm nettl.L*
/usr/sbin/nettl start