Hi everyone - basic question, is it possible to get the current version # through an API call to Sophos XG? I'm looking through the API documentation, and I don't see it.
This thread was automatically locked due to age.
Hi everyone - basic question, is it possible to get the current version # through an API call to Sophos XG? I'm looking through the API documentation, and I don't see it.
what would a CLI login script look like? We'd really like to do this.
Most CLI programs can work with the "expect" function. https://hostadvice.com/how-to/how-to-automate-tasks-in-ssh/
So you can use the login to CLI via SSH (SSH key preferable).
Then you use the output, which gets back to you and "expect" your way through CLI (advanced shell).
XG also present directly: Sophos Firmware Version SFOS 18.0.3 MR-3
So you can actually use this output print as a variable and paste it into your desired format.
Bummer, this is pretty basic, surprised it doesn't have it.
Ok - so only slightly off topic here but going down the SNMP route. I grabbed the MIBS from Sophos, but they don't work for me. It seems the OIDs have changed? I'm able to pick them up by walking 1.3.6.1.4.1.2604.5.1. When I import the MIBS and look at the OIDS, they sit underneath 1.3.6.1.4.1.21067. Anyone else see this? Do they have an updated MIBS file available that I can't track down?
Hi Andrew, whatever it is you're working on sounds exciting. Is it something you can opensource/github when you get the ball rolling?
Did you try this Mib? https://docs.sophos.com/nsg/sophos-firewall/MIB/SOPHOS-XG-MIB.zip
Dude! The v18 is definitely what I was looking for. Perhaps my searching skills suck, but I couldn't find them anywhere, so thanks for this. The one I did find that was posted was for v17.
Hi Ryan, my plan is to ensure I have information front and center for all our clients in our existing management tools rather than having to jump into Sophos. I'm going to be doing this with a combination of SNMP for querying, and the API (when possible) for updating configurations that change or perhaps are out of compliance. I don't know that I'll have anything specific to share - but if I end up making some PS scripts, I'm happy to.