Unix Technical Forum

howto configure and use bsdlog

This is a discussion on howto configure and use bsdlog within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, I want to write to the system log on AIX from within my kernel extension on the eve ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 07:32 AM
Kamal R. Prasad
 
Posts: n/a
Default howto configure and use bsdlog

Hello,

I want to write to the system log on AIX from within my kernel
extension on the eve of a panic. I believe there is something called
bsdlog() for that purpose. Can someone point to/provide info on how to
configure and use the bsdlog facility on AIX 5.3?

thanks
-kamal

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:33 AM
Greg Beeker
 
Posts: n/a
Default Re: howto configure and use bsdlog


Kamal R. Prasad wrote:
> Hello,
>
> I want to write to the system log on AIX from within my kernel
> extension on the eve of a panic. I believe there is something called
> bsdlog() for that purpose. Can someone point to/provide info on how

to
> configure and use the bsdlog facility on AIX 5.3?


try the built in logger command

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:33 AM
Kamal R. Prasad
 
Posts: n/a
Default Re: howto configure and use bsdlog


Greg Beeker wrote:
> Kamal R. Prasad wrote:
> > Hello,
> >
> > I want to write to the system log on AIX from within my kernel
> > extension on the eve of a panic. I believe there is something

called
> > bsdlog() for that purpose. Can someone point to/provide info on how

> to
> > configure and use the bsdlog facility on AIX 5.3?

>
> try the built in logger command


The answer is that one has to put the line *.debug in .etc/syslog.conf
and have syslogd enabled. Then there is another funda about using
bsdlog() to write to syslog from within the kernel.

regards
-kamal

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:38 AM
John Rigler
 
Posts: n/a
Default Re: howto configure and use bsdlog

There is also a command out there to write to the error report and an odm
change that sends you an email when something
hits the errpt, which is pretty cool. I can dig it up for you if you are
interested.

c ya

"Kamal R. Prasad" <kamalp@acm.org> wrote in message
news:1116957626.544961.199870@g47g2000cwa.googlegr oups.com...
>
> Greg Beeker wrote:
>> Kamal R. Prasad wrote:
>> > Hello,
>> >
>> > I want to write to the system log on AIX from within my kernel
>> > extension on the eve of a panic. I believe there is something

> called
>> > bsdlog() for that purpose. Can someone point to/provide info on how

>> to
>> > configure and use the bsdlog facility on AIX 5.3?

>>
>> try the built in logger command

>
> The answer is that one has to put the line *.debug in .etc/syslog.conf
> and have syslogd enabled. Then there is another funda about using
> bsdlog() to write to syslog from within the kernel.
>
> regards
> -kamal
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 07:38 AM
Kamal R. Prasad
 
Posts: n/a
Default Re: howto configure and use bsdlog



John Rigler wrote:
> There is also a command out there to write to the error report and an odm
> change that sends you an email when something
> hits the errpt, which is pretty cool. I can dig it up for you if you are
> interested.
>

That can be done by reading /tmp/syslog.out too.
I was/am concerned mostly with th writing debug info onto a logfile
just before the system crashes or becomes unstable.

regards
-kamal


> c ya
>
> "Kamal R. Prasad" <kamalp@acm.org> wrote in message
> news:1116957626.544961.199870@g47g2000cwa.googlegr oups.com...
> >
> > Greg Beeker wrote:
> >> Kamal R. Prasad wrote:
> >> > Hello,
> >> >
> >> > I want to write to the system log on AIX from within my kernel
> >> > extension on the eve of a panic. I believe there is something

> > called
> >> > bsdlog() for that purpose. Can someone point to/provide info on how
> >> to
> >> > configure and use the bsdlog facility on AIX 5.3?
> >>
> >> try the built in logger command

> >
> > The answer is that one has to put the line *.debug in .etc/syslog.conf
> > and have syslogd enabled. Then there is another funda about using
> > bsdlog() to write to syslog from within the kernel.
> >
> > regards
> > -kamal
> >


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com