[ASK] Log pada DHCP Server

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
m541d
Posts: 14
Joined: 07 Jan 2011, 13:01
Location: surabaya

[ASK] Log pada DHCP Server

Postby m541d » 30 Nov 2011, 13:25

permisi para master linux...
aneh mau tanya seputar lDHCP linux, linux yang ane pakek Ubuntu 10.04 LTS Dekstop, ane install DHCP-server dan telah mengedit file /etc/dhcp3/dhcpd.conf pada file tersebut ada baris sebagai berikut :

log-facility local7;

yang ingin ane tanyakan :
# mohon penjelasan fungsi dari baris tersebut :

Terima kasih atas bantuan dan pencerahannya
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ASK] Log pada DHCP Server

Postby thrvers » 30 Nov 2011, 16:31

'
Read The Fine Manual: dhcpd.conf(5) - Linux man page

search 'log-facility' klo nda nemu2 :grin:
Tampilkan
....
The log-facility statement
log-facility facility;

This statement causes the DHCP server to do all of its logging on the specified log facility once the dhcpd.conf file has been read. By default the DHCP server logs to the daemon facility. Possible log facilities include auth, authpriv, cron, daemon, ftp, kern, lpr, mail, mark, news, ntp, security, syslog, user, uucp, and local0 through local7. Not all of these facilities are available on all systems, and there may be other facilities available on other systems.

In addition to setting this value, you may need to modify your syslog.conf file to configure logging of the DHCP server. For example, you might add a line like this:
local7.debug /var/log/dhcpd.log
The syntax of the syslog.conf file may be different on some operating systems - consult the syslog.conf manual page to be sure. To get syslog to start logging to the new file, you must first create the file with correct ownership and permissions (usually, the same owner and permissions of your /var/log/messages or /usr/adm/messages file should be fine) and send a SIGHUP to syslogd. Some systems support log rollover using a shell script or program called newsyslog or logrotate, and you may be able to configure this as well so that your log file doesn't grow uncontrollably.

Because the log-facility setting is controlled by the dhcpd.conf file, log messages printed while parsing the dhcpd.conf file or before parsing it are logged to the default log facility. To prevent this, see the README file included with this distribution, which describes how to change the default log facility. When this parameter is used, the DHCP server prints its startup message a second time after parsing the configuration file, so that the log will be as complete as possible.
....
Last edited by thrvers on 27 Feb 2016, 19:07, edited 1 time in total.
Reason: males buka link :D
User avatar
m541d
Posts: 14
Joined: 07 Jan 2011, 13:01
Location: surabaya

Re: [ASK] Log pada DHCP Server

Postby m541d » 01 Dec 2011, 09:27

Thank's bro thrvers udah comment, setelah ane lihat link tersebut, aneh pahami, berarti ane harus membuat local7.debug /var/log/dhcpd.log dengan mengedit file syslog.conf ya???
thank's
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: [ASK] Log pada DHCP Server

Postby sipelaut » 04 Dec 2011, 13:45

[nanyak]
pentingkah membuat local7.debug /var/log/dhcpd.log dengan mengedit file syslog.conf
soalnya punyaku gak ada file konfigurasi ini /var/log/dhcpd.log dan dhcp di kantor berjalan normal

kalo log-facility local7 memang saya sertakan di /etc/dhcp3/dhcpd.conf, soalnya di beberapa literatur yang saya baca dan saya terapkan memang script ini disertakan..


???????
User avatar
m541d
Posts: 14
Joined: 07 Jan 2011, 13:01
Location: surabaya

Re: [ASK] Log pada DHCP Server

Postby m541d » 08 Dec 2011, 10:09

bro error, mungkin penting untuk melihat history bro, cara mengedit file syslog.conf itu di mana filenya bro...

Thank's...
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ASK] Log pada DHCP Server

Postby thrvers » 08 Dec 2011, 10:51

'
biasanya klo konfig2 di /etc

$ find /etc -iname syslog.conf
User avatar
awa
Posts: 26
Joined: 08 Dec 2011, 09:31
Location: Malang, Indonesia

Re: [ASK] Log pada DHCP Server

Postby awa » 08 Dec 2011, 11:06

pake sintax : locate syslog.conf

soalnya tiap komputer biasanya beda"

Return to “Ubuntu Server”

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests