Solaris log question


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris log question
# 1  
Old 12-28-2012
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!
# 2  
Old 12-28-2012
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.
# 3  
Old 12-28-2012
Quote:
Originally Posted by jim mcnamara
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 Smilie

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 08:35 AM..
# 4  
Old 12-28-2012
By default Solaris does not log telnet attempts.
# 5  
Old 12-28-2012
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.
# 6  
Old 12-28-2012
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.
This User Gave Thanks to GP81 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Enabling Solaris Audit log: Solaris 9

Dear All, I have one of my Servers, running Solaris 9. I wanna enable the Audit log enabling, the way I did in Solaris 10 Servers. After running, the bsmconv script, giving the reboots, modifying all the audit files in /etc/security, the audit is enabled, but the audit file which shall be... (3 Replies)
Discussion started by: sumeet1806
3 Replies

2. Solaris

Question with Solaris Crash Analysis Tool with Solaris 9

Hello all. I am new hear and would like to ask a question regarding to the Solaris Crash Analysis Tool. We are analyzing the results of "thread summary" but not quite sure what the asterisk represents. Following are the items that asterisk were attached. 50* threads sleeping on a semaphore (49... (1 Reply)
Discussion started by: YuW
1 Replies

3. UNIX for Dummies Questions & Answers

RAID on Solaris Question

Hello folks; I'm trying to install Solaris 10 x86 on SUN X4150 box with 6 disks in it, the question is how can i create a Virtual disk like RAID 0 before i install Solaris. When i boot up i don't see any option to go and create my raid before the installation begin. Thanks in advance for any... (2 Replies)
Discussion started by: Katkota
2 Replies

4. Solaris

Solaris 9 upgrade question.

I have an old sun v890 server running solaris 9. Apparently we need to be running solaris 10. I don't know much about the server history, there isn't any documentation. I hesitant to rebuild from scratch and loose user configuration settings etc... How difficult is it to upgrade to solaris... (10 Replies)
Discussion started by: Kjons76
10 Replies

5. Solaris

A Solaris Question

hi.. I have a question because there are files on Solaris and will not let me change the root user is the owner. excuse is that I come from a Linux environment and I like to learn Solaris thank (5 Replies)
Discussion started by: cejodrake
5 Replies

6. UNIX for Dummies Questions & Answers

Basic Solaris Question

In solaris, if i try to make a new file Touch /blah/blah/cookie/file.txt and /cookie doesnt exist will solaris be a good os and create the path for file.txt? Or will i need to do a test loop for directory existance in my script? (3 Replies)
Discussion started by: Demon002
3 Replies

7. UNIX for Advanced & Expert Users

Solaris browser question

The security office is complaining that my system (Solaris 8) that the "security.password_lifetime" is not configured in the /.netscape/preferences.js file. I have found the file but don't know how to configure it to get the browser to request a password after 15 minutes of inactivity. Help... (1 Reply)
Discussion started by: rtoba
1 Replies

8. Solaris

Solaris Network question

I have a machine that has developed a strange network problem. Anytime it sends an FTP file somewherwe, no problem. When it is the target machine, extremely slow. I checked the /var/adm/messages file and found a few of these: SUNW,hme0 : No response from Ethernet network : Link down -- cable... (2 Replies)
Discussion started by: hshapiro
2 Replies

9. Solaris

solaris package question

I'm trying to install GNU C compiler. I have the binary downloaded, and add it using a pkgadd -d command. Is there anything else I need to do? Thanks. (7 Replies)
Discussion started by: ECBROWN
7 Replies

10. UNIX for Dummies Questions & Answers

Solaris 2.6 question

How do I define a default gateway on a Solaris 2.6 Server. (2 Replies)
Discussion started by: jskillet
2 Replies
Login or Register to Ask a Question