Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I view the dhcpd.leases without having to SSH into the box and view using vi/nano etc.

I used to have webadmin set up on another box but that was when I used the GUI to configure dhcp.

Now I have configured it myself through the terminal and don't want to use webadmin. and viewing the dhcpd.leases file in the web browser was very nifty!

Any software/scripts that automatically export the leases file into a web page that i can view using apache on the server?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you have a web server installed on the same machine, you could just use a symlink to put it into a directory served by the web server.

If you have Apache configured to use /var/www/htdocs, you could use something like this:

ln -s /var/lib/dhcp/dhcpd.leases /var/www/htdocs/leases.txt

(Might need path adjustments depending on your system).

If the access rights are correct, you could read the file with http://hostname/leases.txt afterwards.

If would restrict this to the local network, though.

share|improve this answer
    
Works a treat. should suffice for what I need. Thank you very much sir! –  SamCulley Sep 12 '11 at 14:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.