Run operational command using SSH

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Run operational command using SSH

L4 Transporter

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? 

3 REPLIES 3

L5 Sessionator

Can you provide an example of what you're trying to do?

L2 Linker

@batd2 

 

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

you can try by window power shell script.

  • 4312 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!