1833780 Members
2101 Online
110063 Solutions
New Discussion

sam not available

 
SOLVED
Go to solution
Jestin John Chacko
Regular Advisor

sam not available

I am not able to acess the sam ,while i am trying that its showing directory missing in /var/sam directory i checked it out but i didnt find a directory .also i searched for the samlog,that is also missing is there any way to recover my sam utility i am really worrying with this issue?
9 REPLIES 9
TTr
Honored Contributor

Re: sam not available

There are quite a few files and subdirectories in /var/sam. You should restore the contents, you can not recreate the files.

Is it possible that the entire /var was left unmounted? Or if it was deleted, you need to find out what else got deleted in /var.
Bijeesh
Respected Contributor

Re: sam not available

hai
did you accidently delete any files?
Anyway you need to restore these from your backup.

Bill Hassell
Honored Contributor
Solution

Re: sam not available

sam is located in /usr/sbin/sam
There should be a /var/sam directory. Go ahead and create it with 555 permissions and bin:bin ownership. /var/sam normally contains the log so if it is gone, someone with root permissions has removed all the sam logs. Run this command to verify the sam installtion:

# swverify SystemAdmin.SAM

You'll need to follow the instructions at the end of the listing to run swjob and read the error messages.


Bill Hassell, sysadmin
Jestin John Chacko
Regular Advisor

Re: sam not available

Tanks fo the help to all in this critical solution.

Its because accidentally i deleted my SAM directory in /var

i tried to make the directory using the given permission now its showing /var/sam/lock directory missing can you suggest any solution
Robert-Jan Goossens_1
Honored Contributor

Re: sam not available

Hi,

# cd /var/sam
# mkdir lock
# chmod 755 lock
# chown bin:bin lock

Try sam again.

Regards,
Robert-Jan
Bijeesh
Respected Contributor

Re: sam not available

hi
create the directory lock in /var/sam with 755 perm.
owner and group will be bin:bin
UVK_1
Advisor

Re: sam not available

mkdir /var/sam/lock
chown bin:bin /var/sam/lock
chmod 755 /var/sam/lock
touch /var/sam/lock/lock_console

Try doing the above and see if it works
Jestin John Chacko
Regular Advisor

Re: sam not available

Tanks a lot to all who helped me in this issue now i am able to access my sam

again a big thanks to ITRC forum members
Jestin John Chacko
Regular Advisor

Re: sam not available

Thanks