media="all">
"; 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 ""; ?>

There are two mechanisms for configuring the export of sFlow data from routers and switches: the command line interface (CLI) or SNMP:

CLI

Configure routers/switches to direct sFlow data to the Traffic Server using port 6343. Consult your router/switch/probe documentation for instructions on configuring sFlow:

You can confirm that sFlow packets are arriving at the server by running:

% /usr/sbin/tcpdump -n udp port 6343

The source IP address should be the loopback IP address of the router. If the traffic server has received these packets, then the IP address should also be listed in the file /usr/local/inmon/server/state/agents.txt.

Follow the steps in the following section on SNMP to make sure that Traffic Server is able to communicate with the router using SNMP. While not essential this provides additional information (such as interface descriptions) that provide improved functionality.

SNMP

Make sure that the Traffic Server can make SNMP requests to the IP address of the router:

% snmpwalk <router IP> <community string> interfaces

If this does not work, then you may need to change the router configuration to enable SNMP access.

Autodiscovery

If you have devices that support the sFlow Version 5 MIB then Traffic Server can automatically discover and configure them using SNMP

First make sure that both read and write SNMP access is allowed (GET/SET). Then make sure you enable discovery in the configuration file:

[enterprise]
.
.
samplingEnabled = YES  ; turn on sampling on all devices
discoveryEnabled = YES ; sweep subnets for sFlow devices

You should also make sure that you add [zone] and [subnet] sections for all the address ranges that you would like tested for sFlow agents.