Thank you for your response Brian.

Can you please help me to decide the following?

*Do you see any advantage for us if we rewrite with new plugins than
sticking to our ssh-connection?*

We have a ssh-connection plugin written almost 5 years ago.
Examples you can find here:
https://github.com/citrix/citrix-adc-ansible-modules/tree/master/sample_playbooks/citrix_adc/citrix_adc_connection_plugin
The code to the above ssh-connection is here:
https://github.com/citrix/citrix-adc-ansible-modules/blob/master/ansible-collections/adc/plugins/connection/ssh_citrix_adc.py

Here we are connecting to the SHELL prompt directly on our NetScaler
device, and then trying to run commands using `nscli` script.

I think, if we can directly connect to our NetScaler prompt, we can
directly send the "show version" (for eg) commands directly and get output.
In my understanding, that's where the `terminal` plugin comes from.

Since our existing ssh-connection was written a while ago (5 years), I am
sure there must be a great good way in Ansible to connect to NetScaler
(networking devices), which I am missing. Eg., `terminal` `netcli`,
`net_conf` etc


Sumanth




On Thu, 6 Jul 2023 at 19:07, Brian Coca <bc...@redhat.com> wrote:

> shell plugins are basically for dealing with common commands in
> different shell environments, i.e create a temp dir, figure out the
> remote user home, etc
>
> terminal plugins are really regex for matching prompts when not using
> a shell, they are for use with netcli/net_conf plugins
>
> httpapi/netcli/netconf plugins are "secondary connection pluigins"
> that are designed to run the module under 'local' connection and have
> the 2nd (true) connection to the device available to the module
> itself, for it to send commands over and receive feedback (where they
> might need to match against the terminal plugin).
>
> --
> ----------
> Brian Coca
>
>

-- 
~sumanth

To automate NetScaler deployments & configurations, click *here
<https://docs.netscaler.com/en-us/citrix-adc/current-release/deploying-vpx/citrix-adc-automation.html>*

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CAPa%2BaB9O3Xg2z51Rwry8dqMz2zvdXB9LTU-ucyBDYigsHC4WbQ%40mail.gmail.com.

Reply via email to