Solved

Enable logging on TFTP

Posted on 2011-03-15
3
836 Views
Last Modified: 2012-05-11
We have problem on connecting for our Cisco phone to download the configuration from Asterisk TFTP. Any idea how to enable TFTP logging on Centos ?

Thanks
0
Comment
Question by:AXISHK
3 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
Comment Utility
You have to install the following RPMS
Installation
xinetd
tftp-server
tftp

Configuration:
Now edit the following file
/etc/xinetd.d/tftp

And make sure option disabled = no

Then issue the following commands
service xinetd restart
chkconfig tftp on
chkconfig xinetd on


TESTING:
netstat -anu  | grep 69



0
 
LVL 1

Expert Comment

by:tiggrdave
Comment Utility
Depending on the OS and versions of tftp you are using this should work.

You have to do the following in /etc/syslog.conf:

ftp.* /var/log/tftp

The TFTP service uses the ftp service log to log all messages.

Then touch /var/log/tftp, followed by:

# kill -HUP `ps ax | grep syslogd | grep -v grep | awk '{print $1}'

That should now start logging all tftp messages to /var/log/tftp


Or

 look in /etc/xinetd.d directory and compare the following with your tftp configuration

# default: off
# description: The tftp server serves files using the trivial file transfer protocol. The tftp protocol is often used to boot diskless workstations, download configuration files to network-aware
 printers, and to start the installation process for some operating systems.
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = --logfile /var/log/atftpd.log
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

The logfile can be specified in the server_Args section as shown above.

You will need to restart the xinetd process for it to use the new config file

kill -HUP `ps ax | grep xinetd | grep -v grep | awk '{print $1}'
0
 

Author Closing Comment

by:AXISHK
Comment Utility
Tks
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Cpanel and Mail logs 1 46
Embeded Linux on Router 9 92
Debian: failing to add netwok bridge for kvm 2 96
SIP Trunk provider 20 92
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now