Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr ListComp AttributeLoad SubscriptLoad NameLoad Index Num attr comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Assign NameStore BoolOpOr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad Str keyword Dict NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Assign NameStore BoolOpOr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad BinOpMod AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults BinOpMult BinOpMult BinOpMult Num Num Num Num body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore ListLoad TupleLoad Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults BinOpMult BinOpMult BinOpMult Num Num Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword BinOpSub Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults BinOpMult BinOpMult BinOpMult Num Num Num Num body Expr Str Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Continue Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Continue If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Str orelse Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list
N/A N/A Module containing a set of reports for management of GRR. N/A csv N/A datetime N/A StringIO N/A time N/A logging grr.lib config_lib grr.lib email_alerts grr.lib export_utils grr.lib rdfvalue grr.lib registry grr.lib.aff4_objects aff4_grr grr.lib.aff4_objects network Report N/A object N/A N/A The baseclass for all reports. N/A __metaclass__ N/A registry MetaclassRegistry N/A ClientReport N/A Report N/A N/A The baseclass of all client reports. N/A EMAIL_TEMPLATE 
  <html><body><h2>%(report_name)s</h2>
  %(report_text)s
  <br/>
  <p>Thanks,</p>
  <p>%(signature)s</p>
  </body></html> N/A EMAIL_FROM noreply N/A REPORT_ATTRS N/A N/A EXTENDED_REPORT_ATTRS N/A N/A __abstract True __init__ N/A N/A self token thread_num N/A None 20 N/A N/A N/A self token token N/A N/A self results N/A N/A N/A self fields N/A N/A f name N/A f N/A self REPORT_ATTRS N/A N/A self fields N/A N/A N/A f N/A 1 name N/A f N/A self EXTENDED_REPORT_ATTRS N/A N/A self thread_num thread_num N/A N/A self broken_clients N/A N/A AsDict N/A N/A self N/A N/A N/A Give the report as a list of dicts. N/A N/A N/A self results N/A N/A N/A N/A logging warn Run has not been called, no results. N/A N/A N/A self results N/A AsCsv N/A N/A self N/A N/A N/A Give the report in CSV format. N/A output N/A N/A StringIO StringIO N/A writer N/A N/A csv DictWriter output N/A self fields N/A N/A hasattr writer writeheader N/A N/A N/A N/A writer writeheader N/A val N/A self results N/A N/A N/A N/A writer writerow val N/A N/A N/A output seek 0 N/A output N/A SortResults N/A N/A self field N/A N/A N/A Sort the result set. N/A N/A N/A logging debug Sorting %d results N/A len N/A self results N/A N/A N/A N/A self results sort key N/A N/A N/A x N/A N/A str N/A N/A x get field N/A AsHtmlTable N/A N/A self N/A N/A N/A Return the results as an HTML table. N/A th N/A N/A <th>%s</th> f N/A f N/A self fields N/A headers N/A <tr>%s</tr> N/A N/A join th N/A rows N/A N/A val N/A self results N/A N/A values N/A N/A val N/A k N/A k N/A self fields N/A row N/A N/A <td>%s</td> f N/A f values N/A N/A N/A rows append N/A <tr>%s</tr> N/A N/A join row N/A html_out N/A <table>%s%s</table> N/A headers N/A N/A join rows N/A html_out N/A AsText N/A N/A self N/A N/A N/A Give the report as formatted text. N/A output N/A N/A StringIO StringIO N/A fields N/A self fields N/A writer N/A N/A csv DictWriter output fields dialect N/A csv excel_tab N/A val N/A self results N/A N/A N/A N/A writer writerow val N/A N/A N/A output seek 0 N/A output N/A MailReport N/A N/A self recipient subject N/A None N/A N/A Mail the HTML report to recipient. N/A dt N/A N/A N/A N/A N/A N/A rdfvalue RDFDatetime Now Format %Y-%m-%dT%H-%MZ N/A subject N/A subject N/A %s - %s N/A N/A self REPORT_NAME dt N/A csv_data N/A N/A self AsCsv N/A filename N/A %s-%s.csv N/A N/A self REPORT_NAME dt N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail recipient N/A self EMAIL_FROM subject Please find the CSV report file attached attachments N/A filename N/A N/A csv_data getvalue is_html False N/A N/A N/A logging info Report %s mailed to %s N/A self REPORT_NAME recipient N/A MailHTMLReport N/A N/A self recipient subject N/A None N/A N/A Mail the HTML report to recipient. N/A dt N/A N/A N/A N/A N/A N/A rdfvalue RDFDatetime Now Format %Y-%m-%dT%H-%MZ N/A subject N/A subject N/A %s - %s N/A N/A self REPORT_NAME dt N/A report_text N/A N/A self AsHtmlTable N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail recipient N/A self EMAIL_FROM subject N/A N/A self EMAIL_TEMPLATE N/A dict report_text report_text report_name N/A self REPORT_NAME signature N/A N/A config_lib CONFIG N/A Email.signature is_html True N/A N/A N/A logging info Report %s mailed to %s N/A self REPORT_NAME recipient N/A Run N/A N/A self max_age N/A N/A N/A N/A 60 60 24 7 N/A N/A Run the report.

    Args:
      max_age: Maximum age in seconds of the client to include in report.
     N/A N/A _QueryResults N/A N/A self max_age N/A N/A N/A Query each record in the client database. N/A report_iter N/A ClientReportIterator max_age max_age token N/A self token report_attrs N/A self REPORT_ATTRS extended_report_attrs N/A self EXTENDED_REPORT_ATTRS N/A N/A self broken_clients N/A report_iter broken_subjects N/A N/A N/A report_iter Run N/A N/A ClientListReport N/A ClientReport N/A N/A Returns a list of clients with their version. N/A REPORT_ATTRS N/A N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute LastCheckin N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute subject N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute Host N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute System N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute Architecture N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute Uname N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute GRR client N/A EXTENDED_REPORT_ATTRS N/A N/A network N/A N/A N/A N/A network Network SchemaCls GetAttribute Interfaces N/A REPORT_NAME GRR Client List Report Run N/A N/A self max_age N/A N/A N/A N/A 60 60 24 7 N/A N/A Collect all the data for the report. N/A start_time N/A N/A time time N/A N/A self results N/A N/A N/A self broken_subjects N/A N/A client N/A N/A self _QueryResults max_age N/A N/A N/A N/A N/A self results append client N/A N/A N/A self SortResults GRR client N/A N/A N/A logging info %s took %s to complete N/A self REPORT_NAME N/A N/A datetime timedelta seconds N/A N/A N/A time time start_time N/A N/A VersionBreakdownReport N/A ClientReport N/A N/A Returns a breakdown of versions. N/A REPORT_ATTRS N/A N/A N/A N/A N/A aff4_grr VFSGRRClient SchemaCls GetAttribute GRR client N/A REPORT_NAME GRR Client Version Breakdown Report Run N/A N/A self max_age N/A N/A N/A N/A 60 60 24 7 N/A N/A Run the report. N/A counts N/A N/A N/A N/A N/A self fields append count N/A N/A self results N/A N/A client N/A N/A self _QueryResults max_age N/A N/A version N/A N/A client get GRR client N/A N/A N/A N/A counts N/A version 1 N/A N/A N/A KeyError N/A N/A N/A counts N/A version 1 N/A N/A version count N/A N/A counts iteritems N/A N/A N/A N/A N/A self results append N/A GRR client count version count N/A N/A N/A self SortResults count N/A N/A ClientReportIterator N/A N/A export_utils IterateAllClients N/A N/A Iterate through all clients generating basic client information. __init__ N/A N/A self report_attrs extended_report_attrs N/A kwargs N/A N/A Initialize.

    Args:
      report_attrs: Attributes to retrieve.
      extended_report_attrs: Path, Attribute tuples to retrieve.
      **kwargs: Additional args to fall through to client iterator.
     N/A N/A N/A N/A super ClientReportIterator self __init__ kwargs N/A N/A self report_attrs report_attrs N/A N/A self extended_report_attrs extended_report_attrs N/A IterFunction N/A N/A self client out_queue unused_token N/A N/A N/A Extract report attributes. N/A result N/A N/A attr N/A self report_attrs N/A N/A N/A N/A attr name subject N/A N/A N/A result N/A N/A attr name N/A N/A N/A N/A client Get attr Basename N/A N/A N/A N/A attr name GRR client N/A N/A c_info N/A N/A client Get attr N/A N/A c_info N/A N/A N/A N/A N/A self broken_subjects append N/A client client_id N/A N/A result N/A N/A attr name None N/A N/A N/A result N/A N/A attr name N/A %s %s N/A N/A c_info client_name N/A str N/A c_info client_version N/A N/A N/A result N/A N/A attr name N/A N/A client Get attr N/A N/A sub_path attr N/A self extended_report_attrs N/A N/A N/A N/A client_sub N/A N/A client OpenMember sub_path N/A N/A N/A IOError N/A N/A N/A N/A N/A attr name Interfaces N/A N/A interfaces N/A N/A client_sub Get attr N/A interfaces N/A N/A N/A N/A N/A result N/A N/A attr name N/A N/A , join N/A N/A interfaces GetIPAddresses N/A N/A N/A AttributeError N/A N/A N/A result N/A N/A attr name N/A N/A N/A result N/A N/A attr name N/A N/A client_sub Get attr N/A N/A N/A out_queue put result N/A N/A ReportName N/A N/A rdfvalue RDFString N/A N/A A class for reports we support. N/A type ReportName ParseFromString N/A N/A self value N/A N/A N/A N/A N/A N/A super ReportName self ParseFromString value N/A N/A value N/A Report classes N/A N/A N/A ValueError N/A Invalid report %s. value N/A N/A