Persist NinjaOne context for scheduled scans
This commit is contained in:
@@ -4,13 +4,14 @@ internal sealed record ScanOptions
|
||||
{
|
||||
public const string Usage = """
|
||||
Usage:
|
||||
OCSentinelCli [--output <path>] [--lookback-days <n>] [--top <n>] [--config <path>] [--vulnerability-csv <path>] [--json-only] [--ninja-output] [--fail-on-attacks] [--fail-on-threshold] [--help]
|
||||
OCSentinelCli [--output <path>] [--lookback-days <n>] [--top <n>] [--config <path>] [--client-config <path>] [--vulnerability-csv <path>] [--json-only] [--ninja-output] [--fail-on-attacks] [--fail-on-threshold] [--help]
|
||||
|
||||
Options:
|
||||
--output <path> Write the JSON report to the given file.
|
||||
--lookback-days <n> Only include events newer than now minus n days. Default: 30
|
||||
--top <n> Number of aggregated source IPs to show. Default: 10
|
||||
--config <path> Load thresholds, path overrides, and exclusions from JSON.
|
||||
--client-config <path> Load persisted NinjaOne identity and upload settings from JSON.
|
||||
--vulnerability-csv <path>
|
||||
Correlate local attack results with exported CVE data for this host.
|
||||
--json-only Print only JSON to stdout.
|
||||
@@ -36,6 +37,8 @@ Options:
|
||||
|
||||
public string? ConfigPath { get; init; }
|
||||
|
||||
public string? ClientConfigPath { get; init; }
|
||||
|
||||
public string? VulnerabilityCsvPath { get; init; }
|
||||
|
||||
public bool ShowHelp { get; init; }
|
||||
@@ -72,6 +75,9 @@ Options:
|
||||
case "--config":
|
||||
options = options with { ConfigPath = ReadValue(args, ref i, arg) };
|
||||
break;
|
||||
case "--client-config":
|
||||
options = options with { ClientConfigPath = ReadValue(args, ref i, arg) };
|
||||
break;
|
||||
case "--vulnerability-csv":
|
||||
options = options with { VulnerabilityCsvPath = ReadValue(args, ref i, arg) };
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user