- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
12-02-2023 04:11 AM
Hello,
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
12-05-2023 04:49 AM - edited 12-05-2023 04:50 AM
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.
Kind regards,
-Kim.
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!