1824487 Members
3585 Online
109672 Solutions
New Discussion юеВ

GSP logging

 
Marius Pana_1
Regular Advisor

GSP logging

Hi all,

We are in the process of setting up OVO to monitor GSP logs through STM. I am wondering how the logs in /var/stm/logs/os are rotated and if it can be controlled.

We will be setting up monitoring rules and would like to know if the "Log Entry" number will always increment or if it will at some point reset back to zero.

Any documentation will be greatly appreciated.

Thanks,
Marius
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: GSP logging

Shalom,

As far as I know they are not rotated and are managed interactively with the menu system.

It is probably possible to manage them by script with a:

telnet ip address << EOF
user
password
SL
... blah blah blah

EOF type script.

Obviously such a script is a security hazard itself.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Merritt_2
Honored Contributor

Re: GSP logging

Hi Marius,
Could you be more specific on which files you mean, and how you will be monitoring them?

Do you mean the logs that are viewed with logtool in STM, with the name logxx.raw? I don't think these are rotated (but if you are getting a large number of these files, something needs to be done as you almost certainly have a hardware problem).

Andrew
Bill Hassell
Honored Contributor

Re: GSP logging

The GSP logs are kept in GSP memory (separate from HP-UX RAM) and are a simple FIFO list. Once the log memory is full, the oldest entries are deleted. GSP does not display log entries except on request so scripting a pull of the logs entries will be a bit tricky as they are designed to be read interactively. Your script would also have to find where new entries occur in order to avoid duplicates. If you have left STM/EMS diagnostics and notifications running, you can configure EMS to log directly to OVO.


Bill Hassell, sysadmin
Marius Pana_1
Regular Advisor

Re: GSP logging

cclogd logs GSP messages in hex format to /var/stm/logs/os/[ccerrlog|ccbootlog]. I am wondering on what basis those logs are rotated and if the Log Entry # can be used to uniquely identify one entry/message. If it is not unique and at one point it starts from zero then I need to find something that is unique to all messages so that I can efficiently monitor chassis logs.

Kind regards,
Marius
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
Andrew Merritt_2
Honored Contributor

Re: GSP logging

Hi Marius,
I'd echo Bill's question, and wonder what monitoring you are trying to do that is not already being done by the EMS HW Monitors (which can already be integrated with SNMP).

As far as the ccerrlog and ccbootlog files, the daemon keeps a maximum of 10 files before deleting the oldest. I'm not sure where the Log Entry is held. When exactly do you see this displayed?

Andrew