NIO CommKit Host Interface Installation and System Administration Manual

DKACCT(4) DKACCT(4)
E-70 CommKit Host Interface, Release 4.0
NAME
dkacct – host interface accounting file format
SYNOPSIS
#include <dkit/acct.h>
DESCRIPTION
Accounting files produced by dkdaemon(1M) have records in the form defined by <dkit/acct.h>, whose
contents are:
struct dkacct
{
short dkA_unit; /* physical interface unit */
short dkA_chan; /* physical channel on unit */
time_t dkA_stime; /* connection start time */
time_t dkA_etime; /* connection end time */
uid_t dkA_uid; /* uid at open */
dk_chan_stat_tdkA_stats; /* session statistics */
};
typedef struct dkacct dkacct_t;
A record is written to the host interface accounting file each time a channel on that interface is closed. Each
record describes a complete session including the start and end times in standard time(2) format, and the
complete transfer statistics. The transfer statistics are defined in <dkit/rdfp.h> and contain:
struct dk_chan_stats
{
u_long xmit_msgs; /* messages transmitted */
u_long xmit_blocks; /* URP blocks transmitted */
u_long xmit_bytes; /* bytes transmitted */
u_long xmit_enq; /* transmitter ENQuires sent */
u_long xmit_init; /* INITn characters transmitted */
u_long rcv_msgs; /* messages received */
u_long rcv_blocks; /* URP blocks received */
u_long rcv_badblocks; /* URP blocks REJected */
u_long rcv_bytes; /* bytes received */
u_long rcv_rej; /* REJect characters received */
u_long rcv_enq; /* ENQuires received */
u_long rcv_initreq; /* INITREQ characters received */
u_long rcv_init; /* INITn characters received */
};
typedefstruct dk_chan_stats dk_chan_stat_t;
FILES
/var/opt/dk/log/dkacct default accounting file
SEE ALSO
dkdaemon(1M), dkserver(1M), dkstat(1M), dkaudit(4), dkhs(7), dkux(7).
time(2) in the UNIX System V System Programmer’s Reference Manual.
BUGS
Accounting records for incoming sessions list the user ID of the dkserver(1M) that accept the connection
rather than the user ID of the spawned process.