|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
![]() 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
|
||||
|
||||
|
By default Solaris does not log telnet attempts.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|