Network services log

Hiafter restarting network services, where is the log file located? thanks
[95 byte] By [implife] at [2007-11-26 11:19:44]
# 1
Well, the 2 most common log files are /var/adm/messages and /var/log/syslogBut you will have to be more specific.What do you mean restart network services.What are you looking for in the log.In general, logging is configured through /etc/syslog.conf
robertcohen at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

Do you mean a service that uses the network (like a web server), or the network configuration itself (like interfaces and routing)?

There's no defined way to restart the latter in Solaris 9. I'm not sure exactly what you're doing.

For applications, there's no one defined log location. It's up to the app to make use of syslog facilities or log to a dedicated file.

--

Darren

Darren_Dunham at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

Hi

Thanks for the reply

What is needed is a log so that we can check to see if the network services goes down. Yes, i know that network services cannot be restarted manually, but we need to monitor when it automatically goes down and up or when the connection goes down.

is there any other settings other than mail.debug which is used?

We want the logs to be as detailed as possible.

Thanks

implife at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4

I'm afraid that you still haven't clarifed what you mean by "services".

Each application logs its own way. So you'll have to enumerate all of the services you're interested in.

Otherwise, you could go to Solaris 10 where the OS monitors services directly.

--

Darren

Darren_Dunham at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5

Actually we have a process from a third party application that dies at a specific time and day, we are unable to see what caused this.

when we ps -ef, after that specific time and day, that particular service is no longer there. Is there any way or log file to see this?

sorry, i think i wrongly used the term network.

implife at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6

It's up to the application to log itself. Unless you enable accounting, the system isn't going to be able to tell you when or why every single process might have died or exited.

There is no global log for random applications or processes.

Most applications have their own log or send information to syslog.If there's no log, or the log doesn't contain any information about the process going away, you may have to work with the vendor or developer to get more information.

If you know beforehand exactly when it will die, you can run 'truss' on the process. If it gets a signal, you'll see what signal is delivered.

--

Darren

Darren_Dunham at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7
ThanksWill try..
implife at 2007-7-7 3:35:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...