1753797 Members
7390 Online
108799 Solutions
New Discussion юеВ

Re: sulog

 
SOLVED
Go to solution
Ron Irving
Trusted Contributor

sulog

So,

Where did my sulog go? Running 11.11 on 5 servers, and one of them is missing the sulog.

Any ideas?

Cheers!!

Ron
Should have been an astronaut.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: sulog

Hi Ron:

Your 'sulog' is managed by '/sbin/init.d/clean_adm' as controlled by '/etc/rc.config.d/clean'.

Normally at boot (startup) the current '/var/adm/sulog' is moved to '/var/adm/OLDsulog' and a new 'sulog' created.

Regards!

...JRF...



Ron Irving
Trusted Contributor

Re: sulog

Hey, thanks JRF.

Here's the thing:

1. There is no OLDsulog anywhere on the system,and,
2. The system was rebooted on Sunday.

Is there a way to re-create it, without causing too much heartache?
Should have been an astronaut.
James R. Ferguson
Acclaimed Contributor

Re: sulog

Hi (again) Ron:

> Is there a way to re-create it, without causing too much heartache?

Sure:

# cat /dev/null > /var/adm/sulog
# chmod 600 /var/adm/sulog
# chown root:root /var/adm/sulog

...which is what '/sbin/init.d/clean_adm' does :-)

Regards!

...JRF...

Ron Irving
Trusted Contributor

Re: sulog

Sigh...there's always something.

clemfg01 home/rirving $ sudo cat /dev/null > /var/adm/sulog
sh: /var/adm/sulog: Cannot create the specified file.

I guess without the 'something', we'd be out of work.
Should have been an astronaut.
James R. Ferguson
Acclaimed Contributor
Solution

Re: sulog

Hi (again) Ron:

> sh: /var/adm/sulog: Cannot create the specified file.

You must be root (but then I assume your 'sudo' took care of that).

Regards!

...JRF...
Ron Irving
Trusted Contributor

Re: sulog

Thanks JRF!!! I actually had to su to root to get the commands to run. sudo wasn't doing it.

Strange, but done.

Cheers!!

Ron
Should have been an astronaut.
Dennis Handly
Acclaimed Contributor

Re: sulog

>sh: /var/adm/sulog: Cannot create the specified file.

The output redirection is done by the outermost user shell, not by root.

>I actually had to su to root to get the commands to run.

Or: $ sudo cp /dev/null /var/adm/sulog