Solved

Enable logging on TFTP

Posted on 2011-03-15
3
883 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35137014
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
ID: 35137152
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
ID: 35137872
Tks
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 139
How to get IPA working with samba on RHEL 6? 1 119
How to identify SSH user interactive login? 15 90
CentOS 7 wireless 2 83
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

739 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