Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue UNIX Command Capability #1326

Closed
Tracked by #1717 ...
JillieBeanSim opened this issue May 20, 2021 · 7 comments
Closed
Tracked by #1717 ...

Issue UNIX Command Capability #1326

JillieBeanSim opened this issue May 20, 2021 · 7 comments
Labels
community-upvoted enhancement New feature or request priority-high Production outage - this quarter or at least next quarter

Comments

@JillieBeanSim
Copy link
Contributor

Describe the solution you'd like

Would like to see a right click action for Issue UNIX Command and have it available via the Zowe Explorer API like we have Issue TSO Command and Issue MVS Command.

For zOSMF profile users we could have a check for an SSH profile. Some extenders may have their own APIs to issue UNIX Commands so we would need to consider that as well.

@JillieBeanSim JillieBeanSim added the enhancement New feature or request label May 20, 2021
@Joe-Winchester
Copy link
Member

This would be great ! Very often I find myself using Zowe Explorer to edit .sh files and then wanting to run them, and if I could right mouse and "Run as shell script" this would be great. It might want to add parms like "myscript.sh -o options" so maybe there is a general "Issue UNIX command" that can be run against a file that opens a general prompt (and runs the script with cwd inside that directory) and against a file if it detects it's .sh pre-fills the prompt with the file name to allow args to be added

@Joe-Winchester
Copy link
Member

Awesome to see this in PI2.

Q. To do this from the USS tree it'd be great to have a way to associate a z/OSMF profile with an SSH one, and also likewise to this for TSO, and allow it to be extended to other types. Maybe have an association sshProfile and tsoProfile to be added to a zosmf (or ftp or otherwise base profile type), so that the Issue TSO command in the Data Sets view or Issue SSH command in the USS view can link to the associated profile. If an associated profile is not present the user with a drop down list of TSO or USS profiles to run the command, but then persist that back in the configuration file so next time they aren't prompted.

 "zosmf_3b": {
            "type": "zosmf",
            "properties": {
                "host": "a.b.c.d",
                "port": 443,
                "rejectUnauthorized": false,
                "protocol": "https",
                "sshProfile": "ssh_3b",
                "tsoProfile": "tso_3b"
            }
        },
 ...
       "tso_3b": {
            "type": "tso",
            "properties": {
                "account": "",
                "codePage": "1047",
                "logonProcedure": "IZUFPROC"
            },
            "secure": []
        },
        "ssh_3b": {
            "host": "a.b.c.d",
            "type": "ssh",
            "properties": {
                "port": 22
            },
            "secure": []
        },
        

@JillieBeanSim JillieBeanSim added the priority-high Production outage - this quarter or at least next quarter label Jan 25, 2023
@JillieBeanSim
Copy link
Contributor Author

moving to High Priority due to upvotes

@Joe-Winchester
Copy link
Member

This issue could be a pre-req for issue #2113, which is a request to be able to issue a chtag command from the USS tree to be able to change file tagging, which can be done by issuing a targeted shell command.

@JillieBeanSim
Copy link
Contributor Author

I believe this would be implemented easily into v3 when only v2 profiles are supported and in most cases the ssh profile is added upon config creation.

@JillieBeanSim JillieBeanSim mentioned this issue Jul 26, 2023
29 tasks
@fbeyl
Copy link

fbeyl commented Aug 27, 2023

Please note that issue #2113 can be delivered through the z/OSMF API, there is no need for ssh. This is useful for those who only have z/OSMF and no SSH to connect to.

@JillieBeanSim
Copy link
Contributor Author

@likhithanimma1 wants to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-upvoted enhancement New feature or request priority-high Production outage - this quarter or at least next quarter
Projects
Status: Closed
Development

No branches or pull requests

5 participants