[BusyBox] Remote logging with syslogd

kanhu rauta kanhu2004 at rediffmail.com
Mon Mar 21 13:39:20 UTC 2005


Content-type: multipart/alternative;
	boundary="Next_1111412360---0-203.199.83.39-9757"

 This is a multipart mime message


--Next_1111412360---0-203.199.83.39-9757
Content-type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

  =0AHi all,=0A=0AI am using BusyBox v0.60.4 with uClinux.=0AI have selecte=
d the klogd and syslogd options of busybox on compilation.=0AWhen I load th=
is image on my gateway,both process has started successfully.=0A/>ps=0A=0A>=
  PID TTY     Uid        Size State Command=0A>     1         root         =
 0   S   /sbin/init=0A>     2         root          0   S   [keventd]=0A>  =
   3         root          0   S   [ksoftirqd_CPU0]=0A>     4         root =
         0   S   [kswapd]=0A>     5         root          0   S   [bdflush]=
=0A>     6         root          0   S   [kupdated]=0A>    51         root =
         0   S   /bin/dhcpd LAN=0A>    77         root          0   S   cho=
is -gserver 54273=0A>    80         root          0   S   /bin/dnsmasq -r /=
etc/resolv.dnsmasq=0A>    84 ttyS0   root          0   S   /bin/sh=0A>    8=
5         root          0   S   /bin/inetd=0A>    86         root          =
0   S   /bin/syslogd -n=0A>    87         root          0   S   /bin/klogd =
-n=0A>    90 ttyS0   root          0   R   ps=0A=0A=0AI get the kernel log =
messages in the file /var/log/messages.=0AI want to forward this kernel  lo=
g to a remote machine,Then i exucute the follwing command=0A/>/bin/syslogd =
-R 192.168.5.4:514 &=0A/>ps=0A=0A>  PID TTY     Uid        Size State Comma=
nd=0A>     1         root          0   S   /sbin/init=0A>     2         roo=
t          0   S   [keventd]=0A>     3         root          0   S   [ksoft=
irqd_CPU0]=0A>     4         root          0   S   [kswapd]=0A>     5      =
   root          0   S   [bdflush]=0A>     6         root          0   S   =
[kupdated]=0A>    51         root          0   S   /bin/dhcpd LAN=0A>    77=
         root          0   S   chois -gserver 54273=0A>    80         root =
         0   S   /bin/dnsmasq -r /etc/resolv.dnsmasq=0A>    84 ttyS0   root=
          0   S   /bin/sh=0A>    85         root          0   S   /bin/inet=
d=0A>    86         root          0   S   /bin/syslogd -n=0A>    87        =
 root          0   S   /bin/klogd -n=0A>    89 ttyS0   root          0   S =
  /bin/syslogd -R 192.168.5.4:514=0A>    93 ttyS0   root          0   R   p=
s=0A=0A=0A=0AThe machine 192.168.5.4 is reachable from my gateway(able to p=
ing).=0AThe syslogd service on 192.168.5.4 is able to listen on remote mach=
ine.(Its /var/log/messages shows the log of 3-machines).=0ABut i am unable =
to get the Log of Gateway(192.168.5.1) on This machine(192.168.5.4).=0A=0AS=
orry for my poor english,=0APlease help me.=0A=0AWith Regards=0AKanhu=0A
--Next_1111412360---0-203.199.83.39-9757
Content-type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0A&nbsp; <BR>=0AHi all,<BR>=0A<BR>=0AI am using BusyBox v0.60.4 with uC=
linux.<BR>=0AI have selected the klogd and syslogd options of busybox on co=
mpilation.<BR>=0AWhen I load this image on my gateway,both process has star=
ted successfully.<BR>=0A/&gt;ps<BR>=0A<BR>=0A&gt;&nbsp; PID TTY&nbsp; &nbsp=
;  Uid&nbsp; &nbsp; &nbsp; &nbsp; Size State Command<BR>=0A&gt;&nbsp; &nbsp=
;  1&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&n=
bsp;  S&nbsp;  /sbin/init<BR>=0A&gt;&nbsp; &nbsp;  2&nbsp; &nbsp; &nbsp; &n=
bsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [keventd]<BR=
>=0A&gt;&nbsp; &nbsp;  3&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [ksoftirqd_CPU0]<BR>=0A&gt;&nbsp; &nbsp;=
  4&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nb=
