include ("pth.php"); include ("utils.php"); include ("leftnav_arrays.php"); $path = $_SERVER['REQUEST_URI']; $server = $_SERVER['SERVER_NAME']; $pthDirs = explode("/",$pth); $pthSize = count($pthDirs); $path_parts = pathinfo($path); $dirs = explode("/", $path_parts["dirname"]); $dirMax = count($dirs); $parsedpath = $dirs[$dirMax-1]."/".$path_parts["basename"]; ?>
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//for first levels
echo ""; for ($i = 0; $i < count($nav); $i++){ if ($dirMax >= $pthSize){ if(($nav[$i][2] != 1) && (getfilepath($nav[$i][1]) == $parsedpath)) echo "Help : ".$nav[$i][0]; if (parsefilepath($nav[$i][1]) == $dirs[$pthSize]){ if ((getfilepath($nav[$i][1]) != $pth) || getfilepath($nav[$i][1]) != $pth."index.php") echo "Help : "; if (getfilepath($nav[$i][1]) == $parsedpath) echo $nav[$i][0]; else { echo "".$nav[$i][0]." : "; for ($j = 0; $j < count($nav[$i][3]); $j++){ if(getfilepath($nav[$i][3][$j][1]) == $parsedpath) echo $nav[$i][3][$j][0]; if(parsefilepath($nav[$i][3][$j][1]) == $dirs[$pthSize + 1]) { if ((getfilepath($nav[$i][3][$j][1]) == $parsedpath));// echo $nav[$i][3][$j][0]; else { echo "".$nav[$i][3][$j][0]." : "; for($k = 0; $k < count($nav[$i][3][$j][3]); $k++) { if(getfilepath($nav[$i][3][$j][3][$k][1]) == $parsedpath) echo $nav[$i][3][$j][3][$k][0]; if (parsefilepath($nav[$i][3][$j][3][$k][1]) == $dirs[$pthSize+2] && getfilebase($nav[$i][3][$j][3][$k][1]) == $path_parts["basename"]) { if (getfilepath($nav[$i][3][$j][3][$k][1]) == $parsedpath) ; //echo $nav[$i][3][$j][3][$k][0]; else if (parsefilepath($nav[$i][3][$j][3][$k][1]) == $dirs[$pthSize+3] && $nav[$i][3][$j][3][$k][2] == 1) { for ($l = 0; $l < count($nav[$i][3][$j][3][$k][3]); $l++){ if (getfilepath($nav[$i][3][$j][3][$k][3][$l][1]) == $parsedpath) echo "".$nav[$i][3][$j][3][$k][0]." : "; echo $nav[$i][3][$j][3][$k][3][$l][0]; } } } } } } } } } } } echo ""; ?>The form is accessed from the Routing>Traffic menu. WAN Traffic queries against the consolidated hourly data are made using the URL /its/query/WANTraffic. The following arguments are recognized:
The WAN Traffic Query differs from the WAN Service Query in that it deals with unidirectional flows. Only flows matching the direction established by the sourceAddress, sourcePort, destinationAddress and destinationPort fields are included in the result. agentThe IP address or domain name of the switch or router. interfaceThe interface index (ifIndex) of the interface. directionFilter traffic based on direction with respect to the specified interface. Options are:
tableTypeTraffic matrices are stored as individual tables. To access a traffic matrix you must specify the type of table to query. The table types currently recognized are:
hourThe hours in the day to include. Hours are specified by the start of the hour (i.e. 0 = midnight to 1am and 23 = 11pm to midnight). Hours can be included in lists, or in ranges.
Hours are interpreted in conjunction with the selected time zone (see TZ). dayThe days of the week to include in the result. The values are:
Days can be listed or included in ranges
Days are interpreted in conjunction with the selected time zone (see TZ). dateDates and times are specified in the following formats:
Times and dates are interpreted in conjunction with the selected time zone (see TZ). Dates can be combined in a list or specified as ranges, for example: date=19990901,19990905-1999091212 would include all the hours on 1-Sep-1999 and all the hours between midnight 5-Sep-1999 and noon 12-Sep-1999. If the argument is omitted, then the hours since midnight today will be used. TZThe time zone used to interpret dates, times, days of week and hours. It is also the time zone used when returning date and time information in results. Currently recognized time zones are:
Note: If the time zone is unspecified, it defaults to server. sourceAddressConstrain the results to only include entries with selected source addresses. The format of an address depends on the type of address being specified. The following table gives examples of addresses of each type:
Note: Partial ASPATH addresses can be used to match ASPATHs in queries. For example,
Address ranges may be specified in the following ways:
Addresses and subnets can be combined in lists, for example: 10.8.0.0/16,10.9.0.0/16,10.11.9.5 would include all addresses in the 10.8.* and the 10.9.* subnets as well as the address 10.11.9.5 In order to exclude addresses an exclamation mark (!) can be placed at the beginning of the list, so: !10.8.0.0/16,10.9.0.0/16,10.11.9.5 would exclude all the addresses in the list. Note: If the selected tableType contains IP addresses, then domain names may be used to specify addresses. The configuration file defines the network in terms of sites containing zones, each of which contains a set of IP subnets. The site:zone:subnet notation can be used whenever the tableType contains IP addresses. For example, HQ:1st Floor: would include all subnets in the 1st Floor zone at the HQ site. Note: Omitted names will be treated as wild cards. The expression :1st Floor: would match any zones with the name "1st Floor", irrespective of the site that contained them. Finally, the site name _local can be used to refer to the local site (i.e. the site that the Traffic Server processing the query is monitoring). For example, _local:: would include all subnets on the local site. sourcePortA port may refer to a port, type or sap depending on the table type being analyzed (see tableType). For example, when analyzing a TCP traffic matrix for http traffic, specify sourcePort=80). Ranges and lists of ports can be constructed, for example: sourcePort=20,21 specifies ftp data and control traffic. sourcePort=1-1023 specifies all "well known" ports. Note: Certain well known ports can be specified using their names, for
example: destinationAddressConstrain the results to only include entries with selected destination addresses. See sourceAddress for more information on specifying addresses lists. Note: If the selected tableType contains MAC addresses, then the
special address, multicast, is recognised and used to specify MAC multicast
addresses (MAC broadcast addresses are easily specified as 0xffffffffffff). For
example: destinationPortA port may refer to a port, type or sap depending on the table type being analyzed (see tableType). For example, when analyzing a TCP traffic matrix for http traffic, specify destinationPort=80). Ranges and lists of ports can be constructed, for example: destinationPort=20,21 specifies ftp data and control traffic. destinationPort=1-1023 specifies all "well known" ports. Note: Certain well known ports can be specified using their names, for
example: groupMaskGroup masks are used to aggregate addresses based on subnet. A group mask has the following form: <Address>/<Scope>/<Mask> Scope and Mask are two subnet masks that are used in conjunction with Address to specify an grouping policy. If an address falls within the subnet specified by Address/Scope, then Mask is applied to the address to extract a subnet. If more than one group mask is given in a list, then the mask with the narrowest scope is applied. If no masks match, then the address will pass through unchanged. The following examples illustrate the use of group masks. groupMask=10.0.0.0/255.0.0.0/255.255.255.0 (or more compactly groupMask=10.0.0.0/8/24) applies the subnet mask 255.255.255.0 to all addresses in the 10.* range. groupMask=10.23.0.0/16/25,10.0.0.0/8/24 applies a 25 bit subnet mask to addresses in the 10.23.* subnet while applying a 24 bit mask to all other addresses in the 10.* range. A variant of the group mask allows address ranges to be associated with names: groupMask=10.0.0.0/8/internal,0.0.0.0/0/external would substitute the string "internal" for any address in the 10.* range and the string "external" would be substituted for all other addresses. Finally, group masks can be automatically constructed using the site:zone:subnet information in the Traffic Server configuration file. The following automatic groupMask options are available:
groupPeriodCreate a time series using the specified grouping period. Recognized periods include:
Leave blank or omit argument in order to aggregate over entire interval. Intervals are interpreted in conjunction with the selected time zone (see TZ). resultSortSpecifies whether results should be sorted by bytes or by frames. In order for results to be sorted, a resultTruncate value must be specified. For example, resultSort=frames will sort the result table by the number of frames in each entry. resultSort=bytes will sort the result table by the number of bytes in each entry. resultSort=count will sort the result table by the count field in each entry. Leave blank if no sorting is required and all results should be returned. resultTruncateSpecify the number of rows to return in the result table. A truncation value is usually specified in conjunction with resultSort to generate a top N table. For example, resultSort=frames&resultTruncate=10 would return the top 10 entries sorted by frames. Leave blank if no truncation is required and all results should be returned. resultFieldResults returned as a table containing whichever columns were requested using resultField.
If key fields are omitted, then the result will be aggregated, ensuring that each row represents a unique combination of keys. Result fields are specified as a list of field names. For example, resultField=sourceAddress,destinationAddress,frames,bytes would return a table with the specified columns. resultFormatThe following result formats are recognized:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright © 1999-2004 InMon Corp. ALL RIGHTS RESERVED | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||