Solaris log question | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris log question

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-28-2012
black_fender black_fender is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 16 July 2014, 3:53 AM EDT
Location: Bucharest
Posts: 63
Thanks: 21
Thanked 5 Times in 5 Posts
Solaris log question

Hello,

I have a monitoring script on machine A which asks a telnet on port 80 on machine B. Machine B is on Solaris :


Code:
root@Ma1-fu-mslocwp-1 # uname -a
SunOS Ma1-fu-mslocwp-1 5.10 Generic_144488-09 sun4v sparc sun4v

I want to know when the telnet command launched from machine A cannot establish connection with machine B on port 80 is there any trace in the system logs from machine B. If so, in which log file?

Thank you!
Sponsored Links
    #2  
Old 12-28-2012
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 31 July 2014, 11:11 AM EDT
Location: NM
Posts: 10,160
Thanks: 269
Thanked 781 Times in 731 Posts
I'm not clear on this. Do you mean a login failure? Or something else, like a network issue? What happens is specific to the error, but your question is so general I have no clue what you want.
Sponsored Links
    #3  
Old 12-28-2012
black_fender black_fender is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 16 July 2014, 3:53 AM EDT
Location: Bucharest
Posts: 63
Thanks: 21
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by jim mcnamara View Post
I'm not clear on this. Do you mean a login failure? Or something else, like a network issue? What happens is specific to the error, but your question is so general I have no clue what you want.
Actually I think I was pretty clear

I am on machineA. I launch this command :


Code:
 # telnet machineB 80
Trying machineB...
telnet: Unable to connect to remote host: Connection refused

Afterwards I go on machineB. Will I be able to find any trace of this telnet attempt? If so, where ?

---------- Post updated at 07:29 AM ---------- Previous update was at 07:25 AM ----------

As a side note:

There's no communication problem between these 2 machines. I can have a succesfully telnet command from machineA to machineB on a different port. I can also ssh between these 2 machines. My only problem is when the respective process on machineB does not listen on port 80. When that happens (and I detect that woth a telnet from machineA) will I be able to find the trace of that telnet attempt on the destination machine (machineB) ?

PPS:

I do not want to find out why the telnet command fails. I only want to know how/where can I trace these failed telnet attempts on the destination machine (machineB).

Last edited by black_fender; 12-28-2012 at 07:35 AM..
    #4  
Old 12-28-2012
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 30 July 2014, 5:10 AM EDT
Location: /dev/ph
Posts: 4,773
Thanks: 59
Thanked 423 Times in 392 Posts
By default Solaris does not log telnet attempts.
Sponsored Links
    #5  
Old 12-28-2012
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 31 July 2014, 11:11 AM EDT
Location: NM
Posts: 10,160
Thanks: 269
Thanked 781 Times in 731 Posts
That is a tcp/ip error. Okay, so now you have to enable logging for the transport layer.


Code:
inetadm -M tcp_trace=TRUE

turns on logging - it uses syslog. (/var/log/syslog is the file) However on a busy system this incurs overhead, which logging is off by default.
Sponsored Links
    #6  
Old 12-28-2012
GP81 GP81 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 January 2014, 7:20 AM EST
Location: Warsaw, Poland
Posts: 65
Thanks: 0
Thanked 14 Times in 13 Posts
It's better to use "-m" rather than "-M. With low letter you can change value for specific service.

Code:
# inetadm | grep telnet

Now you know what is FMRI of telnet service.

Code:
# inetadm -m <telnet FMRI>  tcp_trace=true

You can also edit syslog.conf file to configure where and with what level daemon log will be stored.
The Following User Says Thank You to GP81 For This Useful Post:
prashant2507198 (12-29-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Question with Solaris Crash Analysis Tool with Solaris 9 YuW Solaris 1 07-04-2012 07:13 AM
Delayed log in / Slow log in HP -Solaris 10 anand87 Solaris 1 05-06-2011 10:20 AM
Question on FTP Error Log Ariean UNIX for Dummies Questions & Answers 0 02-10-2010 10:35 AM
SFTP log question fld2007 Solaris 1 08-05-2009 04:23 PM
Log file question lijiajin UNIX for Dummies Questions & Answers 2 03-31-2009 02:21 AM



All times are GMT -4. The time now is 05:39 PM.