sp;  S&nbsp;  [kswapd]<BR>=0A&gt;&nbsp; &nbsp;  5&nbsp; &nbsp; &nbsp; &nbsp=
;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [bdflush]<BR>=
=0A&gt;&nbsp; &nbsp;  6&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [kupdated]<BR>=0A&gt;&nbsp; &nbsp; 51&nbs=
p; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&=
nbsp;  /bin/dhcpd LAN<BR>=0A&gt;&nbsp; &nbsp; 77&nbsp; &nbsp; &nbsp; &nbsp;=
  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  chois -gserver 5=
4273<BR>=0A&gt;&nbsp; &nbsp; 80&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bin/dnsmasq -r /etc/resolv.dnsma=
sq<BR>=0A&gt;&nbsp; &nbsp; 84 ttyS0&nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; 0&nbsp;  S&nbsp;  /bin/sh<BR>=0A&gt;&nbsp; &nbsp; 85&nbsp; &nbsp; &n=
bsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bin/=
inetd<BR>=0A&gt;&nbsp; &nbsp; 86&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bin/syslogd -n<BR>=0A&gt;&nbsp;=
 &nbsp; 87&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; 0&nbsp;  S&nbsp;  /bin/klogd -n<BR>=0A&gt;&nbsp; &nbsp; 90 ttyS0&nbsp;  =
root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  R&nbsp;  ps<BR>=0A<BR>=0A<B=
R>=0AI get the kernel log messages in the file /var/log/messages.<BR>=0AI w=
ant to forward this kernel&nbsp; log to a remote machine,Then i exucute the=
 follwing command<BR>=0A/&gt;/bin/syslogd -R 192.168.5.4:514 &amp;<BR>=0A/&=
gt;ps<BR>=0A<BR>=0A&gt;&nbsp; PID TTY&nbsp; &nbsp;  Uid&nbsp; &nbsp; &nbsp;=
 &nbsp; Size State Command<BR>=0A&gt;&nbsp; &nbsp;  1&nbsp; &nbsp; &nbsp; &=
nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /sbin/init<=
BR>=0A&gt;&nbsp; &nbsp;  2&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [keventd]<BR>=0A&gt;&nbsp; &nbsp;  3&n=
bsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  =
S&nbsp;  [ksoftirqd_CPU0]<BR>=0A&gt;&nbsp; &nbsp;  4&nbsp; &nbsp; &nbsp; &n=
bsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [kswapd]<BR>=
=0A&gt;&nbsp; &nbsp;  5&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  [bdflush]<BR>=0A&gt;&nbsp; &nbsp;  6&nbsp=
; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&n=
bsp;  [kupdated]<BR>=0A&gt;&nbsp; &nbsp; 51&nbsp; &nbsp; &nbsp; &nbsp;  roo=
t&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bin/dhcpd LAN<BR>=0A=
&gt;&nbsp; &nbsp; 77&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; 0&nbsp;  S&nbsp;  chois -gserver 54273<BR>=0A&gt;&nbsp; &nbsp;=
 80&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nb=
sp;  S&nbsp;  /bin/dnsmasq -r /etc/resolv.dnsmasq<BR>=0A&gt;&nbsp; &nbsp; 8=
4 ttyS0&nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bi=
n/sh<BR>=0A&gt;&nbsp; &nbsp; 85&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bin/inetd<BR>=0A&gt;&nbsp; &nbsp=
; 86&nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&n=
bsp;  S&nbsp;  /bin/syslogd -n<BR>=0A&gt;&nbsp; &nbsp; 87&nbsp; &nbsp; &nbs=
p; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  S&nbsp;  /bin/kl=
ogd -n<BR>=0A&gt;&nbsp; &nbsp; 89 ttyS0&nbsp;  root&nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; 0&nbsp;  S&nbsp;  /bin/syslogd -R 192.168.5.4:514<BR>=0A&gt;&nbs=
p; &nbsp; 93 ttyS0&nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp;  R=
&nbsp;  ps<BR>=0A<BR>=0A<BR>=0A<BR>=0AThe machine 192.168.5.4 is reachable =
from my gateway(able to ping).<BR>=0AThe syslogd service on 192.168.5.4 is =
able to listen on remote machine.(Its /var/log/messages shows the log of 3-=
machines).<BR>=0ABut i am unable to get the Log of Gateway(192.168.5.1) on =
This machine(192.168.5.4).<BR>=0A<BR>=0ASorry for my poor english,<BR>=0APl=
ease help me.<BR>=0A<BR>=0AWith Regards<BR>=0AKanhu<BR>=0A=0A</P>=0A<br><br=
>=0A<A target=3D"_blank" HREF=3D"http://clients.rediff.com/signature/track_=
sig.asp"><IMG SRC=3D"http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/ww=
w.rediffmail.com/inbox.htm at Bottom" BORDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A
--Next_1111412360---0-203.199.83.39-9757--




More information about the busybox mailing list