1747984 Members
4209 Online
108756 Solutions
New Discussion юеВ

Re: SAM log

 
oprakash
Frequent Advisor

SAM log

Hi,

I am using HP 11.00 OS version, i want to know where the log files will be created for SAM. My excat requirement is i want to know when i created a particular user ID.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: SAM log

If you look at the man page for sam, you will find (in the FILES section) that the logs are:

/var/sam/log/samlog

- and -

/var/sam/log/samlog.old


Pete

Pete
johnsonpk
Honored Contributor

Re: SAM log

Hi prakash,

SAM log ..> /var/sam/log/samlog

use samlog_viewer for viewing the contents

/usr/sam/bin/samlog_viewer


Thanks!!
Johnson
Ganesan R
Honored Contributor

Re: SAM log

Hi Oprakash,

You cannot directly view the sam log which is stored on /var/sam/log/samlog since it contains raw SAM logfile data. You need to use samlog_viewer tool to read the logs.

Just run this command,
#/usr/sam/bin/samlog_viewer

If you want to view the old samlog(/var/sam/log/samlog.olg) use this command.

#/usr/sam/bin/samlog_viewer /var/adm/log/samlog.old
Best wishes,

Ganesh.
avizen9
Esteemed Contributor

Re: SAM log

Hello Oprakash,
you can view all sam logs in /var/sam/log/samlog & samlog.old


when you will add any particular user id will generate logs looks below,

here i added user name test123

hope this will helps you, thanks,


@!@8@1243520731@0
Exiting Task Manager with task UG_IVALIDATE_GROUP.
@!@8@1243520731@0
Entering Task Manager with task UG_GET_DEFAULT_UID.
@!@2@1243520731@0
Performing task "Get Suitable Default User ID".
@!@8@1243520731@0
Entering Task Manager with task UG_ICOUNT_USERS.
@!@2@1243520731@0
Performing task "Count Users".
@!@8@1243520732@0
Exiting Task Manager with task UG_ICOUNT_USERS.
@!@8@1243520733@0
Exiting Task Manager with task UG_GET_DEFAULT_UID.
@!@8@1243520733@0
Entering Task Manager with task UG_STAT_FILE.
@!@2@1243520733@0
Performing task "Stat File".
@!@8@1243520733@0
Exiting Task Manager with task UG_STAT_FILE.
@!@8@1243520743@0
Entering Task Manager with task UG_VALIDATE_NEWUSER.
@!@2@1243520743@0
Performing task "Validate New User".
@!@8@1243520743@0
Exiting Task Manager with task UG_VALIDATE_NEWUSER.
@!@8@1243520775@0
Entering Task Manager with task UG_VALIDATE_HOMEDIR_ADD.
@!@2@1243520775@0
Performing task "Validate Home Directory".
@!@8@1243520775@0
Exiting Task Manager with task UG_VALIDATE_HOMEDIR_ADD.
@!@8@1243520776@0
Entering Task Manager with task UG_VALIDATE_STARTUP_PROG.
@!@2@1243520776@0
Performing task "Validate Login Shell".
@!@8@1243520776@0
Exiting Task Manager with task UG_VALIDATE_STARTUP_PROG.
@!@1@1243520800@0
Adding user test123.
@!@8@1243520800@0
Entering Task Manager with task UG_ADD_USER.
@!@2@1243520800@0
Performing task "Add User".
@!@8@1243520800@0
Entering Task Manager with task ug_usradd_cl.
@!@2@1243520800@0
Performing task "Add User Account to NIS Client".
@!@2@1243520800@0
Executing the following command:\C/usr/sam/lbin/useradd.sam -g users -d /ho
me/test123 -c "test123,bld8,4167," -s /usr/bin/sh -p PLIWS.BVIWvZg -o -u 111 test123\C
@!@2@1243520800@0
Command completed with exit status 0.
@!@8@1243520800@0
Exiting Task Manager with task ug_usradd_cl.
@!@8@1243520800@0
Exiting Task Manager with task UG_ADD_USER.
@!@1@1243520800@0
Successfully added user test123.
oprakash
Frequent Advisor

Re: SAM log

Thanks team,

Now i am able to view the log