@opscompass/opscompass-cli 1.0.47 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors.js +5 -5
- package/credentials.js +20 -29
- package/environment/current.js +6 -6
- package/environment/demo.js +6 -6
- package/environment/dev.js +6 -6
- package/environment/local.js +6 -6
- package/environment/production.js +6 -6
- package/error.js +1 -1
- package/index.js +20 -20
- package/lib/cliHelpers.js +34 -15
- package/lib/consts.js +2 -11
- package/lib/homeInteraction.js +21 -22
- package/lib/maskValues.js +17 -17
- package/lib/parseMetrics.js +25 -21
- package/lib/pgpTools.js +8 -10
- package/lib/utils.js +15 -19
- package/login.js +90 -40
- package/modules/accounts.js +32 -26
- package/modules/compliance.js +75 -76
- package/modules/data-gathering-scripts.js +41 -41
- package/modules/defaults.js +12 -12
- package/modules/expiration-info.js +54 -25
- package/modules/license-manager/microsoft.js +95 -72
- package/modules/license-manager/nutanix.js +31 -22
- package/modules/license-manager/vcenter.js +31 -22
- package/modules/license-manager.js +89 -91
- package/modules/resources.js +140 -70
- package/modules.js +31 -15
- package/oauth.js +2 -2
- package/opscompass.js +8 -9
- package/package.json +3 -2
- package/updates.js +9 -11
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { setArgumentArrays } from "../lib/cliHelpers.js";
|
|
2
|
+
import { getOpsCompassClient } from "../opscompass.js";
|
|
3
|
+
import { utilsModule as utils } from "../lib/utils.js";
|
|
4
|
+
import maskValues from "../lib/maskValues.js";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
licenseManagerConfigurationTypes,
|
|
8
|
-
} = require("../environment/current.js");
|
|
6
|
+
import { licenseManagerConfigurationTypes } from "../environment/current.js";
|
|
9
7
|
|
|
10
8
|
// Masked configurations
|
|
11
|
-
|
|
9
|
+
import {
|
|
12
10
|
createMaskedConfig,
|
|
13
11
|
updateMaskedConfig,
|
|
14
|
-
}
|
|
12
|
+
} from "./license-manager/maskedConfig.js";
|
|
15
13
|
|
|
16
14
|
// Microsoft SQL Server functions
|
|
17
|
-
|
|
15
|
+
import {
|
|
18
16
|
printMssqlHelp,
|
|
19
17
|
deleteMssqlEntitlements,
|
|
20
18
|
createMssqlEntitlement,
|
|
@@ -37,10 +35,10 @@ const {
|
|
|
37
35
|
updateMssqlConfiguration,
|
|
38
36
|
updateMssqlConfigurations,
|
|
39
37
|
deleteMssqlConfiguration,
|
|
40
|
-
}
|
|
38
|
+
} from "./license-manager/microsoft.js";
|
|
41
39
|
|
|
42
40
|
// Vcenter configuration functions
|
|
43
|
-
|
|
41
|
+
import {
|
|
44
42
|
printVcenterHelp,
|
|
45
43
|
createVcenterConfiguration,
|
|
46
44
|
deleteVcenterConfiguration,
|
|
@@ -48,10 +46,10 @@ const {
|
|
|
48
46
|
getVcenterConfiguration,
|
|
49
47
|
updateVcenterConfiguration,
|
|
50
48
|
updateVcenterConfigurations,
|
|
51
|
-
}
|
|
49
|
+
} from "./license-manager/vcenter.js";
|
|
52
50
|
|
|
53
51
|
// Nutanix configuration functions
|
|
54
|
-
|
|
52
|
+
import {
|
|
55
53
|
printNutanixHelp,
|
|
56
54
|
createNutanixConfiguration,
|
|
57
55
|
deleteNutanixConfiguration,
|
|
@@ -59,7 +57,7 @@ const {
|
|
|
59
57
|
getNutanixConfiguration,
|
|
60
58
|
updateNutanixConfiguration,
|
|
61
59
|
updateNutanixConfigurations,
|
|
62
|
-
}
|
|
60
|
+
} from "./license-manager/nutanix.js";
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* @module license-manager
|
|
@@ -88,7 +86,7 @@ async function createOracleSharedCredential(args) {
|
|
|
88
86
|
const createResponse =
|
|
89
87
|
await client.licenseManager.createOracleSharedCredential(
|
|
90
88
|
global.monitoringConfig,
|
|
91
|
-
optionalParams
|
|
89
|
+
optionalParams,
|
|
92
90
|
);
|
|
93
91
|
|
|
94
92
|
console.log(JSON.stringify(createResponse, null, 2));
|
|
@@ -118,7 +116,7 @@ async function deleteOracleSharedCredential(args) {
|
|
|
118
116
|
async function getOracleDefaultCredential(args) {
|
|
119
117
|
const client = await getOpsCompassClient();
|
|
120
118
|
const getResponse = await client.licenseManager.getOracleDefaultCredential(
|
|
121
|
-
global.monitoringConfig
|
|
119
|
+
global.monitoringConfig,
|
|
122
120
|
);
|
|
123
121
|
|
|
124
122
|
console.log(JSON.stringify(getResponse, null, 2));
|
|
@@ -148,7 +146,7 @@ async function updateOracleSharedCredential(args) {
|
|
|
148
146
|
const updateResponse =
|
|
149
147
|
await client.licenseManager.updateOracleSharedCredential(
|
|
150
148
|
id,
|
|
151
|
-
optionalParams
|
|
149
|
+
optionalParams,
|
|
152
150
|
);
|
|
153
151
|
|
|
154
152
|
console.log(JSON.stringify(updateResponse, null, 2));
|
|
@@ -178,9 +176,8 @@ async function deleteMonitoringConfiguration(args) {
|
|
|
178
176
|
}
|
|
179
177
|
|
|
180
178
|
const client = await getOpsCompassClient();
|
|
181
|
-
const response =
|
|
182
|
-
id
|
|
183
|
-
);
|
|
179
|
+
const response =
|
|
180
|
+
await client.licenseManager.deleteMonitoringConfiguration(id);
|
|
184
181
|
|
|
185
182
|
console.log(JSON.stringify(response, null, 2));
|
|
186
183
|
}
|
|
@@ -206,7 +203,7 @@ async function listOracleDatabaseConfigurations(args) {
|
|
|
206
203
|
const client = await getOpsCompassClient();
|
|
207
204
|
const monitoringConfigs =
|
|
208
205
|
await client.licenseManager.listOracleDatabaseConfigurations(
|
|
209
|
-
global.monitoringConfig
|
|
206
|
+
global.monitoringConfig,
|
|
210
207
|
);
|
|
211
208
|
|
|
212
209
|
console.log(JSON.stringify(monitoringConfigs, null, 2));
|
|
@@ -294,7 +291,7 @@ async function getMonitoringConfiguration(args) {
|
|
|
294
291
|
const monitoringConfiguration =
|
|
295
292
|
await client.licenseManager.getMonitoringConfiguration(
|
|
296
293
|
configId,
|
|
297
|
-
optionalParams
|
|
294
|
+
optionalParams,
|
|
298
295
|
);
|
|
299
296
|
if (!monitoringConfiguration) {
|
|
300
297
|
console.error("No configuration found for ID: ", configId);
|
|
@@ -323,6 +320,7 @@ async function getMonitoringConfiguration(args) {
|
|
|
323
320
|
}
|
|
324
321
|
|
|
325
322
|
async function readMonitoringConfiguration(args) {
|
|
323
|
+
let configId = global.monitoringConfig;
|
|
326
324
|
let getPath = false;
|
|
327
325
|
for (let i = 0; i <= args.length - 1; i++) {
|
|
328
326
|
switch (args[i].toLowerCase()) {
|
|
@@ -350,8 +348,8 @@ async function readMonitoringConfiguration(args) {
|
|
|
350
348
|
filePath: cfgFile.filePath,
|
|
351
349
|
},
|
|
352
350
|
null,
|
|
353
|
-
2
|
|
354
|
-
)
|
|
351
|
+
2,
|
|
352
|
+
),
|
|
355
353
|
);
|
|
356
354
|
} else console.log("undefined");
|
|
357
355
|
return;
|
|
@@ -391,7 +389,7 @@ async function createMonitoringConfiguration(args) {
|
|
|
391
389
|
await client.licenseManager.createMonitoringConfiguration(
|
|
392
390
|
global.company,
|
|
393
391
|
name,
|
|
394
|
-
optionalParams
|
|
392
|
+
optionalParams,
|
|
395
393
|
);
|
|
396
394
|
|
|
397
395
|
console.log(JSON.stringify(monitoringConfiguration, null, 2));
|
|
@@ -426,7 +424,7 @@ async function createOracleDatabaseConfiguration(args) {
|
|
|
426
424
|
const oracleDatabaseConfiguration = await createMaskedConfig(
|
|
427
425
|
arguments.callee.name,
|
|
428
426
|
configurationName,
|
|
429
|
-
optionalParams
|
|
427
|
+
optionalParams,
|
|
430
428
|
);
|
|
431
429
|
console.log(JSON.stringify(oracleDatabaseConfiguration, null, 2));
|
|
432
430
|
}
|
|
@@ -488,7 +486,7 @@ async function updateMonitoringConfiguration(args) {
|
|
|
488
486
|
const monitoringConfiguration =
|
|
489
487
|
await client.licenseManager.updateMonitoringConfiguration(
|
|
490
488
|
callParams.id,
|
|
491
|
-
callParams
|
|
489
|
+
callParams,
|
|
492
490
|
);
|
|
493
491
|
|
|
494
492
|
console.log(JSON.stringify(monitoringConfiguration, null, 2));
|
|
@@ -524,7 +522,7 @@ async function updateOracleDatabaseConfiguration(args) {
|
|
|
524
522
|
const oracleDatabaseConfiguration = await updateMaskedConfig(
|
|
525
523
|
arguments.callee.name,
|
|
526
524
|
callParams.id,
|
|
527
|
-
callParams
|
|
525
|
+
callParams,
|
|
528
526
|
);
|
|
529
527
|
console.log(JSON.stringify(oracleDatabaseConfiguration, null, 2));
|
|
530
528
|
}
|
|
@@ -592,7 +590,7 @@ async function updateOracleDatabaseConfigurations(args) {
|
|
|
592
590
|
const client = await getOpsCompassClient();
|
|
593
591
|
const oracleDatabaseConfigurations =
|
|
594
592
|
await client.licenseManager.updateOracleDatabaseConfigurations(
|
|
595
|
-
callParamsArray
|
|
593
|
+
callParamsArray,
|
|
596
594
|
);
|
|
597
595
|
console.log(JSON.stringify(oracleDatabaseConfigurations, null, 2));
|
|
598
596
|
}
|
|
@@ -673,7 +671,7 @@ async function updateNetworkDiscoveryConfiguration(args) {
|
|
|
673
671
|
id,
|
|
674
672
|
networkDiscoveryConfig.subnets,
|
|
675
673
|
networkDiscoveryConfig.dns_servers,
|
|
676
|
-
networkDiscoveryConfig.ports
|
|
674
|
+
networkDiscoveryConfig.ports,
|
|
677
675
|
);
|
|
678
676
|
console.log(JSON.stringify(updatedDiscoveryConfig, null, 2));
|
|
679
677
|
}
|
|
@@ -735,7 +733,7 @@ async function createNetworkDiscoveryConfiguration(args) {
|
|
|
735
733
|
global.monitoringConfig,
|
|
736
734
|
networkDiscoveryConfig.subnets,
|
|
737
735
|
networkDiscoveryConfig.dns_servers,
|
|
738
|
-
networkDiscoveryConfig.ports
|
|
736
|
+
networkDiscoveryConfig.ports,
|
|
739
737
|
);
|
|
740
738
|
console.log(JSON.stringify(createdDiscoveryConfig, null, 2));
|
|
741
739
|
}
|
|
@@ -758,7 +756,7 @@ async function checkOracleConfigMetadata(args) {
|
|
|
758
756
|
const response = await client.licenseManager.checkOracleConfigMetadata(
|
|
759
757
|
callParams.accountId,
|
|
760
758
|
global.company,
|
|
761
|
-
callParams.lastCollectedBefore
|
|
759
|
+
callParams.lastCollectedBefore,
|
|
762
760
|
);
|
|
763
761
|
console.log(JSON.stringify(response, null, 2));
|
|
764
762
|
}
|
|
@@ -768,44 +766,44 @@ async function printHelp() {
|
|
|
768
766
|
console.log();
|
|
769
767
|
console.log(
|
|
770
768
|
"get-secret-for-configuration",
|
|
771
|
-
"Gets a secret for a single configuration passed."
|
|
769
|
+
"Gets a secret for a single configuration passed.",
|
|
772
770
|
);
|
|
773
771
|
console.log("Parameters:");
|
|
774
772
|
console.log(
|
|
775
|
-
"--id [{data gathering}_configuration_id] (e.g. oracle, mssql, vcenter, ...)"
|
|
773
|
+
"--id [{data gathering}_configuration_id] (e.g. oracle, mssql, vcenter, ...)",
|
|
776
774
|
);
|
|
777
775
|
console.log(
|
|
778
776
|
"--record-type [%s]",
|
|
779
|
-
licenseManagerConfigurationTypes.join(" | ")
|
|
777
|
+
licenseManagerConfigurationTypes.join(" | "),
|
|
780
778
|
);
|
|
781
779
|
console.log();
|
|
782
780
|
console.log(
|
|
783
781
|
"create-oracle-shared-credential",
|
|
784
|
-
"Creates Oracle shared credentials"
|
|
782
|
+
"Creates Oracle shared credentials",
|
|
785
783
|
);
|
|
786
784
|
console.log(
|
|
787
|
-
"--monitoring-configuration-id monitoring configuration ID to make the shared credentials for"
|
|
785
|
+
"--monitoring-configuration-id monitoring configuration ID to make the shared credentials for",
|
|
788
786
|
);
|
|
789
787
|
console.log("--user (optional) [string]");
|
|
790
788
|
console.log("--password (optional) [string]");
|
|
791
789
|
console.log();
|
|
792
790
|
console.log(
|
|
793
791
|
"delete-oracle-shared-credential",
|
|
794
|
-
"Delete a Oracle shared credential"
|
|
792
|
+
"Delete a Oracle shared credential",
|
|
795
793
|
);
|
|
796
794
|
console.log("--id ID of the oracle shared credential to delete");
|
|
797
795
|
console.log();
|
|
798
796
|
console.log(
|
|
799
797
|
"get-oracle-default-credential",
|
|
800
|
-
"Get Oracle default credential record"
|
|
798
|
+
"Get Oracle default credential record",
|
|
801
799
|
);
|
|
802
800
|
console.log(
|
|
803
|
-
"--monitoring-configuration-id monitoring configuration ID to get the default credentials for"
|
|
801
|
+
"--monitoring-configuration-id monitoring configuration ID to get the default credentials for",
|
|
804
802
|
);
|
|
805
803
|
console.log();
|
|
806
804
|
console.log(
|
|
807
805
|
"update-oracle-shared-credential",
|
|
808
|
-
"Update Oracle shared credential record"
|
|
806
|
+
"Update Oracle shared credential record",
|
|
809
807
|
);
|
|
810
808
|
console.log("--id ID of the oracle shared credential to update");
|
|
811
809
|
console.log("--user (optional) [string]");
|
|
@@ -813,34 +811,34 @@ async function printHelp() {
|
|
|
813
811
|
console.log();
|
|
814
812
|
console.log(
|
|
815
813
|
"list-monitoring-configurations",
|
|
816
|
-
"Lists all of the monitoring configurations associated with the given company."
|
|
814
|
+
"Lists all of the monitoring configurations associated with the given company.",
|
|
817
815
|
);
|
|
818
816
|
console.log("Parameters:");
|
|
819
817
|
console.log(`--company [company_slug] (default: ${global.company})\n`);
|
|
820
818
|
console.log();
|
|
821
819
|
console.log(
|
|
822
820
|
"mask-monitoring-configurations,",
|
|
823
|
-
"Tools for managing sensitive data associated with the given company."
|
|
821
|
+
"Tools for managing sensitive data associated with the given company.",
|
|
824
822
|
);
|
|
825
823
|
console.log("Parameters:");
|
|
826
824
|
console.log(`--company [company_slug] (default: ${global.company})\n`);
|
|
827
825
|
maskValues.printHelp();
|
|
828
826
|
console.log(
|
|
829
827
|
"get-monitoring-configuration",
|
|
830
|
-
"Get a single monitoring configuration associated with the given company."
|
|
828
|
+
"Get a single monitoring configuration associated with the given company.",
|
|
831
829
|
);
|
|
832
830
|
console.log("Parameters:");
|
|
833
831
|
console.log("--id [monitoring_configuration_id]");
|
|
834
832
|
console.log(
|
|
835
|
-
"--asFile (optional) {true|false} - fetch configuration as a file"
|
|
833
|
+
"--asFile (optional) {true|false} - fetch configuration as a file",
|
|
836
834
|
);
|
|
837
835
|
console.log(
|
|
838
|
-
"--saveFile (optional) {true|false|{save-path}} - save configuration (implies asFile)"
|
|
836
|
+
"--saveFile (optional) {true|false|{save-path}} - save configuration (implies asFile)",
|
|
839
837
|
);
|
|
840
838
|
console.log();
|
|
841
839
|
console.log(
|
|
842
840
|
"read-monitoring-configuration",
|
|
843
|
-
"Reads a local monitoring configuration associated with the given company."
|
|
841
|
+
"Reads a local monitoring configuration associated with the given company.",
|
|
844
842
|
);
|
|
845
843
|
console.log("Parameters:");
|
|
846
844
|
console.log("--id [monitoring_configuration_id]");
|
|
@@ -848,92 +846,92 @@ async function printHelp() {
|
|
|
848
846
|
console.log();
|
|
849
847
|
console.log(
|
|
850
848
|
"get-network-discovery-configuration",
|
|
851
|
-
"Get a single network discovery configuration."
|
|
849
|
+
"Get a single network discovery configuration.",
|
|
852
850
|
);
|
|
853
851
|
console.log("Parameters:");
|
|
854
852
|
console.log("--id [network_discovery_configuration_id]");
|
|
855
853
|
console.log();
|
|
856
854
|
console.log(
|
|
857
855
|
"create-monitoring-configuration",
|
|
858
|
-
"Create a single monitoring configuration associated with the given company."
|
|
856
|
+
"Create a single monitoring configuration associated with the given company.",
|
|
859
857
|
);
|
|
860
858
|
console.log("Parameters:");
|
|
861
859
|
console.log(`--company [company_slug] (default: ${global.company})\n`);
|
|
862
860
|
console.log("--configurationName [configuration name]");
|
|
863
861
|
console.log(
|
|
864
|
-
"--autoUpdateScripts (optional) [true | false] automatically update all scripts when the scripts are run."
|
|
862
|
+
"--autoUpdateScripts (optional) [true | false] automatically update all scripts when the scripts are run.",
|
|
865
863
|
);
|
|
866
864
|
console.log(
|
|
867
|
-
"--autoUpdateConfigurations (optional) [true | false] automatically update all configurations when scripts are run."
|
|
865
|
+
"--autoUpdateConfigurations (optional) [true | false] automatically update all configurations when scripts are run.",
|
|
868
866
|
);
|
|
869
867
|
console.log();
|
|
870
868
|
console.log(
|
|
871
869
|
"create-network-discovery-configuration",
|
|
872
|
-
"Creates a new networking discovery configuration associated with the given monitoring configuration."
|
|
870
|
+
"Creates a new networking discovery configuration associated with the given monitoring configuration.",
|
|
873
871
|
);
|
|
874
872
|
console.log("Parameters:");
|
|
875
873
|
console.log("--monitoring-configuration-id [monitoring_configuration_id]");
|
|
876
874
|
console.log(
|
|
877
|
-
"--oracle-ports (optional) comma seperated list of valid port numbers to look for oracle connections"
|
|
875
|
+
"--oracle-ports (optional) comma seperated list of valid port numbers to look for oracle connections",
|
|
878
876
|
);
|
|
879
877
|
console.log(
|
|
880
|
-
"--mssql-ports (optional) comma seperated list of valid port numbers to look for mssql connections"
|
|
878
|
+
"--mssql-ports (optional) comma seperated list of valid port numbers to look for mssql connections",
|
|
881
879
|
);
|
|
882
880
|
console.log(
|
|
883
|
-
"--other-ports (optional) comma seperated list of valid port numbers to look for misc connections"
|
|
881
|
+
"--other-ports (optional) comma seperated list of valid port numbers to look for misc connections",
|
|
884
882
|
);
|
|
885
883
|
console.log(
|
|
886
|
-
"--dns-servers (optional) comma seperated list of valid IPV4 DNS servers to use for DNS resolution. Can be specified multiple times"
|
|
884
|
+
"--dns-servers (optional) comma seperated list of valid IPV4 DNS servers to use for DNS resolution. Can be specified multiple times",
|
|
887
885
|
);
|
|
888
886
|
console.log(
|
|
889
|
-
"--subnet (optional) If supplied --subnet-name is also required. Valid IPV4 CIDR block as an input. Can be supplied multiple times"
|
|
887
|
+
"--subnet (optional) If supplied --subnet-name is also required. Valid IPV4 CIDR block as an input. Can be supplied multiple times",
|
|
890
888
|
);
|
|
891
889
|
console.log(
|
|
892
|
-
"--subnet-name (optional) If supplied --subnet is also required. Name for the next/last subnet block provided. Can be supplied multiple times."
|
|
890
|
+
"--subnet-name (optional) If supplied --subnet is also required. Name for the next/last subnet block provided. Can be supplied multiple times.",
|
|
893
891
|
);
|
|
894
892
|
console.log();
|
|
895
893
|
console.log(
|
|
896
894
|
"update-network-discovery-configuration",
|
|
897
|
-
"Updates an existing networking discovery configuration. If an optional parameter is not provided, it is assumed that the field should be set to undefined."
|
|
895
|
+
"Updates an existing networking discovery configuration. If an optional parameter is not provided, it is assumed that the field should be set to undefined.",
|
|
898
896
|
);
|
|
899
897
|
console.log("Parameters:");
|
|
900
898
|
console.log("--id [network_discovery_configuration_id]");
|
|
901
899
|
console.log(
|
|
902
|
-
"--oracle-ports (optional) comma seperated list of valid port numbers to look for oracle connections"
|
|
900
|
+
"--oracle-ports (optional) comma seperated list of valid port numbers to look for oracle connections",
|
|
903
901
|
);
|
|
904
902
|
console.log(
|
|
905
|
-
"--mssql-ports (optional) comma seperated list of valid port numbers to look for mssql connections"
|
|
903
|
+
"--mssql-ports (optional) comma seperated list of valid port numbers to look for mssql connections",
|
|
906
904
|
);
|
|
907
905
|
console.log(
|
|
908
|
-
"--other-ports (optional) comma seperated list of valid port numbers to look for misc connections"
|
|
906
|
+
"--other-ports (optional) comma seperated list of valid port numbers to look for misc connections",
|
|
909
907
|
);
|
|
910
908
|
console.log(
|
|
911
|
-
"--dns-servers (optional) comma seperated list of valid IPV4 DNS servers to use for DNS resolution. Can be specified multiple times"
|
|
909
|
+
"--dns-servers (optional) comma seperated list of valid IPV4 DNS servers to use for DNS resolution. Can be specified multiple times",
|
|
912
910
|
);
|
|
913
911
|
console.log(
|
|
914
|
-
"--subnet (optional) If supplied --subnet-name is also required. Valid IPV4 CIDR block as an input. Can be supplied multiple times"
|
|
912
|
+
"--subnet (optional) If supplied --subnet-name is also required. Valid IPV4 CIDR block as an input. Can be supplied multiple times",
|
|
915
913
|
);
|
|
916
914
|
console.log(
|
|
917
|
-
"--subnet-name (optional) If supplied --subnet is also required. Name for the next/last subnet block provided. Can be supplied multiple times."
|
|
915
|
+
"--subnet-name (optional) If supplied --subnet is also required. Name for the next/last subnet block provided. Can be supplied multiple times.",
|
|
918
916
|
);
|
|
919
917
|
console.log();
|
|
920
918
|
console.log(
|
|
921
919
|
"list-oracle-database-configurations",
|
|
922
|
-
"Lists all of the oracle database configurations associated with the given monitoring configuration"
|
|
920
|
+
"Lists all of the oracle database configurations associated with the given monitoring configuration",
|
|
923
921
|
);
|
|
924
922
|
console.log("Parameters:");
|
|
925
923
|
console.log("--monitoring-configuration-id [monitoring_configuration_id]");
|
|
926
924
|
console.log();
|
|
927
925
|
console.log(
|
|
928
926
|
"get-oracle-database-configuration",
|
|
929
|
-
"Get a single oracle database configuration associated with the given monitoring configuration"
|
|
927
|
+
"Get a single oracle database configuration associated with the given monitoring configuration",
|
|
930
928
|
);
|
|
931
929
|
console.log("Parameters:");
|
|
932
930
|
console.log("--id [oracle_database_configuration_id]");
|
|
933
931
|
console.log();
|
|
934
932
|
console.log(
|
|
935
933
|
"update-monitoring-configuration",
|
|
936
|
-
"Update a single monitoring configuration."
|
|
934
|
+
"Update a single monitoring configuration.",
|
|
937
935
|
);
|
|
938
936
|
console.log("Parameters:");
|
|
939
937
|
console.log("--id [monitoring_configuration id]");
|
|
@@ -941,42 +939,42 @@ async function printHelp() {
|
|
|
941
939
|
console.log("--autoUpdateConfigurations (optional) [true | false]");
|
|
942
940
|
console.log("--autoUpdateScripts (optional) [true | false]");
|
|
943
941
|
console.log(
|
|
944
|
-
"--dataFileRetainDays (optional) [determines how many days to retain encrypted output files locally]"
|
|
942
|
+
"--dataFileRetainDays (optional) [determines how many days to retain encrypted output files locally]",
|
|
945
943
|
);
|
|
946
944
|
console.log(
|
|
947
|
-
"--dataFileRetainTextDays (optional) [determines how many days to retain individual script output files locally]"
|
|
945
|
+
"--dataFileRetainTextDays (optional) [determines how many days to retain individual script output files locally]",
|
|
948
946
|
);
|
|
949
947
|
console.log(
|
|
950
|
-
"--forceFileEncryption (optional) [enforce encryption of datafiles before being sent]"
|
|
948
|
+
"--forceFileEncryption (optional) [enforce encryption of datafiles before being sent]",
|
|
951
949
|
);
|
|
952
950
|
console.log(
|
|
953
|
-
"--dataFileTag (optional) [used to help filename generation to prevent duplicate file names]"
|
|
951
|
+
"--dataFileTag (optional) [used to help filename generation to prevent duplicate file names]",
|
|
954
952
|
);
|
|
955
953
|
console.log(
|
|
956
|
-
"--mailFrom (optional) [Use parameter multiple times to send multiple email addresses. Identifies sender's email addresses when file delivery is done through email.]"
|
|
954
|
+
"--mailFrom (optional) [Use parameter multiple times to send multiple email addresses. Identifies sender's email addresses when file delivery is done through email.]",
|
|
957
955
|
);
|
|
958
956
|
console.log(
|
|
959
|
-
"--emailTo (optional) [Use parameter multiple times to send multiple email addresses. Identifies the destination email addresses when file delivery is done through email.]"
|
|
957
|
+
"--emailTo (optional) [Use parameter multiple times to send multiple email addresses. Identifies the destination email addresses when file delivery is done through email.]",
|
|
960
958
|
);
|
|
961
959
|
console.log(
|
|
962
|
-
"--notificationEmailTo (optional) [Use parameter multiple times to send multiple email addresses. Identifies the destination email addresses when notifications are sent.]"
|
|
960
|
+
"--notificationEmailTo (optional) [Use parameter multiple times to send multiple email addresses. Identifies the destination email addresses when notifications are sent.]",
|
|
963
961
|
);
|
|
964
962
|
console.log(
|
|
965
|
-
"--logFileRetainDays (optional) [determines how many days to retain log files locally]"
|
|
963
|
+
"--logFileRetainDays (optional) [determines how many days to retain log files locally]",
|
|
966
964
|
);
|
|
967
965
|
console.log(
|
|
968
|
-
"--logFileTag (optional) [used to help filename generation to prevent duplicate file names]"
|
|
966
|
+
"--logFileTag (optional) [used to help filename generation to prevent duplicate file names]",
|
|
969
967
|
);
|
|
970
968
|
console.log();
|
|
971
969
|
console.log(
|
|
972
970
|
"update-oracle-database-configuration",
|
|
973
|
-
"Update a single oracle database configuration."
|
|
971
|
+
"Update a single oracle database configuration.",
|
|
974
972
|
);
|
|
975
973
|
console.log("Parameters:");
|
|
976
974
|
console.log("--id [configuration id]");
|
|
977
975
|
console.log("--name or --configuration-name (optional) [unique name]");
|
|
978
976
|
console.log(
|
|
979
|
-
`--action (optional) pass multiple times to define which actions this configuration can take --action "skip" --action "dbcompliance"
|
|
977
|
+
`--action (optional) pass multiple times to define which actions this configuration can take --action "skip" --action "dbcompliance"`,
|
|
980
978
|
);
|
|
981
979
|
console.log("--user (optional) [user to use for connection]");
|
|
982
980
|
console.log("--password (optional) [password to use for connection]");
|
|
@@ -984,13 +982,13 @@ async function printHelp() {
|
|
|
984
982
|
console.log();
|
|
985
983
|
console.log(
|
|
986
984
|
"update-oracle-database-configurations",
|
|
987
|
-
"Bulk update oracle database configurations."
|
|
985
|
+
"Bulk update oracle database configurations.",
|
|
988
986
|
);
|
|
989
987
|
console.log("Parameters:");
|
|
990
988
|
console.log("--id [configuration id]");
|
|
991
989
|
console.log("--name or --configuration-name (optional) [unique name]");
|
|
992
990
|
console.log(
|
|
993
|
-
`--action (optional) pass multiple times to define which actions this configuration can take e.g. --action "skip" --action "dbcompliance"
|
|
991
|
+
`--action (optional) pass multiple times to define which actions this configuration can take e.g. --action "skip" --action "dbcompliance"`,
|
|
994
992
|
);
|
|
995
993
|
console.log("--user (optional) [the user to use for the connection]");
|
|
996
994
|
console.log("--password (optional) [the password to use for the connection]");
|
|
@@ -998,45 +996,45 @@ async function printHelp() {
|
|
|
998
996
|
console.log("OR --json-updates [stringified json objects with your updates]");
|
|
999
997
|
console.log("For quick updates, you may use the above parameters");
|
|
1000
998
|
console.log(
|
|
1001
|
-
`e.g. opscompass license-manager update-oracle-database-configurations --id 57 --name "updatedName" --id 62 --name "otherUpdatedName" --id 77 --name "lastUpdatedName"
|
|
999
|
+
`e.g. opscompass license-manager update-oracle-database-configurations --id 57 --name "updatedName" --id 62 --name "otherUpdatedName" --id 77 --name "lastUpdatedName";`,
|
|
1002
1000
|
);
|
|
1003
1001
|
console.log(
|
|
1004
|
-
"For larger updates, JavaScript Object Notation (JSON) may be used with the --json-updates flag"
|
|
1002
|
+
"For larger updates, JavaScript Object Notation (JSON) may be used with the --json-updates flag",
|
|
1005
1003
|
);
|
|
1006
1004
|
console.log(
|
|
1007
|
-
`e.g. opscompass license-manager update-oracle-database-configurations --json-updates '[{\"id\":\"57\",\"configurationName\":\"updatedName\"},{\"id\":\"77\", \"configurationName\":\"otherUpdatedName\", \"action\":\"null\"},{\"id\":\"79\", \"configurationName\":\"lastUpdatedName\"}]'
|
|
1005
|
+
`e.g. opscompass license-manager update-oracle-database-configurations --json-updates '[{\"id\":\"57\",\"configurationName\":\"updatedName\"},{\"id\":\"77\", \"configurationName\":\"otherUpdatedName\", \"action\":\"null\"},{\"id\":\"79\", \"configurationName\":\"lastUpdatedName\"}]'`,
|
|
1008
1006
|
);
|
|
1009
1007
|
console.log();
|
|
1010
1008
|
console.log(
|
|
1011
1009
|
"delete-monitoring-configuration",
|
|
1012
|
-
"Delete a monitoring configuration"
|
|
1010
|
+
"Delete a monitoring configuration",
|
|
1013
1011
|
);
|
|
1014
1012
|
console.log("Parameters:");
|
|
1015
1013
|
console.log("--id [monitoring_configuration_id]");
|
|
1016
1014
|
console.log();
|
|
1017
1015
|
console.log(
|
|
1018
1016
|
"delete-network-discovery-configuration",
|
|
1019
|
-
"Delete a network discovery configuration"
|
|
1017
|
+
"Delete a network discovery configuration",
|
|
1020
1018
|
);
|
|
1021
1019
|
console.log("Parameters:");
|
|
1022
1020
|
console.log("--id [network_discovery_configuration_id]");
|
|
1023
1021
|
console.log();
|
|
1024
1022
|
console.log(
|
|
1025
1023
|
"delete-oracle-database-configuration",
|
|
1026
|
-
"Delete a oracle database configuration"
|
|
1024
|
+
"Delete a oracle database configuration",
|
|
1027
1025
|
);
|
|
1028
1026
|
console.log("Parameters:");
|
|
1029
1027
|
console.log("--id [oracle_database_configuration_id]");
|
|
1030
1028
|
console.log();
|
|
1031
1029
|
console.log(
|
|
1032
1030
|
"check-oracle-config-metadata",
|
|
1033
|
-
"Checks the oracle configuration metadata for a company."
|
|
1031
|
+
"Checks the oracle configuration metadata for a company.",
|
|
1034
1032
|
);
|
|
1035
1033
|
console.log("Parameters:");
|
|
1036
1034
|
console.log("--accountId [string] The account id for the company.");
|
|
1037
1035
|
console.log(`--company [company_slug] (default: ${global.company})\n`);
|
|
1038
1036
|
console.log(
|
|
1039
|
-
"--lastCollectedBefore [string] (optional) Only returns records that have not been collected since the given date. Format: UTC, example: '2022-08-23T17:00:00Z'"
|
|
1037
|
+
"--lastCollectedBefore [string] (optional) Only returns records that have not been collected since the given date. Format: UTC, example: '2022-08-23T17:00:00Z'",
|
|
1040
1038
|
);
|
|
1041
1039
|
console.log();
|
|
1042
1040
|
|
|
@@ -1188,4 +1186,4 @@ licenseManagerModule.requiresLogin = true;
|
|
|
1188
1186
|
licenseManagerModule.description =
|
|
1189
1187
|
"Provides access to details about License Management in OpsCompass.";
|
|
1190
1188
|
|
|
1191
|
-
|
|
1189
|
+
export default licenseManagerModule;
|