← 返回命令列表

Linux command

eventlogadm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create event log

eventlogadm -o addsource [Application] [/var/lib/samba/eventlog]

Dump event log

eventlogadm -o dump [Application]

Write event

eventlogadm -o write [Application] [message]

说明

eventlogadm is a Samba utility for managing Windows-compatible event logs on Unix systems. It allows creating, reading, and writing event log databases that Windows clients can access. The tool works with Samba's implementation of the Windows Event Log service. Event logs are stored in TDB (Trivial Database) format and can be viewed from Windows Event Viewer. eventlogadm is useful for integrating Unix logging with Windows-centric management tools.

参数

-o _OP_
Operation to perform.
-s _CONF_
Samba config file.
addsource _NAME_ _PATH_
Create event log source.
dump _NAME_
Dump log contents.
write _NAME_ _MSG_
Write event.

FAQ

What is the eventlogadm command used for?

eventlogadm is a Samba utility for managing Windows-compatible event logs on Unix systems. It allows creating, reading, and writing event log databases that Windows clients can access. The tool works with Samba's implementation of the Windows Event Log service. Event logs are stored in TDB (Trivial Database) format and can be viewed from Windows Event Viewer. eventlogadm is useful for integrating Unix logging with Windows-centric management tools.

How do I run a basic eventlogadm example?

Run `eventlogadm -o addsource [Application] [/var/lib/samba/eventlog]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _OP_ do in eventlogadm?

Operation to perform.