IP Host Traffic Accounting History
(SM-SmallSol031)
Solution’s SOSL Based management process script:
The solution defines the following main module:
MainIpAccounting:
This is the main module that controls and instantiates the ‘IpAccounting’ and the ‘IpAccountingStats’ modules.
The details of the Main modules and the transient Service modules are provided below:
MODULE MainIpAccounting ();
DESCRIPTION "Interface INVENTORY information";
BEGIN
MODULE-CALL IpAccounting ();
POLL-FREQ
{
WAIT (6000);
MODULE-CALL IpAccountingStats ();
};
END
MODULE
IpAccounting ();
DESCRIPTION
"IP Address traffic Statistics";
BEGIN
ALL-DEV BY DEV
{
DEFINE actCheckPointVar INT;
actCheckPointVar = POLL
(actCheckPoint);
SET (actCheckPoint
actCheckPointVar);
SET-INDEX lipCkAccountingTable (ckactSrc [ckactSrc, IP; ckactDst, IP]) BY-INDEX;
WITH-INDEX lipCkAccountingTable
{
POLL
(ckactPkts; ckactBytes);
};
};
END
MODULE IpAccountingStats ();
DESCRIPTION "IP Address traffic Statistics";
BEGIN
ALL-DEV BY DEV
{
WITH-INDEX lipCkAccountingTable
{
#####################################
###########Defining the First-Run Variables:
#####################################
DEFINE ckactPktsT1 MAP INT;
DEFINE ckactBytesT1 MAP INT;
DEFINE ckactPkts DB INT;
DEFINE ckactBytes DB INT;
#####################################
###########Populating the First-Run values:
#####################################
ckactPktsT1 = ckactPkts;
ckactBytesT1 = ckactBytes;
#####################################
######Cleaning up the database from the excess
######transient First-Run values:
#####################################
RMV (ckactPkts; ckactBytes);
#####################################
###########Populating the Database with the
###########Second-Run values:
#####################################
MODULE-CALL IpAccounting ();
#####################################
###########Defining the Second-Run Variables:
#####################################
DEFINE ckactPktsT2 MAP INT;
DEFINE ckactBytesT2 MAP INT;
#####################################
###########Populating the Variables with the
###########Second-Run values:
#####################################
ckactPktsT2 = ckactPkts;
ckactBytesT2 = ckactBytes;
#####################################
#######Defining and calculating Variables for
#######Populating the relevant database values:
#####################################
CounterData( DeltackactPkts,
ckactPktsT1,
ckactPktsT2);
CounterData( DeltackactBytes,
ckactBytesT1,
ckactBytesT2);
};
};
END
|
Previous Page Page 3/5 Next Page |
[Small Solutions], [Professional Solutions], [Security
Solutions], [Development Solutions]
[Home], [About],
[Solutions
Center], [NMS
Market],
[Products & Services],
[Management
Technology], [Technical Support],
[Contact us],
[Site Map]