Simple vlog example

  • 7016863
  • 24-Sep-2015
  • 10-Sep-2019

Environment

Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 2

Situation

A simple example of vlog usage.

Resolution

Create a file /opt/novell/vigil/bin/vlog-test.flt and add the following:

VOL1:/** (OPEN(NCP) CLOSE(NCP))
VOL1:/** (OPEN(CIFS) CLOSE(CIFS))
VOL1:/** (OPEN(NSS) CLOSE(NSS) RENAME(NSS) DELETE(NSS) CREATE(NSS) ADDTRUSTEE(NSS) REMOVETRUSTEE(NSS) SETINHERITEDRIGHTS(NSS))

Note: Change "VOL1", to correspond to valid nss volume name. 

 Run the following command:

/opt/novell/vigil/bin/vlog -V 60 -F /opt/novell/vigil/bin/vlog-test.flt

 Note: -V 60 is just for logging purposes.

 Valid filter options are:

NCP (Open, Close)
CIFS (Open, Close)
NSS (Delete, Create, Open, Close, Rename, ModifyMetaData, AddTrustee, RemoveTrustee, SetInheritedRights, Link) 

Note: For each line in the vlog-test.flt file, vlog will display a filter table

   VLOG_FILTER_Allocate
                               NCP         NSS        CIFS
                          0000000C    00000000    00000000
                      ------------------------------------------
               DELETE            .           0           .
               CREATE            .           0           .
                 OPEN            1           0           0
                CLOSE            1           0           0
               RENAME            .           0           .
       MODIFYMETADATA            .           0           .
           ADDTRUSTEE            .           0           .
        REMOVETRUSTEE            .           0           .
   SETINHERITEDRIGHTS            .           0           .
                 LINK            .           0           .

   Err[VLOG_FILTER_Allocate(741)] NCP[00000030] NSS[00000000] CIFS[00000000]

   VLOG_FILTER_Allocate
                               NCP         NSS        CIFS
                          00000000    00000000    0000000C
                      ------------------------------------------
               DELETE            .           0           .
               CREATE            .           0           .
                 OPEN            0           0           1
                CLOSE            0           0           1
               RENAME            .           0           .
       MODIFYMETADATA            .           0           .
           ADDTRUSTEE            .           0           .
        REMOVETRUSTEE            .           0           .
   SETINHERITEDRIGHTS            .           0           .
                 LINK            .           0           .

   Err[VLOG_FILTER_Allocate(741)] NCP[00000000] NSS[00000000] CIFS[00000003]


   VLOG_FILTER_Allocate
                               NCP         NSS        CIFS
                          00000000    000001DF    00000000
                      ------------------------------------------
               DELETE            .           1           .
               CREATE            .           1           .
                 OPEN            0           1           0
                CLOSE            0           1           0
               RENAME            .           1           .
       MODIFYMETADATA            .           0           .
           ADDTRUSTEE            .           1           .
        REMOVETRUSTEE            .           1           .
   SETINHERITEDRIGHTS            .           1           .
                 LINK            .           0           .

   Err[VLOG_FILTER_Allocate(741)] NCP[00000000] NSS[0000039F] CIFS[00000000]

Additional Information

man vlog for additional information.