- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
i would like to monitor the firewall using centreon. Unfortunately we are using the free version so we dont have access to the snmp and ssh plugins packs and we have to do everything by ourselves.
To get CPU, uptime information and so on i can use snmp using OID. However to get more detailled informations i would like to run ssh command remotely.
The problem is that when i try to execute an ssh command it get stuck and nothing happened (while when i directly connect to a shell it works).
For example this work : ssh admin@paloaltovm
but this does not work : ssh admin@paloaltovm "show system resources"
Is there anything i can do to solve that ? thank you
Hi @zakergfx ,
I have no experience using SSH on the PA like that (adding additional commands after the SSH connect) but I've found some similar discussions on the same topic so my guess is that it isn't supported.
I suggest using an expect script instead:
or even using XML API.
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!