[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

nislog Command

Purpose

The nislog command displays the contents of the transaction log.

Syntax

nislog [ -h num | -t num ] [ -v ] [directory]...

Description

The nislog command displays the contents of the transaction log.

Each transaction consists of two parts: the particulars of the transaction and a copy of an object definition.

Here is an example that shows the transaction log entry that was made when the wiz.com. directory was first created. XID refers to the transaction ID.

rootmaster# /usr/sbin/nislog -h 1
NIS Log printing facility.
NIS Log dump:
        Log state : STABLE
        Number of updates    : 48
        Current XID          : 39
        Size of log in bytes : 18432
        ***UPDATES***@@@@@@@@@@@@@@TRANSACTION@@@@@@@@@@@@@@#00000,
        XID : 1
        Time        : Wed Nov 25 10:50:59 1992
 Directory   : wiz.com.
 Entry type   : ADD  Name
 Entry timestamp : Wed Nov 25 10:50:59 1992
 Principal       : rootmaster.wiz.com.
 Object name     : org_dir.wiz.com.
...................Object......................
Object Name   : org_dir
Owner         : rootmaster.wiz.com.
Group         : admin.wiz.com.
Domain        : wiz.com.
Access Rights : r---rmcdr---r---
Time to Live  : 24:0:0
Object Type   : DIRECTORY
Name : `org_dir.wiz.com.'
Type: NIS
Master Server : rootmaster.wiz.com.
.
.
................................................
@@@@@@@@@@@@@@TRANSACTION@@@@@@@@@@@@@@
#00000, XID : 2

Flags

-h num Display transactions starting with the head (beginning) of the log. If the number is omitted, the display begins with the first transaction. If the number 0 is entered, only the log header is displayed
-t num Display transactions starting backward from the end (tail) of the log. If the number is omitted, the display begins with the last transaction. If the number 0 is entered, only the log header is displayed
-v Verbose mode

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]