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

Use of SSH commands instead of API calls #114

Open
Keeper-of-the-Keys opened this issue Jul 22, 2020 · 5 comments
Open

Use of SSH commands instead of API calls #114

Keeper-of-the-Keys opened this issue Jul 22, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@Keeper-of-the-Keys
Copy link

It is my understanding that the API has had a way to run raw commands since v1 often referred to as AnyCLI or AnyBatch.

I checked the 16.10/API v7 reference and it does have a CliCommand object, though not supporting every available command it would still be useful since it would allow some commands (show *) currently not available through the API in Ansible to run under the same user/context as the rest of the module.

@tchiapuziowong
Copy link
Member

Hi @Keeper-of-the-Keys !

We do have SSH command modules available for the AOS-Switch platform - please see on this that shows how to enable SSH and this on how to use the modules!

@Keeper-of-the-Keys
Copy link
Author

The point is that we have different auth methods for SSH and web and that ansible will only take one password as far as I can tell (at least in interactive tests, of course I could try putting it in as vars).

Either way it seems like it would make sense to also allow the API SSH commands instead of "direct" SSH commands.

@Keeper-of-the-Keys
Copy link
Author

And thanks for the lightspeed reply!

@alagoutte
Copy link
Contributor

+1

@tchiapuziowong tchiapuziowong added the enhancement New feature or request label Jul 29, 2020
@zenchaos
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants