eventlogadm man page on Solaris

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
Solaris logo
[printable version]

EVENTLOGADM(1M)		  System Administration tools	       EVENTLOGADM(1M)

NAME
       eventlogadm - push records into the Samba event log store

SYNOPSIS
       eventlogadm [-s] [-d] [-h] -o addsource EVENTLOG SOURCENAME MSGFILE

       eventlogadm [-s] [-d] [-h] -o write EVENTLOG

       eventlogadm [-s] [-d] [-h] -o dump EVENTLOG RECORD_NUMBER

DESCRIPTION
       This tool is part of the samba(1) suite.

       eventlogadm is a filter that accepts formatted event log records on
       standard input and writes them to the Samba event log store. Windows
       client can then manipulate these record using the usual administration
       tools.

OPTIONS
       -s FILENAME
	   The -s option causes eventlogadm to load the configuration file
	   given as FILENAME instead of the default one used by Samba.

       -d
	   The -d option causes eventlogadm to emit debugging information.

       -o addsource EVENTLOG SOURCENAME MSGFILE
	   The -o addsource option creates a new event log source.

       -o write EVENTLOG
	   The -o write reads event log records from standard input and writes
	   them to the Samba event log store named by EVENTLOG.

       -o dump EVENTLOG RECORD_NUMBER
	   The -o dump reads event log records from a EVENTLOG tdb and dumps
	   them to standard output on screen.

       -h
	   Print usage information.

EVENTLOG RECORD FORMAT
       For the write operation, eventlogadm expects to be able to read
       structured records from standard input. These records are a sequence of
       lines, with the record key and data separated by a colon character.
       Records are separated by at least one or more blank line.

       The event log record field are:

       ·    LEN - This field should be 0, since eventlogadm will calculate
	   this value.

       ·    RS1 - This must be the value 1699505740.

       ·    RCN - This field should be 0.

       ·    TMG - The time the eventlog record was generated; format is the
	   number of seconds since 00:00:00 January 1, 1970, UTC.

       ·    TMW - The time the eventlog record was written; format is the
	   number of seconds since 00:00:00 January 1, 1970, UTC.

       ·    EID - The eventlog ID.

       ·    ETP - The event type -- one of "INFO", "ERROR", "WARNING", "AUDIT
	   SUCCESS" or "AUDIT FAILURE".

       ·    ECT - The event category; this depends on the message file. It is
	   primarily used as a means of filtering in the eventlog viewer.

       ·    RS2 - This field should be 0.

       ·    CRN - This field should be 0.

       ·    USL - This field should be 0.

       ·    SRC - This field contains the source name associated with the
	   event log. If a message file is used with an event log, there will
	   be a registry entry for associating this source name with a message
	   file DLL.

       ·    SRN - The name of the machine on which the eventlog was generated.
	   This is typically the host name.

       ·    STR - The text associated with the eventlog. There may be more
	   than one string in a record.

       ·    DAT - This field should be left unset.

EXAMPLES
       An example of the record format accepted by eventlogadm:

		LEN: 0
		RS1: 1699505740
		RCN: 0
		TMG: 1128631322
		TMW: 1128631322
		EID: 1000
		ETP: INFO
		ECT: 0
		RS2: 0
		CRN: 0
		USL: 0
		SRC: cron
		SRN: dmlinux
		STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
		DAT:

       Set up an eventlog source, specifying a message file DLL:

		eventlogadm -o addsource Application MyApplication | \\
		     %SystemRoot%/system32/MyApplication.dll

       Filter messages from the system log into an event log:

		tail -f /var/log/messages | \\
		     my_program_to_parse_into_eventlog_records | \\
			  eventlogadm SystemLogEvents

VERSION
       This man page is correct for version 3.0.25 of the Samba suite.

AUTHOR
       The original Samba software and related utilities were created by
       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
       Source project similar to the way the Linux kernel is developed.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌────────────────────┬─────────────────────────────────┐
       │  ATTRIBUTE TYPE    │	      ATTRIBUTE VALUE	      │
       ├────────────────────┼─────────────────────────────────┤
       │Availability	    │ SUNWsmbar, SUNWsmbac, SUNWsmbau │
       ├────────────────────┼─────────────────────────────────┤
       │Interface Stability │ External			      │
       └────────────────────┴─────────────────────────────────┘
NOTES
       Source code for Samba is available in the SUNWsmbaS package.

       Samba(7) delivers the set of four SMF(5) services as can be seen from
       the following example:

	    $ svcs samba wins winbind swat
	   STATE	  STIME	   FMRI
	   disabled	  Apr_21   svc:/network/samba:default
	   disabled	  Apr_21   svc:/network/winbind:default
	   disabled	  Apr_21   svc:/network/wins:default
	   disabled	  Apr_21   svc:/network/swat:default

       where the services are:

	"samba"
	   runs the smbd daemon managing the CIFS sessions

	"wins"
	   runs the nmbd daemon enabling the browsing (WINS)

	"winbind"
	   runs the winbindd daemon making the domain idmap

	"swat"
	   Samba Web Administration Tool is a service providing access to
	   browser-based Samba administration interface and on-line
	   documentation.  The service runs on software loopback network
	   interface on port 901/tcp, i.e. opening "http://localhost:901/" in
	   browser will access the SWAT service on local machine.

       Please note: SWAT uses HTTP Basic Authentication scheme where user name
       and passwords are sent over the network in clear text. In the SWAT case
       the user name is root. Transferring such sensitive data is advisable
       only on the software loopback network interface or over secure
       networks.

Samba 3.6			  04/10/2012		       EVENTLOGADM(1M)
[top]

List of man pages available for Solaris

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net