1829148 Members
2197 Online
109986 Solutions
New Discussion

Sam log events problem

 
John_693
New Member

Sam log events problem

I'm new in using SAM, I know that there is a function to view the samlog content.
e.g.
------------------------------------------
* Executing the following command:
LANG=C LC_ALL=C /cta01/sam/sybase.sh
------------------------------------------
I'm asking to add the user information to this log file:
e.g.
------------------------------------------
* (John)
* Executing the following command:
LANG=C LC_ALL=C /cta01/sam/sybase.sh
------------------------------------------
How can I do that, actually I don't know which file should be modified.

Any comment ? Thank you for your consideration


4 REPLIES 4
Sundar_7
Honored Contributor

Re: Sam log events problem

Hi,

I am not sure if I understand exactly what you are trying to achive ?

Are u trying to manually edit the SAM log file and insert the user name ?

samlog_viewer is the command to view the samlog content. I dont remember the location though. Look in /usr/sam/bin.

Sam log file is located under /var/sam/log

Sundar
Learn What to do ,How to do and more importantly When to do ?
John_693
New Member

Re: Sam log events problem

SAM will automatically log which script run at what time, I want to modify some code in SAM, so that SAM will automatically log such information with user infomation also.

Thank you
Naveej.K.A
Honored Contributor

Re: Sam log events problem

Hi,

samlogs are stored in /var/sam/log/samlog file.

These log files are not saved in the way normal log files are saved. So its not possilbe to interpret the data in samlog without the use of any utility.

./usr/sam/bin/samlog_viewer accomplishes this task.

man samlog_viewer for more details

regds
naveej
practice makes a man perfect!!!
John_693
New Member

Re: Sam log events problem

So is it possible to find out which script/execute is used for handle the log function.

Thank you