@zowe/cli 7.0.0-next.202111222227 → 7.0.0-next.202112142155
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/lib/DaemonClient.d.ts +1 -1
- package/lib/DaemonClient.js +19 -6
- package/lib/DaemonClient.js.map +1 -1
- package/lib/imperative.js +2 -1
- package/lib/imperative.js.map +1 -1
- package/lib/zoslogs/ZosLogs.definition.d.ts +2 -0
- package/lib/zoslogs/ZosLogs.definition.js +24 -0
- package/lib/zoslogs/ZosLogs.definition.js.map +1 -0
- package/lib/zoslogs/list/List.definition.d.ts +2 -0
- package/lib/zoslogs/list/List.definition.js +23 -0
- package/lib/zoslogs/list/List.definition.js.map +1 -0
- package/lib/zoslogs/list/logs/Logs.definition.d.ts +2 -0
- package/lib/zoslogs/list/logs/Logs.definition.js +71 -0
- package/lib/zoslogs/list/logs/Logs.definition.js.map +1 -0
- package/lib/zoslogs/list/logs/Logs.handler.d.ts +11 -0
- package/lib/zoslogs/list/logs/Logs.handler.js +78 -0
- package/lib/zoslogs/list/logs/Logs.handler.js.map +1 -0
- package/package.json +13 -12
- package/prebuilds/Cargo.lock +91 -11
- package/prebuilds/Cargo.toml +5 -3
- package/prebuilds/zowe-linux.tgz +0 -0
- package/prebuilds/zowe-macos.tgz +0 -0
- package/prebuilds/zowe-windows.tgz +0 -0
package/lib/DaemonClient.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class DaemonClient {
|
|
|
15
15
|
* @memberof DaemonClient
|
|
16
16
|
*/
|
|
17
17
|
private static readonly STOP_KEY;
|
|
18
|
-
private static readonly
|
|
18
|
+
private static readonly ZOWE_DEAMON_ID;
|
|
19
19
|
/**
|
|
20
20
|
* Creates an instance of DaemonClient.
|
|
21
21
|
* @param {net.Socket} mClient
|
package/lib/DaemonClient.js
CHANGED
|
@@ -61,8 +61,18 @@ class DaemonClient {
|
|
|
61
61
|
* @memberof DaemonClient
|
|
62
62
|
*/
|
|
63
63
|
data(data) {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
const stringData = data.toString();
|
|
65
|
+
// assess if this data is related to a prompt reply and ignore if so
|
|
66
|
+
if (stringData.indexOf(DaemonClient.ZOWE_DEAMON_ID) > -1) {
|
|
67
|
+
try {
|
|
68
|
+
const jsonData = JSON.parse(stringData);
|
|
69
|
+
if (jsonData.id && jsonData.id === DaemonClient.ZOWE_DEAMON_ID) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (_a) {
|
|
74
|
+
// do nothing
|
|
75
|
+
}
|
|
66
76
|
}
|
|
67
77
|
// NOTE(Kelosky): this is not exposed yet, but will allow for a clean shut down if undocumented `--shutdown`
|
|
68
78
|
// is written to the persistent Processor. It should be wrapped in a new header and handled in DaemonClient.ts, e.g. x-zowe-daemon-shutdown
|
|
@@ -78,9 +88,12 @@ class DaemonClient {
|
|
|
78
88
|
// handle as context
|
|
79
89
|
}
|
|
80
90
|
else {
|
|
81
|
-
|
|
82
|
-
imperative_1.Imperative.
|
|
83
|
-
imperative_1.Imperative.
|
|
91
|
+
const [cwd, cmdInput] = stringData.split("\r", 2);
|
|
92
|
+
imperative_1.Imperative.api.appLogger.trace(`daemon input command: ${cmdInput}`);
|
|
93
|
+
imperative_1.Imperative.commandLine = cmdInput;
|
|
94
|
+
// TODO Remove the --dcd hack - perhaps use PWD env var instead?
|
|
95
|
+
// This will be a bigger problem when we need to support multitenancy
|
|
96
|
+
imperative_1.Imperative.parse(`${cmdInput} --dcd ${cwd}`, { stream: this.mClient });
|
|
84
97
|
}
|
|
85
98
|
}
|
|
86
99
|
}
|
|
@@ -92,5 +105,5 @@ exports.DaemonClient = DaemonClient;
|
|
|
92
105
|
* @memberof DaemonClient
|
|
93
106
|
*/
|
|
94
107
|
DaemonClient.STOP_KEY = "--shutdown";
|
|
95
|
-
DaemonClient.
|
|
108
|
+
DaemonClient.ZOWE_DEAMON_ID = "daemon-client";
|
|
96
109
|
//# sourceMappingURL=DaemonClient.js.map
|
package/lib/DaemonClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DaemonClient.js","sourceRoot":"","sources":["../src/DaemonClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAA8C;AAI9C;;;;GAIG;AACH,MAAa,YAAY;IAWrB;;;;;OAKG;IACH,YAAoB,OAAmB,EAAU,OAAmB;QAAhD,YAAO,GAAP,OAAO,CAAY;QAAU,YAAO,GAAP,OAAO,CAAY;IACpE,CAAC;IAED;;;OAGG;IACI,GAAG;QACN,uBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACK,GAAG;QACP,uBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACK,KAAK;QACT,uBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACpD,CAAC;IAED;;;;;OAKG;IACK,IAAI,CAAC,IAAY;
|
|
1
|
+
{"version":3,"file":"DaemonClient.js","sourceRoot":"","sources":["../src/DaemonClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAA8C;AAI9C;;;;GAIG;AACH,MAAa,YAAY;IAWrB;;;;;OAKG;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AA4I;QAC5I,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAClE,IAAI,UAAU,GAAG,CAAC,CAAC,EAAE;YACjB,IAAI,IAAI,CAAC,OAAO,EAAE;gBACd,uBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;gBAChD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;gBACzC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;gBACnB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;aACxB;YACD,gGAAgG;YAChG,oBAAoB;SACvB;aAAM;YACH,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAClD,uBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAC;YACpE,uBAAU,CAAC,WAAW,GAAG,QAAQ,CAAC;YAClC,gEAAgE;YAChE,qEAAqE;YACrE,uBAAU,CAAC,KAAK,CAAC,GAAG,QAAQ,UAAU,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;SAC1E;IACL,CAAC;;AA5FL,oCA6FC;AA3FG;;;;;GAKG;AACqB,qBAAQ,GAAG,YAAY,CAAC;AACxB,2BAAc,GAAG,eAAe,CAAC"}
|
package/lib/imperative.js
CHANGED
|
@@ -26,7 +26,8 @@ const config = {
|
|
|
26
26
|
"zosjobs/*.definition!(.d).*s",
|
|
27
27
|
"zosmf/*.definition!(.d).*s",
|
|
28
28
|
"zostso/*.definition!(.d).*s",
|
|
29
|
-
"zosuss/*.definition!(.d).*s"
|
|
29
|
+
"zosuss/*.definition!(.d).*s",
|
|
30
|
+
"zoslogs/*.definition!(.d).*s"
|
|
30
31
|
],
|
|
31
32
|
rootCommandDescription: Constants_1.Constants.DESCRIPTION,
|
|
32
33
|
defaultHome: Constants_1.Constants.HOME_DIR,
|
package/lib/imperative.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;AAEF,6BAA6B;AAI7B,2CAAwC;AACxC,iEAAwD;AACxD,0EAQ6C;AAC7C,qEAAwD;AACxD,kEAA8D;AAE9D,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,qBAAS,CAAC,YAAY;IAC1C,kBAAkB,EAAE;QAChB,mCAAmC;QACnC,gCAAgC;QAChC,iCAAiC;QACjC,+BAA+B;QAC/B,8BAA8B;QAC9B,4BAA4B;QAC5B,6BAA6B;QAC7B,6BAA6B;
|
|
1
|
+
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;AAEF,6BAA6B;AAI7B,2CAAwC;AACxC,iEAAwD;AACxD,0EAQ6C;AAC7C,qEAAwD;AACxD,kEAA8D;AAE9D,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,qBAAS,CAAC,YAAY;IAC1C,kBAAkB,EAAE;QAChB,mCAAmC;QACnC,gCAAgC;QAChC,iCAAiC;QACjC,+BAA+B;QAC/B,8BAA8B;QAC9B,4BAA4B;QAC5B,6BAA6B;QAC7B,6BAA6B;QAC7B,8BAA8B;KACjC;IACD,sBAAsB,EAAE,qBAAS,CAAC,WAAW;IAC7C,WAAW,EAAE,qBAAS,CAAC,QAAQ;IAC/B,iBAAiB,EAAE,qBAAS,CAAC,UAAU;IACvC,kBAAkB,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,mBAAmB,CAAC;IACnE,OAAO,EAAE;QACL,UAAU,EAAE;YACR,OAAO,EAAE,qBAAS,CAAC,Y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J;gBACD,QAAQ,EAAE,EAAE;aACf;YACD,qBAAqB,EAAE;gBACnB;oBACI,OAAO,EAAE,wDAAwD;oBACjE,WAAW,EAAE,yGAAyG;iBACzH;gBACD;oBACI,OAAO,EAAE,qEAAqE;oBAC9E,WAAW,EAAE,oGAAoG;iBACpH;gBACD;oBACI,OAAO,EAAE,4GAA4G;oBACrH,WAAW,EAAE,sFAAsF;wBAC/F,gGAAgG;wBAChG,+BAA+B;iBACtC;gBACD;oBACI,OAAO,EAAE,yCAAyC;oBAClD,WAAW,EAAE,4GAA4G;wBACrH,gFAAgF;iBACvF;aACJ;SACJ;KACJ;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.definition = void 0;
|
|
14
|
+
const List_definition_1 = require("./list/List.definition");
|
|
15
|
+
exports.definition = {
|
|
16
|
+
name: "zos-logs",
|
|
17
|
+
aliases: ["logs"],
|
|
18
|
+
type: "group",
|
|
19
|
+
summary: "Interact with z/OS logs",
|
|
20
|
+
description: "Interact with z/OS logs.",
|
|
21
|
+
children: [List_definition_1.ListDefinition]
|
|
22
|
+
};
|
|
23
|
+
module.exports = exports.definition;
|
|
24
|
+
//# sourceMappingURL=ZosLogs.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZosLogs.definition.js","sourceRoot":"","sources":["../../src/zoslogs/ZosLogs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,4DAAwD;AAE3C,QAAA,UAAU,GAAuB;IAC1C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,0BAA0B;IACvC,QAAQ,EAAE,CAAC,gCAAc,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,kBAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ListDefinition = void 0;
|
|
14
|
+
const Logs_definition_1 = require("./logs/Logs.definition");
|
|
15
|
+
exports.ListDefinition = {
|
|
16
|
+
name: "list",
|
|
17
|
+
aliases: ["ls"],
|
|
18
|
+
type: "group",
|
|
19
|
+
summary: "List z/OS logs",
|
|
20
|
+
description: "List z/OS logs by invoking z/OSMF REST API.",
|
|
21
|
+
children: [Logs_definition_1.LogsDefinition]
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=List.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zoslogs/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,4DAAwD;AAE3C,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,CAAC,gCAAc,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.LogsDefinition = void 0;
|
|
14
|
+
const Constants_1 = require("../../../Constants");
|
|
15
|
+
exports.LogsDefinition = {
|
|
16
|
+
name: "logs",
|
|
17
|
+
aliases: [],
|
|
18
|
+
summary: "List z/OS operlog or syslog within a time range",
|
|
19
|
+
description: `List z/OS operlog within a time range.` +
|
|
20
|
+
`\n\n` +
|
|
21
|
+
`Use this operation to get the z/OS operations logs. It invokes z/OSMF REST API to retrieve logs.` +
|
|
22
|
+
`\n\n` +
|
|
23
|
+
`Executing '${Constants_1.Constants.BINARY_NAME} zos-logs list logs' will by default return logs from current time and backwards to 10 minutes before.` +
|
|
24
|
+
`\n\n` +
|
|
25
|
+
`Note: OPERLOG needs to be configured on z/OS server.`,
|
|
26
|
+
type: "command",
|
|
27
|
+
handler: __dirname + "/Logs.handler",
|
|
28
|
+
profile: {
|
|
29
|
+
optional: ["zosmf"]
|
|
30
|
+
},
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
name: "start-time",
|
|
34
|
+
aliases: ["st"],
|
|
35
|
+
description: `Specify the time in ISO-8601 time format from when z/OSMF will start to retrieve the logs. For example, ` +
|
|
36
|
+
`'2021-01-26T03:33:18.065Z', '2021-01-26T11:33:18.065+08:00'. Default is the current time.`,
|
|
37
|
+
type: "string"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "direction",
|
|
41
|
+
aliases: ["d"],
|
|
42
|
+
description: `Specify the direction when retrieving the message log. Either 'forward' or 'backward' is valid, case insensitive.`,
|
|
43
|
+
type: "string",
|
|
44
|
+
defaultValue: "backward",
|
|
45
|
+
allowableValues: { values: ["forward", "backward"] }
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "range",
|
|
49
|
+
aliases: ["r"],
|
|
50
|
+
description: `Specify a time range in which the logs will be retrieved. The format is like nnnu, nnn is 1-999, u is one ` +
|
|
51
|
+
`of 's', 'm', 'h', for example, '999s', '20m', '3h'.`,
|
|
52
|
+
type: "string",
|
|
53
|
+
defaultValue: "10m"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
examples: [
|
|
57
|
+
{
|
|
58
|
+
description: "List logs starting from '2021-07-26T03:38:37.098Z' and forwards to 5 minutes later",
|
|
59
|
+
options: "--start-time 2021-07-26T03:38:37.098Z --range 5m --direction forward"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
description: "List logs starting from '2021-07-26T03:38:37.098Z' and forwards to 5 minutes later. Alias version of the above command",
|
|
63
|
+
options: "--st 2021-07-26T03:38:37.098Z -r 5m -d forward"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
description: "List logs starting from '2021-07-26T03:38:37.098Z' and backwards to 5 minutes before",
|
|
67
|
+
options: "--start-time 2021-07-26T03:38:37.098Z --range 5m"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=Logs.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logs.definition.js","sourceRoot":"","sources":["../../../../src/zoslogs/list/logs/Logs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;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
|
|
3
|
+
/**
|
|
4
|
+
* Handle to get logs from z/OSMF restful api
|
|
5
|
+
* @export
|
|
6
|
+
* @class Handler
|
|
7
|
+
* @implements {ICommandHandler}
|
|
8
|
+
*/
|
|
9
|
+
export default class LogsHandler extends ZosmfBaseHandler {
|
|
10
|
+
processCmd(commandParameters: IHandlerParameters): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const imperative_1 = require("@zowe/imperative");
|
|
23
|
+
const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk");
|
|
24
|
+
const zos_logs_for_zowe_sdk_1 = require("@zowe/zos-logs-for-zowe-sdk");
|
|
25
|
+
/**
|
|
26
|
+
* Handle to get logs from z/OSMF restful api
|
|
27
|
+
* @export
|
|
28
|
+
* @class Handler
|
|
29
|
+
* @implements {ICommandHandler}
|
|
30
|
+
*/
|
|
31
|
+
class LogsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler {
|
|
32
|
+
processCmd(commandParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const outputHeader = "Retrieved %s messages from %s, starts from %s, ends at %s. ";
|
|
35
|
+
let startTime = new Date().toISOString();
|
|
36
|
+
if (commandParameters.arguments.startTime !== undefined) {
|
|
37
|
+
startTime = commandParameters.arguments.startTime;
|
|
38
|
+
// in case the input is milliseconds format, which is a long number
|
|
39
|
+
if (!isNaN(commandParameters.arguments.startTime)) {
|
|
40
|
+
startTime = new Date(+startTime).toISOString();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const zosLogParms = {
|
|
44
|
+
startTime,
|
|
45
|
+
direction: commandParameters.arguments.direction,
|
|
46
|
+
range: commandParameters.arguments.range
|
|
47
|
+
};
|
|
48
|
+
try {
|
|
49
|
+
const resp = yield zos_logs_for_zowe_sdk_1.GetZosLog.getZosLog(this.mSession, zosLogParms);
|
|
50
|
+
const logItems = resp.items;
|
|
51
|
+
if (logItems === undefined || logItems.length === 0) {
|
|
52
|
+
commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(outputHeader, 0, "logs", startTime, new Date(resp.nextTimestamp).toISOString()));
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
// remove control characters, except \u000A(\n) and \u000D(\r)
|
|
56
|
+
for (const logItem of logItems) {
|
|
57
|
+
logItem.message = logItem.message.
|
|
58
|
+
replace(/[\u0000-\u0009\u000B\u000C\u000E-\u001F\u007F-\u009F]/g, ""); // eslint-disable-line no-control-regex
|
|
59
|
+
}
|
|
60
|
+
// Return as an object in the response 'data' field when using --response-format-json
|
|
61
|
+
commandParameters.response.data.setObj(resp);
|
|
62
|
+
commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(outputHeader, resp.totalitems, resp.source, startTime, new Date(resp.nextTimestamp).toISOString()));
|
|
63
|
+
commandParameters.response.console.log("");
|
|
64
|
+
const memberList = logItems.map((logItem) => new Date(logItem.timestamp).toISOString() + " " + logItem.message.replace(/\r/g, "\n"));
|
|
65
|
+
commandParameters.response.console.log(memberList.join("\n"));
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
if (err.mMessage !== undefined && err.mMessage.includes('status 404')) {
|
|
69
|
+
commandParameters.response.console.log("Note: This feature dependents on z/OSMF version 2.4 or higher. Ensure that the z/OSMF" +
|
|
70
|
+
" Operations Log Support is available via APAR and associated PTFs: https://www.ibm.com/support/pages/apar/PH35930. \n");
|
|
71
|
+
}
|
|
72
|
+
throw err;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.default = LogsHandler;
|
|
78
|
+
//# sourceMappingURL=Logs.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logs.handler.js","sourceRoot":"","sources":["../../../../src/zoslogs/list/logs/Logs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iEAA4D;AAC5D,uEAAoG;AACpG;;;;;GAKG;AACH,MAAqB,WAAY,SAAQ,qCAAgB;IACxC,UAAU,CAAC,iBAAqC;;YACzD,MAAM,YAAY,GAAG,6DAA6D,CAAC;YAEnF,IAAI,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACzC,IAAI,iBAAiB,CAAC,SAAS,CAAC,SAAS,KAAK,SAAS,EAAE;gBACrD,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC;gBAClD,mEAAmE;gBACnE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;oBAC/C,SAAS,GAAG,IAAI,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,WAAW,EA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AAC;gBAE3C,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAY,EAAE,EAAE,CAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC7F,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aAEjE;YAAC,OAAO,GAAG,EAAE;gBACV,IAAG,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAC;oBACjE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uFAAuF;wBAC9H,uHAAuH,CAAC,CAAC;iBAC5H;gBACD,MAAM,GAAG,CAAC;aACb;QACL,CAAC;KAAA;CACJ;AAxDD,8BAwDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zowe/cli",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.202112142155",
|
|
4
4
|
"description": "Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.",
|
|
5
5
|
"author": "Broadcom",
|
|
6
6
|
"license": "EPL-2.0",
|
|
@@ -55,17 +55,18 @@
|
|
|
55
55
|
"typedocSpecifySrc": "typedoc --options ./typedoc.json"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@zowe/core-for-zowe-sdk": "7.0.0-next.
|
|
59
|
-
"@zowe/imperative": "5.0.0-next.
|
|
58
|
+
"@zowe/core-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
59
|
+
"@zowe/imperative": "5.0.0-next.202112132158",
|
|
60
60
|
"@zowe/perf-timing": "1.0.7",
|
|
61
|
-
"@zowe/provisioning-for-zowe-sdk": "7.0.0-next.
|
|
62
|
-
"@zowe/zos-console-for-zowe-sdk": "7.0.0-next.
|
|
63
|
-
"@zowe/zos-files-for-zowe-sdk": "7.0.0-next.
|
|
64
|
-
"@zowe/zos-jobs-for-zowe-sdk": "7.0.0-next.
|
|
65
|
-
"@zowe/zos-
|
|
66
|
-
"@zowe/zos-
|
|
67
|
-
"@zowe/zos-
|
|
68
|
-
"@zowe/
|
|
61
|
+
"@zowe/provisioning-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
62
|
+
"@zowe/zos-console-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
63
|
+
"@zowe/zos-files-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
64
|
+
"@zowe/zos-jobs-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
65
|
+
"@zowe/zos-logs-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
66
|
+
"@zowe/zos-tso-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
67
|
+
"@zowe/zos-uss-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
68
|
+
"@zowe/zos-workflows-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
69
|
+
"@zowe/zosmf-for-zowe-sdk": "7.0.0-next.202112142155",
|
|
69
70
|
"get-stdin": "7.0.0",
|
|
70
71
|
"lodash": "4.17.21",
|
|
71
72
|
"minimatch": "3.0.4"
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"devDependencies": {
|
|
74
75
|
"@types/lodash": "^4.14.175",
|
|
75
76
|
"@types/node": "^12.12.24",
|
|
76
|
-
"@zowe/cli-test-utils": "7.0.0-next.
|
|
77
|
+
"@zowe/cli-test-utils": "7.0.0-next.202112142155",
|
|
77
78
|
"comment-json": "^4.1.0",
|
|
78
79
|
"eslint": "^7.32.0",
|
|
79
80
|
"js-yaml": "^3.13.1",
|
package/prebuilds/Cargo.lock
CHANGED
|
@@ -4,9 +4,9 @@ version = 3
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "anyhow"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.45"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7"
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "autocfg"
|
|
@@ -22,9 +22,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
|
22
22
|
|
|
23
23
|
[[package]]
|
|
24
24
|
name = "core-foundation-sys"
|
|
25
|
-
version = "0.8.
|
|
25
|
+
version = "0.8.3"
|
|
26
26
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
-
checksum = "
|
|
27
|
+
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
|
|
28
28
|
|
|
29
29
|
[[package]]
|
|
30
30
|
name = "crossbeam-channel"
|
|
@@ -85,6 +85,12 @@ dependencies = [
|
|
|
85
85
|
"libc",
|
|
86
86
|
]
|
|
87
87
|
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "itoa"
|
|
90
|
+
version = "0.4.8"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
|
93
|
+
|
|
88
94
|
[[package]]
|
|
89
95
|
name = "lazy_static"
|
|
90
96
|
version = "1.4.0"
|
|
@@ -93,9 +99,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
|
|
93
99
|
|
|
94
100
|
[[package]]
|
|
95
101
|
name = "libc"
|
|
96
|
-
version = "0.2.
|
|
102
|
+
version = "0.2.107"
|
|
97
103
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
-
checksum = "
|
|
104
|
+
checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219"
|
|
99
105
|
|
|
100
106
|
[[package]]
|
|
101
107
|
name = "memoffset"
|
|
@@ -141,6 +147,24 @@ dependencies = [
|
|
|
141
147
|
"libc",
|
|
142
148
|
]
|
|
143
149
|
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "proc-macro2"
|
|
152
|
+
version = "1.0.32"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"unicode-xid",
|
|
157
|
+
]
|
|
158
|
+
|
|
159
|
+
[[package]]
|
|
160
|
+
name = "quote"
|
|
161
|
+
version = "1.0.10"
|
|
162
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
163
|
+
checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
|
|
164
|
+
dependencies = [
|
|
165
|
+
"proc-macro2",
|
|
166
|
+
]
|
|
167
|
+
|
|
144
168
|
[[package]]
|
|
145
169
|
name = "rayon"
|
|
146
170
|
version = "1.5.1"
|
|
@@ -168,25 +192,73 @@ dependencies = [
|
|
|
168
192
|
|
|
169
193
|
[[package]]
|
|
170
194
|
name = "rpassword"
|
|
171
|
-
version = "5.0.
|
|
195
|
+
version = "5.0.1"
|
|
172
196
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
-
checksum = "
|
|
197
|
+
checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb"
|
|
174
198
|
dependencies = [
|
|
175
199
|
"libc",
|
|
176
200
|
"winapi",
|
|
177
201
|
]
|
|
178
202
|
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "ryu"
|
|
205
|
+
version = "1.0.5"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
|
208
|
+
|
|
179
209
|
[[package]]
|
|
180
210
|
name = "scopeguard"
|
|
181
211
|
version = "1.1.0"
|
|
182
212
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
213
|
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
|
184
214
|
|
|
215
|
+
[[package]]
|
|
216
|
+
name = "serde"
|
|
217
|
+
version = "1.0.130"
|
|
218
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
+
checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
|
|
220
|
+
dependencies = [
|
|
221
|
+
"serde_derive",
|
|
222
|
+
]
|
|
223
|
+
|
|
224
|
+
[[package]]
|
|
225
|
+
name = "serde_derive"
|
|
226
|
+
version = "1.0.130"
|
|
227
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
228
|
+
checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
|
|
229
|
+
dependencies = [
|
|
230
|
+
"proc-macro2",
|
|
231
|
+
"quote",
|
|
232
|
+
"syn",
|
|
233
|
+
]
|
|
234
|
+
|
|
235
|
+
[[package]]
|
|
236
|
+
name = "serde_json"
|
|
237
|
+
version = "1.0.69"
|
|
238
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
239
|
+
checksum = "e466864e431129c7e0d3476b92f20458e5879919a0596c6472738d9fa2d342f8"
|
|
240
|
+
dependencies = [
|
|
241
|
+
"itoa",
|
|
242
|
+
"ryu",
|
|
243
|
+
"serde",
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
[[package]]
|
|
247
|
+
name = "syn"
|
|
248
|
+
version = "1.0.81"
|
|
249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
250
|
+
checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966"
|
|
251
|
+
dependencies = [
|
|
252
|
+
"proc-macro2",
|
|
253
|
+
"quote",
|
|
254
|
+
"unicode-xid",
|
|
255
|
+
]
|
|
256
|
+
|
|
185
257
|
[[package]]
|
|
186
258
|
name = "sysinfo"
|
|
187
|
-
version = "0.
|
|
259
|
+
version = "0.21.1"
|
|
188
260
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
189
|
-
checksum = "
|
|
261
|
+
checksum = "fb6c2c4a6ca462f07ca89841a2618dca6e405304d19ae238997e64915d89f513"
|
|
190
262
|
dependencies = [
|
|
191
263
|
"cfg-if",
|
|
192
264
|
"core-foundation-sys",
|
|
@@ -197,6 +269,12 @@ dependencies = [
|
|
|
197
269
|
"winapi",
|
|
198
270
|
]
|
|
199
271
|
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "unicode-xid"
|
|
274
|
+
version = "0.2.2"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
|
277
|
+
|
|
200
278
|
[[package]]
|
|
201
279
|
name = "winapi"
|
|
202
280
|
version = "0.3.9"
|
|
@@ -221,9 +299,11 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
|
221
299
|
|
|
222
300
|
[[package]]
|
|
223
301
|
name = "zowe"
|
|
224
|
-
version = "0.
|
|
302
|
+
version = "0.4.1"
|
|
225
303
|
dependencies = [
|
|
226
304
|
"pathsearch",
|
|
227
305
|
"rpassword",
|
|
306
|
+
"serde",
|
|
307
|
+
"serde_json",
|
|
228
308
|
"sysinfo",
|
|
229
309
|
]
|
package/prebuilds/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "zowe"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.1"
|
|
4
4
|
authors = ["Zowe Project"]
|
|
5
5
|
edition = "2018"
|
|
6
6
|
|
|
@@ -8,5 +8,7 @@ edition = "2018"
|
|
|
8
8
|
|
|
9
9
|
[dependencies]
|
|
10
10
|
pathsearch = "0.2.0"
|
|
11
|
-
rpassword = "5.0"
|
|
12
|
-
sysinfo = "0.
|
|
11
|
+
rpassword = "5.0.1"
|
|
12
|
+
sysinfo = "0.21.1"
|
|
13
|
+
serde_json = "1.0.69"
|
|
14
|
+
serde = { version = "1.0.130", features = ["derive"]}
|
package/prebuilds/zowe-linux.tgz
CHANGED
|
Binary file
|
package/prebuilds/zowe-macos.tgz
CHANGED
|
Binary file
|
|
Binary file
|