NASA-AMMOS / anms

Asynchronous Network Management System (ANMS)
https://nasa-ammos.github.io/anms-docs/
Apache License 2.0
1 stars 1 forks source link

ANMS_FUN_BLD_004 (Generate Tables): Table deletion #4

Closed d-linko closed 3 months ago

d-linko commented 1 year ago

The Build tab was used to create a CTRL.gen_tbls and to specify various table templates. The resulting raw command was run and the results were displayed with the Agents tab ‘Print Agents Reports’. The report displayed had a header of ‘reports’, followed by entries for each selected table template. The columns were provided and the data for the columns, when applicable. The template and structure for each ‘tblt’ matches the ADM.

When ari:/IANA:amp_agent/CTRL.gen_tbls([ari:/IANA:amp_agent/TBLT.rptts(),ari:/IANA:amp_agent/TBLT.rules()],[]) is executed, the result is, identified with “reports” not tables? (See below.)

There is an Agent option to ‘Clear Agent Tables’ and this was executed, assuming what the display contained tables. A message indicating “error sending request to node! (check node index) Request failed with status code 404.”

The ‘Clear Agent Reports’ option was selected and the display was cleared.

The question is, what is a table?

If this is some future option, perhaps it should not be available for selection, following the ‘Write Agent Reports to file’ option, which displayed, but cannot be selected.

{ "eid": "ipn:3.6", "reports": [ { "num_entries": 1, "recipient_name": "", "name": "rptts", "timestamp": "Fri Jan 6 18:45:04 2023\n", "entries": [], "type": "tblt", "table": { "cols": [ { "name": "ids", "type": "ARI" } ], "rows": [ [ "endpointReport((UINT ltp_span))" ], [ "full_report" ], [ "full_report" ], [ "source_report((STR Source))" ], [ "endpoint_report((STR endpoint_id))" ], [ "full_report" ] ] } }, { "num_entries": 1, "recipient_name": "", "name": "rules", "timestamp": "Fri Jan 6 18:45:04 2023\n", "entries": [], "type": "tblt", "table": { "cols": [ { "name": "ids", "type": "ARI" } ], "rows": [ [ "Anonymous ARI: 0x8b014104" ], [ "Anonymous ARI: 0x8b014105" ], [ "Anonymous ARI: 0x8b014106" ] ] } } ] }

Based on the generated results for rptts, I can create:

ids endpointReport((UINT ltp_span)) full_report full_report source_report((STR Source)) endpoint_report((STR endpoint_id)) full_report

Having three entries for full_report without additional information is not as useful as it might be.

Additional Notes

If CTRL.gen_rpts must be used to create reports, its parameters must include report entities and not table entities.

When ari:/IANA:amp_agent/CTRL.gen_rpts([ari:/IANA:amp_agent/TBLT.rptts(),ari:/IANA:amp_agent/TBLT.rules()],[])

is executed, the result is: { "eid": "ipn:3.6", "reports": [ { "num_entries": 0, "recipient_name": "", "name": "rptts", "timestamp": "Fri Jan 6 18:31:53 2023\n", "entries": [], "type": "tblt" }, { "num_entries": 0, "recipient_name": "", "name": "rules", "timestamp": "Fri Jan 6 18:31:53 2023\n", "entries": [], "type": "tblt" } ] }

The same appears to be true for CTRL.gen_tbls, parameters are table related not report related When ari:/IANA:amp_agent/CTRL.gen_tbls([ari:/IANA:amp_agent/RPTT.full_report()],[]) is executed, generates:

{ "eid": "ipn:3.6", "reports": [] }

d-linko commented 3 months ago

outdated referencing old agent tab