
 USAGE

======================================================================

 The sb-mrtg.pl script acts as the aggregator for the smartBridges
 devices. It outputs the data in an MRTG parsable format. 

 The command line syntax for invocation for the script is as:  

 sb-mrtg.pl -i <AP Address> -c <Community String> -t <Statistics Type> -r p

 The various options are described as: 

 -i The Host address/IP address of the device. This should be
  resolvable in the local network, and should be reachable to the host 
  which is hosts the MRTG application. 
 
 -c The community string on the device, this should preferrably not be
  'public' as that is the default and known generally. For the purpose
  of the script, the User community string shall suffice. 
 
 -t{e|w|s|l}  is the Type of the query being executed, it can be any of
  the following:
		 e for Ethernet Ports Statistics
                 w for Wireless Ports Statistics
		 s for Number of Associated Stations
		 l for Link quality to the AccessPoint

  The Ethrenet Port statistics output the number of Bytes Received and
  Transmitted at the ports. 
  The Wireless port statistics on the other hand is the sum of all types
  of Packets which traverse through the ports. 
  The number of stations reflects the number of client devices associated 
  with the Access Point.
  The link quality and rssi values are returned by the client device in 
  percentage by default. The raw values can be obtained by using -p0 as 
  explained below.
 
 -r {1|0} The default output format for MRTG is 
	  	  Rx
		  TX
		  <Extra>
		  Name/Identifier
  In some situations, you may want to reverse the output to reflect
  the Tx first, if you specify the "-r 1", the output order will be
  reversed.
                  1 for Reverse to Tx/Rx
                  0 Default, Maintain Rx/Tx

 -p {0|1} The default behaviour is to use the RSSI and Link Quality in 
  relative percentage. This can be turned off by using a 0 for the -p 
  optional parameter. 

======================================================================

