I need to automate run particular operational commands , which were not available in the API. I tried running them using SSH to the Panorama CLI, but it fails. Also Paramiko Python script does not seem to work and not sure what are we doing wrong.
Can you please share any experience exectuing SSH commands?
I've used bash scripts for this. You'll want to use ssh keys for the user authentication. Here is an example on how to dump the idmgr cache:
ssh -t -t <username>@<device> << EOF
set cli pager off
debug device-server dump idmgr type vsys-region all
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!