Skip to content

Commit

Permalink
Support for SNMP Aruba / Silver Peak routers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Nov 10, 2024
1 parent ccf3eeb commit 9480e86
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/Helpers/snmp_23867_helper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

# Copyright © 2023 FirstWave. All Rights Reserved.
# SPDX-License-Identifier: AGPL-3.0-or-later

declare(strict_types=1);

# Vendor Aruba / Silver Peak Routers

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Silver Peak Systems, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.23867.3.1.1.1.6.0");
$details->serial = str_replace('-', '', $details->serial);
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.23867.3.1.1.1.2.0");
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.23867.3.1.1.1.1.0");
$details->os_group = 'Aruba ECOS';
$details->os_family = 'ECOS';
$details->os_name = !empty($details->os_version) ? 'ECOS ' . $details->os_version : 'ECOS';
$details->type = 'router';
return($details);
};

0 comments on commit 9480e86

Please sign in to comment.