TCP General Traffic & Error Statistics
(SM-SmallSol00016)
Solution’s SOSL Based management process script:
The solution defines the following main module:
MainGeneralTcpData:
This is the main module that controls and instantiates the ‘TcpData1’ and ‘TcpData2’ modules.
The details of the Main module and the transient Service module are provided below:
MODULE MainGeneralTcpData ();
DESCRIPTION " Process";
BEGIN
MODULE-CALL TcpData1();
POLL-FREQ
{
MODULE-CALL TcpData2();
WAIT (6000);
};
END
MODULE TcpData1 ();
DESCRIPTION "OSPF Interfaces Table Process";
BEGIN
ALL-DEV BY DEV
{
POLL ( tcpActiveOpens;
tcpPassiveOpens;
tcpAttemptFails;
tcpEstabResets;
tcpCurrEstab;
tcpInSegs;
tcpOutSegs;
tcpRetransSegs;
tcpInErrs;
tcpOutRsts);
};
END
MODULE TcpData2 ();
DESCRIPTION "";
BEGIN
ALL-DEV BY DEV
{
DEFINE tcpActiveOpensT1 MAP INT;
DEFINE tcpPassiveOpensT1 MAP INT;
DEFINE tcpAttemptFailsT1 MAP INT;
DEFINE tcpEstabResetsT1 MAP INT;
DEFINE tcpCurrEstabT1 MAP INT;
DEFINE tcpInSegsT1 MAP INT;
DEFINE tcpRetransSegsT1 MAP INT;
DEFINE tcpOutSegsT1 MAP INT;
DEFINE tcpInErrsT1 MAP INT;
DEFINE tcpOutRstsT1 MAP INT;
DEFINE tcpActiveOpens DB INT;
DEFINE tcpPassiveOpens DB INT;
DEFINE tcpAttemptFails DB INT;
DEFINE tcpEstabResets DB INT;
DEFINE tcpCurrEstab DB INT;
DEFINE tcpInSegs DB INT;
DEFINE tcpRetransSegs DB INT;
DEFINE tcpOutSegs DB INT;
DEFINE tcpInErrs DB INT;
DEFINE tcpOutRsts DB INT;
tcpActiveOpensT1 = tcpActiveOpens;
tcpPassiveOpensT1 = tcpPassiveOpens;
tcpAttemptFailsT1 = tcpAttemptFails;
tcpEstabResetsT1 = tcpEstabResets;
tcpCurrEstabT1 = tcpCurrEstab;
tcpInSegsT1 = tcpInSegs;
tcpOutSegsT1 = tcpOutSegs;
tcpRetransSegsT1 = tcpRetransSegs;
tcpInErrsT1 = tcpInErrs;
tcpOutRstsT1 = tcpOutRsts;
RMV ( tcpActiveOpens;
tcpPassiveOpens;
tcpAttemptFails;
tcpEstabResets;
tcpCurrEstab;
tcpInSegs;
tcpOutSegs;
tcpRetransSegs;
tcpInErrs;
tcpOutRsts );
#######################################
# Populating the Database with the Second-Run values:
#######################################
POLL ( tcpActiveOpens;
tcpPassiveOpens;
tcpAttemptFails;
tcpEstabResets;
tcpCurrEstab;
tcpInSegs;
tcpOutSegs;
tcpRetransSegs;
tcpInErrs;
tcpOutRsts );
#######################################
# Defining the Second-Run Variables:
#######################################
DEFINE tcpActiveOpensT2 MAP INT;
DEFINE tcpPassiveOpensT2 MAP INT;
DEFINE tcpAttemptFailsT2 MAP INT;
DEFINE tcpEstabResetsT2 MAP INT;
DEFINE tcpInSegsT2 MAP INT;
DEFINE tcpCurrEstabT2 MAP INT;
DEFINE tcpOutRstsT2 MAP INT;
DEFINE tcpOutSegsT2 MAP INT;
DEFINE tcpInErrsT2 MAP INT;
DEFINE tcpRetransSegsT2 MAP INT;
tcpActiveOpensT2 = tcpActiveOpens;
tcpPassiveOpensT2 = tcpPassiveOpens;
tcpAttemptFailsT2 = tcpAttemptFails;
tcpEstabResetsT2 = tcpEstabResets;
tcpCurrEstabT2 = tcpCurrEstab;
tcpInSegsT2 = tcpInSegs;
tcpOutSegsT2 = tcpOutSegs;
tcpRetransSegsT2 = tcpRetransSegs;
tcpInErrsT2 = tcpInErrs;
tcpOutRstsT2 = tcpOutRsts;
CounterData( DeltaTcpActiveOpens,
tcpActiveOpensT1,
tcpActiveOpensT2);
CounterData( DeltaTcpPassiveOpens,
tcpPassiveOpensT1,
tcpPassiveOpensT2);
CounterData( DeltaTcpAttemptFails,
tcpAttemptFailsT1,
tcpAttemptFailsT2);
CounterData( DeltaTcpEstabResets,
tcpEstabResetsT1,
tcpEstabResetsT2);
CounterData( DeltaTcpCurrEstab,
tcpCurrEstabT1,
tcpCurrEstabT2);
CounterData( DeltaTcpInSegs,
tcpInSegsT1,
tcpInSegsT2);
CounterData( DeltaTcpOutSegs,
tcpOutSegsT1,
tcpOutSegsT2);
CounterData( DeltaTcpRetransSegs,
tcpRetransSegsT1,
tcpRetransSegsT2);
CounterData( DeltaTcpInErrs,
tcpInErrsT1,
tcpInErrsT2);
CounterData( DeltaTcpOutRsts,
tcpOutRstsT1,
tcpOutRstsT2);
};
END
|
Previous Page Page 4/6 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]