-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for Sophos firewall over SNMP (model, os_version).
- Loading branch information
1 parent
0f90e96
commit a7a3ae8
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}; |