Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> novell comment types</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Novell comment types
------------------------------------------------------------------------------
 Account comment types are administered by Novell. (Developers can call
 1-800-SAY-HELP to obtain unique comment types.) Comment types are usually
 in the range of 1 to 32768 (0x8000). Comment types greater than 32768 are
 reserved for experimental purposes and are not used by Novell. If you wish
 to create your own comment types, it is suggested that you use a type
 greater than 32768.

 The UsrAccChargeAdd() function instructs the file server to charge for a
 particular service. Comment notes are recorded in the accounting audit file
 NET$ACCT.DAT whenever a charge is made. The following structures illustrate
 and explain the kind of information contained in this Comment field.

 Connection Time Charge: Comment Type 1.

 This record contains the number of minutes a workstation was connected to
 the file server, the number of packets sent to the server and the number of
 disk read/writes. The fields in the record are listed below:

        Connect Time Charge Note
    Offset      Field          Type
    0     Connect Time         long
    8     Request Count        long
    8     Bytes Read High      WORD
    10    Bytes Read 2         WORD
    12    Bytes Read Low       WORD
    14    Bytes Written High   WORD
    16    Bytes Written 2      WORD
    18    Bytes Written Low    WORD

 Disk Storage Charge: Comment Type 2.

 This comment contains the number of disk blocks owned by a user at the time
 of the charge and the number of days in the charge period.

          Disk Storage charge Note
    Offset      Field           Type
    0     Blocks Owned          long
    4     Number Of Half Hours  long

 Login : Comment Type 3.

 This comment is recorded whenever an object successfully logs in. The
 Comment field contains the physical address of the station logging in.

          Login Note
    Offset      Field       Type
    0     Net               long
    4     Node (high)       long
    8     Node (low)        WORD

 Logout : Comment Type 4.

 This comment is recorded whenever an object logs out. The comment contains
 the physical address of the station logging out.

          Logout Note
    Offset      Field       Type
    0     Net               long
    4     Node (high)       long
    8     Node (low)        WORD

 ACCOUNT LOCKED : Comment Type 5.

 This comment is recorded whenever an account is locked because of too many
 incorrect login attempts. The Client field contains the ID of the object
 being locked out. The Comment field contains the physical address of the
 station being locked out.

          Account Locked Note
    Offset      Field       Type
    0     Net               long
    4     Node (high)       long
    8     Node (low)        WORD

 SERVER TIME MODIFIED: Comment Type 6.

 This comment is recorded when a console operator modifies the server
 time.The Time Stamp field contains the current time before the change was
 made. The Client field contains the ID of the object that changed the time.
 The Comment field contains the new time and date. This is important,
 because the accounting system charges based on time taken from the system
 clock. If for example you change the time for summer + or - 1 hour, this
 could affect the accounting if the accounting system was not made aware of
 the change.

          Server Time Modified Note
    Offset      Field       Type
    0     Year Since 1900   BYTE[1]
    1     Month             BYTE[1]
    2     Day               BYTE[1]
    3     Hour              BYTE[1]
    4     Minute            BYTE[1]
    5     Second            BYTE[1]

 Comment Record Definitions

 The NET$REC.DAT file is a companion file to the NET$ACCT.DAT audit file. It
 contains the information for formatting and displaying the comments.
 Utility programs use the information in the NET$REC.DAT file to display the
 information from the NET$ACCT.DAT audit file.

          NET$REC.DAT FILE
    Offset   Field      Type     Order
    0  Length         WORD       High-Low
    2  Comment Type   WORD       High-Low
    4  Field Count    BYTE[1]
    5  Data Type      BYTE[?]
    .  .  .
    .  .  .
    .  .  .
    ?  Format Length  BYTE[1]
    /  Format String  char[?]

 Length

 This field contains the length of the record, not including the length
 field itself, for example:
 Length = Field Count + Format Length + 4

 Comment Type

 This field contains the type of the comment being described.

 Field Count

 This field contains the number of fields in this type of record.

 Data Type

 This field contains the data type of the record. Data types larger than a
 LONG should be described as a series of BYTE, WORD, and LONG fields. Valid
 types are as follows:

 Record Data Types

    Value    Type
    1(BYTE)  An 8-bit value
    2(WORD)  A 16-bit value with the bytes stored in high-low order
    3(LONG)  A 32-bit value with the bytes stored in high-low order
    4(TEXT)  A length byte followed by a string of printable characters

 Format Length

 This field contains the length of the format control string used to print
 the contents of the comment records. It contains C-language print-style
 format expressions. The Novell audit utilities are written in C and will
 not understand any expressions other than valid C expressions.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson