- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-27-2020 07:30 AM - edited 01-27-2020 07:31 AM
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?
01-27-2020 04:18 PM
Can you provide an example of what you're trying to do?
02-11-2020 07:32 AM - edited 02-11-2020 07:39 AM
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:
#! /bin/bash
ssh -t -t <username>@<device> << EOF
set cli pager off
debug device-server dump idmgr type vsys-region all
quit
EOF
02-12-2020 01:49 AM - edited 02-12-2020 01:50 AM
you can try by window power shell script.
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!