Histogram

The histogram tools command shows several summarized distributions:

The operator can use the displayed information to adjust the port block size per subscriber, the amount of port blocks per subscriber, or see port usage trends over time. Consequently, the operator can adjust the configuration as the port demand per subscriber increases or decreases over time. For example, an operator may find that the port usage in a pools increased over a period of time. Accordingly, the operator can plan to increase the number of ports per port block.

The output of the histogram command is described in the following examples:

The output of each command can be periodically exported to an external destination with the cron command. The following displays an example of the output:

/configure system 
   script-control {
      script "nat_histogram" owner ‟TiMOSCLI” {
        admin-state enable
        location "ftp://*:*@138.203.8.62/nat-histogram.txt"
      }
   script-policy "dump_nat_histogram" owner ‟TiMOS CLI” {
        admin-state enable
        results "ftp://*:*@138.203.8.62/nat_histogram_results.txt"
        script {
          name "nat_histogram"
        }
   }
  }
   cron {
      schedule "nat_histogram_schedule" owner ‟TiMOS CLI” {
        admin-state enable
        interval 600
        script-policy {
          name "dump_nat_histogram"
        }
      }

The nat-histogram.txt file contains the command execution line. For example:

tools dump nat histogram router 4 pool "deterministic" bucket-size 10 num-buckets 10

This command is executed every 10 minutes (600 seconds) and the output of the command is written into a set of files on an external TFP server as displayed in the following example:

 [root@ftp]# ls nat_histogram_results.txt*
    nat_histogram_results.txt_20130117-153548.out
    nat_histogram_results.txt_20130117-153648.out
    nat_histogram_results.txt_20130117-153748.out
    nat_histogram_results.txt_20130117-153848.out
    nat_histogram_results.txt_20130117-153948.out
    nat_histogram_results.txt_20130117-154048.out
    [root@ftp]#