コード例 #1
0
import steelscript.appfwk.apps.report.modules.tables as tables

from steelscript.netshark.appfwk.datasources.netshark import \
    NetSharkTable
from steelscript.appfwk.apps.datasource.modules.analysis import \
    FocusedAnalysisTable

#
# Define a NetShark Report and Table
#
report = Report.create('NetShark Microburst Summary', position=10)
report.add_section()

# Summary Microbursts Graph for NetShark
t = NetSharkTable.create(name='MicroburstsTime',
                         duration=1,
                         resolution='1sec',
                         aggregated=False)

t.add_column('time',
             label='Time',
             iskey=True,
             extractor='sample_time',
             datatype='time')

t.add_column('max_microburst_1ms_bits',
             label='uBurst 1ms',
             extractor='generic.max_microburst_1ms.bits',
             operation='max',
             units='B')

t.add_column('max_microburst_10ms_bits',
コード例 #2
0
import steelscript.appfwk.apps.report.modules.c3 as c3
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.tables as tables

from steelscript.netshark.appfwk.datasources.netshark import NetSharkTable
#
# Define a NetShark Report and Table
#

report = Report.create('NetShark', position=10)

report.add_section()

# NetShark Time Series
t = NetSharkTable.create(name='Total Traffic Bits',
                         duration=1, resolution='1sec', aggregated=False)

t.add_column('time', label='Time', iskey=True,
             extractor='sample_time', datatype='time')
t.add_column('generic_bits', label='Bits', iskey=False,
             extractor='generic.bits', operation='sum')

report.add_widget(c3.TimeSeriesWidget, t, 'Overall Bandwidth (Bits)',
                  width=12)

# Table for NetShark
t = NetSharkTable.create(name='Packet Traffic', duration=1, aggregated=True,
                         rows=100)

t.add_column('ip_src', label='Source IP', iskey=True, extractor='ip.src',
             datatype='string')
コード例 #3
0
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.yui3 as yui3

from steelscript.netshark.appfwk.datasources.netshark import NetSharkTable
#
# Define a NetShark Report and Table
#

report = Report.create('NetShark', position=10)

report.add_section()

### NetShark Time Series

t = NetSharkTable.create(name='Total Traffic Bytes',
                      duration=1, resolution='1sec', aggregated=False)

t.add_column('time', label='Time', iskey=True,
             extractor='sample_time', datatype='time')
t.add_column('generic_bytes', label='Bytes', iskey=False,
             extractor='generic.bytes', operation='sum')

report.add_widget(yui3.TimeSeriesWidget, t, 'Overall Bandwidth (Bytes)',
                  width=12)

### Table for NetShark
t = NetSharkTable.create(name='Packet Traffic', duration=1, aggregated=False)

t.add_column('ip_src', label='Source IP', iskey=True, extractor='ip.src',
             datatype='string')
t.add_column('ip_dst', label='Dest IP', iskey=True, extractor='ip.dst',
コード例 #4
0
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.tables as tables

from steelscript.netshark.appfwk.datasources.netshark import \
    NetSharkTable
from steelscript.appfwk.apps.datasource.modules.analysis import \
    FocusedAnalysisTable

#
# Define a NetShark Report and Table
#
report = Report.create('NetShark Microburst Summary', position=10)
report.add_section()

# Summary Microbursts Graph for NetShark
t = NetSharkTable.create(name='MicroburstsTime', duration=1,
                         resolution='1sec', aggregated=False)

t.add_column('time', label='Time', iskey=True,
             extractor='sample_time', datatype='time')

t.add_column('max_microburst_1ms_bits', label='uBurst 1ms',
             extractor='generic.max_microburst_1ms.bits',
             operation='max', units='B')

t.add_column('max_microburst_10ms_bits', label='uBurst 10ms',
             extractor='generic.max_microburst_10ms.bits',
             operation='max', units='B')

t.add_column('max_microburst_100ms_bits', label='uBurst 100ms',
             extractor='generic.max_microburst_100ms.bits',
             operation='max', units='B')
コード例 #5
0
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.yui3 as yui3

from steelscript.netshark.appfwk.datasources.netshark import NetSharkTable
#
# Define a NetShark Report and Table
#

report = Report.create('NetShark DNS', position=10)

report.add_section()


### DNS Success/Failure Queries Over time
name = 'DNS Success and Failure Queries Over Time'
s = NetSharkTable.create(name, duration=15, resolution='1min', aggregated=False)

s.add_column('time', label='Time', iskey=True, datatype='time',
             extractor='sample_time')
s.add_column('dns_count', label='DNS Query Count', datatype='integer',
             extractor='dns.query.count', operation='sum')
s.add_column('dns_is_success', label='DNS Success', datatype='integer',
             extractor='dns.is_success', operation='none')
report.add_widget(yui3.TimeSeriesWidget, s, name, width=12)


### DNS Response Code List for NetShark 1
name = 'DNS Response Codes'
s = NetSharkTable.create(name, duration=15, aggregated=True)

s.add_column('dns_is_success_str', label='DNS Success', iskey=True,
コード例 #6
0
#
# This software is licensed under the terms and conditions of the MIT License
# accompanying the software ("License").  This software is distributed "AS IS"
# as set forth in the License.


import steelscript.appfwk.apps.report.modules.c3 as c3
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.tables as tables
from steelscript.netshark.appfwk.datasources.netshark import \
    NetSharkTable

#
# Define a NetShark Report and Table
#
report = Report.create('NetShark TCP Errors', position=10)
report.add_section()

tcp = NetSharkTable.create(name='TCPErrors', aggregated=True)

tcp.add_column('error_type', label='TCP Error Type', iskey=True,
               extractor='tcp.error_type', datatype='string')
tcp.add_column('errors', label='TCP Errors', sortdesc=True,
               extractor='tcp.errors', datatype='integer', operation='sum',
               default_value=0)

report.add_widget(c3.BarWidget, tcp,
                  'TCP Errors', width=6, height=400)
report.add_widget(tables.TableWidget, tcp,
                  'TCP Errors Table', width=6, height=400)
コード例 #7
0
p = NetProfilerTimeSeriesTable.create('ts1', duration=1440, resolution='15min')

p.add_column('time', label='Time', datatype='time', iskey=True)
p.add_column('avg_bytes', label='Avg Bytes/s', units='B/s')

report.add_widget(yui3.TimeSeriesWidget,
                  p,
                  "NetProfiler Overall Traffic",
                  width=6)

# NetShark Time Series
section = report.add_section('NetShark Traffic',
                             section_keywords=['resolution', 'duration'])

shark = NetSharkTable.create('Total Traffic Bits',
                             duration=15,
                             resolution='1sec',
                             aggregated=False)

shark.add_column('time',
                 extractor='sample_time',
                 iskey=True,
                 label='Time',
                 datatype='time')
shark.add_column('generic_bits',
                 label='bits',
                 iskey=False,
                 extractor='generic.bits',
                 operation='sum',
                 units='b')

# Widgets can also be added to Section objects explicitly
コード例 #8
0
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.tables as tables

from steelscript.netshark.appfwk.datasources.netshark import NetSharkTable
#
# Define a NetShark Report and Table
#

report = Report.create('NetShark DNS', position=10)

report.add_section()

# DNS Queries Over time
name = 'DNS Queries and Response Time Over Time'
s = NetSharkTable.create(name,
                         duration=15,
                         resolution='1min',
                         aggregated=False)

s.add_column('time',
             label='Time',
             iskey=True,
             datatype='time',
             extractor='sample_time')
s.add_column('dns_count',
             label='DNS Query Count',
             datatype='integer',
             extractor='dns.query.count',
             operation='sum')
s.add_column('dns_response_time',
             label='DNS Response Time (ns)',
             units='ms',
コード例 #9
0
import steelscript.appfwk.apps.report.modules.tables as tables
import steelscript.netshark.appfwk.datasources.netshark_scanner_source as \
    scanner

from steelscript.appfwk.apps.report.models import Report
from steelscript.netshark.appfwk.datasources.netshark import NetSharkTable

# Import the datasource module for this plugin (if needed)


report = Report.create("NetShark Scanner", field_order=['endtime', 'duration'],
                       hidden_fields=['netshark_device',
                                      'netshark_source_name', 'resolution'])
report.add_section()

# Create base table
shark_bytes_table = NetSharkTable.create(name='shark_bytes', aggregated=True)
shark_bytes_table.add_column('generic_bytes', label='Bytes', iskey=False,
                             extractor='generic.bytes', operation='sum')

# Make
table = scanner.SharksTable.create(name='sharks',
                                   basetable=shark_bytes_table)
table.add_column('name', "Name", datatype='string')
table.add_column('host', "Host", datatype='string')
table.add_column('capjob', "Capture Job", datatype='string')
table.add_column('bytes', "Bytes")

report.add_widget(tables.TableWidget, table, "Shark Capture Jobs Found",
                  width=12, height=200)
コード例 #10
0
                  info=False, paging=False, searching=False)

# Define a Overall TimeSeries showing Avg Bytes/s
report.add_section('NetProfiler Overall',
                   section_keywords=['resolution', 'duration'])

p = NetProfilerTimeSeriesTable.create('ts1', duration=1440, resolution='15min')

p.add_column('time', label='Time', datatype='time', iskey=True)
p.add_column('avg_bytes', label='Avg Bytes/s', units='B/s')

report.add_widget(c3.TimeSeriesWidget, p,
                  "NetProfiler Overall Traffic", width=6)

# NetShark Time Series
section = report.add_section('NetShark Traffic',
                             section_keywords=['resolution', 'duration'])

shark = NetSharkTable.create('Total Traffic Bits', duration=15,
                             resolution='1sec', aggregated=False)

shark.add_column('time', extractor='sample_time', iskey=True,
                 label='Time', datatype='time')
shark.add_column('generic_bits', label='bits', iskey=False,
                 extractor='generic.bits', operation='sum', units='b')

# Widgets can also be added to Section objects explicitly
section.add_widget(c3.TimeSeriesWidget, shark,
                   'Overall Bandwidth (Bits) at (1-second resolution)',
                   width=6)
コード例 #11
0
# accompanying the software ("License").  This software is distributed "AS IS"
# as set forth in the License.

import steelscript.appfwk.apps.report.modules.c3 as c3
from steelscript.appfwk.apps.report.models import Report
import steelscript.appfwk.apps.report.modules.tables as tables
from steelscript.netshark.appfwk.datasources.netshark import \
    NetSharkTable

#
# Define a NetShark Report and Table
#
report = Report.create('NetShark TCP Errors', position=10)
report.add_section()

tcp = NetSharkTable.create(name='TCPErrors', aggregated=True)

tcp.add_column('error_type',
               label='TCP Error Type',
               iskey=True,
               extractor='tcp.error_type',
               datatype='string')
tcp.add_column('errors',
               label='TCP Errors',
               sortdesc=True,
               extractor='tcp.errors',
               datatype='integer',
               operation='sum',
               default_value=0)

report.add_widget(c3.BarWidget, tcp, 'TCP Errors', width=6, height=400)