Skip to content

Commit

Permalink
Support for Sophos firewall over SNMP (model, os_version).
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Oct 1, 2024
1 parent 0f90e96 commit a7a3ae8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/Helpers/snmp_2604_helper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
# Copyright © 2023 FirstWave. All Rights Reserved.
# SPDX-License-Identifier: AGPL-3.0-or-later

declare(strict_types=1);

# Vendor Sophos

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Sophos';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2604.5.1.1.2.0");
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2604.5.1.1.3.0");
return($details);
};

0 comments on commit a7a3ae8

Please sign in to comment.