Operating System - HP-UX
1833046 Members
2378 Online
110049 Solutions
New Discussion

how to log telnet messages to another host?

 
SOLVED
Go to solution
zhangjie_1
Occasional Contributor

how to log telnet messages to another host?

how to config the /etc/syslog.conf to log telnet messages?

3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor
Solution

Re: how to log telnet messages to another host?

Hi,

Can you elaborate more on 'telnet messages'? If you meant the connection information like "telnet/tcp connection from xxxx " etc., then you will need to turn logging on on inetd.

inetd -l

will take care of it. -l is a toggle switch. So, if you don't want the logging on, then simply run it again.. you should see the messages "connection logging enabled/disabled" etc.,

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: how to log telnet messages to another host?

A few ways:

NFS mount the other host and then mount it and configure syslog.conf to log to the nfs mount.

You can transfer the contents of the /var/adm/syslog/syslog.log file to another host via regular rcp or scp transfer via cron.

Either solution is vulnerable to networking issues, the latter being better because at least there is a copy of the file left over if the network goes down.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
zhangjie_1
Occasional Contributor

Re: how to log telnet messages to another host?

ok,thanks very much!