[Samba] ips and netbios name on the logs

Guido Lorenzutti guido at lorenzutti.com.ar
Thu Apr 28 06:00:02 GMT 2005


Hi people, does someone know how to only log the name of the machine and 
not the name of the machine AND the ip? Let me explain this:

-rw-r--r--  1 root root    0 Apr 28 02:47 0.0.0.0.log
-rw-r--r--  1 root root    0 Apr 28 02:49 10.3.0.10.log
-rw-r--r--  1 root root    0 Apr 28 02:47 10.3.0.21.log
-rw-r--r--  1 root root    0 Apr 28 02:46 10.3.0.22.log
-rw-r--r--  1 root root    0 Apr 28 02:48 10.3.0.23.log
-rw-r--r--  1 root root    0 Apr 28 02:47 10.3.0.24.log
-rw-r--r--  1 root root    0 Apr 28 02:47 10.3.0.25.log
-rw-r--r--  1 root root    0 Apr 28 02:54 10.3.1.27.log
-rw-r--r--  1 root root    0 Apr 28 02:54 127.0.0.1.log
-rw-r--r--  1 root root    0 Apr 28 02:49 avserver03.log
-rw-r--r--  1 root root  527 Apr 28 02:47 beruti-ts1.log
-rw-r--r--  1 root root    0 Apr 28 02:46 beruti-ts2.log
-rw-r--r--  1 root root 1.1K Apr 28 02:54 beruti-ts3.log
-rw-r--r--  1 root root 1.1K Apr 28 02:54 beruti-ts4.log
-rw-r--r--  1 root root  527 Apr 28 02:48 beruti-ts5.log
-rw-r--r--  1 root root    0 Apr 28 02:54 dr.taratutto.log
-rw-r--r--  1 root root 4.8K Apr 28 02:53 log.nmbd
-rw-r--r--  1 root root  554 Apr 28 02:53 log.smbd
-rw-r--r--  1 root root    0 Apr 28 02:54 server.log
-rw-r--r--  1 root root  516 Apr 28 02:54 smbd.log


I have a log of every machine name and every ip of this machines. I just 
want this:

-rw-r--r--  1 root root    0 Apr 28 02:49 avserver03.log
-rw-r--r--  1 root root  527 Apr 28 02:47 beruti-ts1.log
-rw-r--r--  1 root root    0 Apr 28 02:46 beruti-ts2.log
-rw-r--r--  1 root root 1.1K Apr 28 02:54 beruti-ts3.log
-rw-r--r--  1 root root 1.1K Apr 28 02:54 beruti-ts4.log
-rw-r--r--  1 root root  527 Apr 28 02:48 beruti-ts5.log
-rw-r--r--  1 root root    0 Apr 28 02:54 dr.taratutto.log
-rw-r--r--  1 root root 4.8K Apr 28 02:53 log.nmbd
-rw-r--r--  1 root root  554 Apr 28 02:53 log.smbd
-rw-r--r--  1 root root    0 Apr 28 02:54 server.log
-rw-r--r--  1 root root  516 Apr 28 02:54 smbd.log

Anything to change on the smb.conf? Im using samba 3.0.10


More information about the samba mailing list