1834136 Members
2419 Online
110064 Solutions
New Discussion

Re: /var/adm/messages

 
navin
Super Advisor

/var/adm/messages

Hi,
Does /var/adm/messages filled by running dmesg.what for the files messages.0,messages.1
Please educate.
thanks
Learning ...
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: /var/adm/messages

Hi:

Typically '/var/adm/messages' is derived from running 'dmesg'. The file will grow infinitely unless you trim it, null it, or stop writing to it. Have a look at the 'dmesg' man pages for more information.

Regards!

...JRF...
Ricky B. Nino
Frequent Advisor

Re: /var/adm/messages

Hi,

You are right! /var/adm/messages were filled by dmesg command.

I guess messages.0, messages.n are just user files.

Opportunities expand for people willing to put time and effort into learning new skills.
Jeff Schussele
Honored Contributor

Re: /var/adm/messages

Hi Ricky,

/var/adm/messages is not created on installation or by default. It's created when you run dmesg as follows:

dmesg > /var/adm/messages
or
dmesg >> /var/adm/messages

The .0 & .1 files were created either by a log rolling script or by specifying /var/adm/messages.0 in that command.
I'd check root's cron to see if you have an entry creating these files.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: /var/adm/messages

Hi Navin,

Sorry for the wrong name...mixed up questions there.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Manju Kampli
Trusted Contributor

Re: /var/adm/messages

the /var/adm/messages files are created by crontab job "dmesg" .. There could be some other jobs also running in the crontab (OR run manually) which could be moving these files to limit the size of /var/adm/messages (and possibly compressing them) .. you could see these using crontab -l in the root login.

Hope this helps
Manju
Never stop "LEARNING"