LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-21-2007, 03:47 PM   #1
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Rep: Reputation: 19
Question Mashine crashes daily at about 19.00 how to find the logs and reason on Sun


Hi,
I got this problem with my server, latest 2 weeks it sporadicaly crashes, mostly at 19.00 or about 19.00 it crashes or shuts down, I cant find the reason yet, dont know maybe it is hacked, cause I cant find any normal info in logs, in lastlog see only 2 lines and in everyline difernt IP, one is my own, other is from some internet provider, no other info, even if I logged in after crash maybe 10 times, If I'm not mistaking it has to log everythin??? and in other logs, cant finde anythin.

1 question, Where are the logs? I ware looking in var/log, var/adm/ ,

is it all, or is ther another better log somewhere??

this is SunOs 5.8
I dont use any graphical stuff, this mashine is a telecom switch. so there is no additional software, or whatever, its just sun and an telecom aplication that hase a db, nothing alse.

Please can sombody tell me where pricisly to search for logs, to find if I'm hacked, or to find the reason of the crash.

Thanks.
 
Old 01-21-2007, 05:23 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Have a look at /var/crash/<hostname> for kernel panic dumps.

If you suspect your machine to being compromised, you can use the Solaris Fingerprint Database to check it:
http://sunsolve.sun.com/pub-cgi/show...ntent/content7

You may also want to use a rootkit checker like http://www.chkrootkit.org/ or similar to verify your system.
 
Old 01-21-2007, 07:26 PM   #3
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Thanks

Very thankfull for this info, going to try now...
 
Old 01-21-2007, 08:01 PM   #4
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Tryd the rootkit cheker

Tryd the rootkit chekker, didnot find anything,
also chekkedc the var/crash directory, there are some files but not from today, from 2 days before, and in that files is all trash, like this :



T񈛬0@\A^LZA$loU^L@n
^LߺM<\TX@O(A-$HPY^Li@NĘ~P(,t\<PgS^Ls.@BAPMŀ
g@sה@UA4^L@8(@8^LjԘ,zTL9TY@d4v9^LLX d'@40Tt]x@
g@nPuA-񖺄0{d<9^LB^LHp܂0 ^L@:@!P=AK@n`j\}T@nD*<@oD*@
@A@p"4@hh\ -|L Ump FSOx8^L@@AH آ
↰XD%A +J|3>ThCAx8X`myXTABSd֖\4JH$0<@y8`RAb
A$ߌD@Sh0@@@ApTJČoA$Hy0^L\@A<@ڨ<B^L Ld- 9T
q@7^L@wD<QR0H@DA$h@m4%,1QA]`h


Cant understand this stuff.....
 
Old 01-21-2007, 08:20 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Not trash, but snapshots of what was going on when the system last crashed.

Not sure it is relevant with Solaris 8, but you can try running that script, passing the id of the crash.

Code:
#!/bin/ksh
if [ -f unix.$1 ]
then
        if [ -f msgbuf.$1 ]
        then
                echo msgbuf.$1 exists
        else
                echo "$<msgbuf" | mdb -k unix.$1 vmcore.$1 > msgbuf.$1
                more msgbuf.$1
                sleep 1
                echo msgbuf.$1 created
        fi
else
        echo "Usage: msgbuf <id>"
fi
If it doesn't works because your Solaris version predates mdb, then try that one:

Code:
echo '$c' | adb -k vmunix.xx vmcore.xx
Where xx is the last crash ID.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
k9copy crashes without reason ckent Linux - Desktop 4 01-25-2007 08:47 PM
How do I send daily clamav scan logs to my work e-mail account rwtreke SUSE / openSUSE 3 05-20-2005 12:05 PM
Mailing daily logs via cron? ladyath Linux - General 3 03-29-2005 11:51 PM
Kernel 2.6.9 crashes daily on Fedora Core 2 abefroman Fedora 3 12-04-2004 05:04 PM
Mail daily logs through shell scripts klnasveschuk Linux - Software 0 08-07-2003 05:02 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration