Hey Mark.
Silly question #1: what is PHP?
Mark Mushkin
IT | Information Technology
Agilent Technologies
Roseville, CA 916-788-5764
-----Original Message-----
From: EVE,MARK (A-Switzerland,ex1) [mailto:mark_eve@agilent.com]
Sent: Friday, September 28, 2001 9:46 AM
To: 'traffic-management@inmon.com'
Subject: [traffic-management] Consolidated Traffic Server Query using PHP
Hi all,
Attached is a sample of how to make a consolidated query amongst multiple
traffic servers from within a couple of PHP pages. The QueryForm shows what
the query specification page looks like, and the SampleResults shows the
first few lines of what can come out of the query.
The query itself allows creation of a consolidated report of the top 50
srcSubnet/dstSubnet/TCP port combinations from a cluster of InMon traffic
servers. In my implementation, I've clustered them by geography. The
clustering and regions are defined in the consolidate.ini file. The query
form (default.php) will pull the region names from this file and present
these as the options on the query construction page.
The subnets.txt file is used to define subnet ranges, and is almost
identical to the groupMask fields used in the Traffic Server Queries. In
fact, the contents of this file are used to build the groupMask used in the
query to the traffic servers. There is one line per subnet, and anything
outside of the ranges defined will be mapped to "other" as 0.0.0.0/0/other
and appended to the groupMask.
Consolidate.php is the main script file which pulls the data from the
traffic servers, consolidates it and creates the report.
Inireader.inc is a quick and dirty PHP class to read Windows style INI
files. It does the job, though it could be done better...
Hope any PHP developers out there might find this of interest.
Mark Eve.
This archive was generated by hypermail 2b29 : 10/04/01 EDT