PHPackages                             ocolin/netonix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ocolin/netonix

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ocolin/netonix
==============

Basic SNMP lib for querying Netonix switch

1.1(7mo ago)04MITPHPPHP ^8.3

Since Oct 9Pushed 7mo agoCompare

[ Source](https://github.com/ocolin/netonix)[ Packagist](https://packagist.org/packages/ocolin/netonix)[ RSS](/packages/ocolin-netonix/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Netonix
=======

[](#netonix)

Simple SNMP interface for Netonix switch.

Requirements
------------

[](#requirements)

- PHP 8.3 or higher

Usage
-----

[](#usage)

### Instantiation

[](#instantiation)

First we need to create an instance of the Netonix object. It required a hostname/ip and a community string. Only SNMP 2 is supported right now.

Example:

```
$netonix = new Ocolin\Netonix\Netonix(
    host: '129.168.1.100',
    community: 'my_community_string'
);
```

### Function calls

[](#function-calls)

#### Get System information

[](#get-system-information)

```
$output = $netonix->get_System();

print_r( $output );

Ocolin\Netonix\SystemObject Object
(
    [descr] => Netonix WS-12-250-DC
    [id] => .1.3.6.1.4.1.46242
    [uptime] => 111040191
    [contact] => noc.isp.net
    [name] => Netonix_Switch
    [location] => Sky Moon
    [lastchange] => 11
)
```

#### Get ingerfaces

[](#get-ingerfaces)

```
$output = $netonix->get_Interfaces();

print_r( $output );

Array
(
    [0] => Ocolin\Netonix\InterfaceObject Object
        (
            [index] => 1
            [descr] => Port 1
            [type] => 6
            [mtu] => 1528
            [speed] => 0
            [adminstatus] => 1
            [operstatus] => 2
            [inoctets] => 260353251
            [inucastpkts] => 491651
            [innucastpkts] => 46
            [indiscards] => 0
            [inerrors] => 0
            [outoctets] => 3730538824
            [outucastpkts] => 1212974
            [outnucastpkts] => 43576018
            [outdiscards] => 0
            [outerrors] => 0
        )
    )
```

#### Get bridge table

[](#get-bridge-table)

```
$output = $netonix->get_Bridge_Table();

print_r( $output );

Array
(
    [0] => Ocolin\Netonix\BridgeObject Object
        (
            [index] => 1
            [address] => EC:13:B2:84:9F:56
            [port] => 0
            [status] => 4
        )

    [1] => Ocolin\Netonix\BridgeObject Object
        (
            [index] => 2
            [address] => 00:15:6D:B0:5B:DC
            [port] => 12
            [status] => 3
        )
    )
```

#### Get interface aliases

[](#get-interface-aliases)

```
$output = self::$netonix->get_Aliases();

print_r( $output );

Array
(
    [0] => Port 1
    [1] => Uplink
    [2] => Tarana.Eest
    [3] => Port 4
    [4] => Port 5
    [5] => Port 6
    [6] => Port 7
    [7] => Port 8
    [8] => Port 9
    [9] => AP-East E
    [10] => AP-East SE
    [11] => AP-East E2
    [12] => Port 13
    [13] => Port 14
)
```

#### Get Netonix custom data

[](#get-netonix-custom-data)

```
$output = self::$netonix->get_Netonix();

print_r( $output );

Ocolin\Netonix\NetonixObject Object
(
    [firmware] => 1.5.8
    [fans] => Array
        (
            [0] => Ocolin\Netonix\FanObject Object
                (
                    [index] => 1
                    [speed] => 2920
                )

        )

    [temps] => Array
        (
            [0] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 1
                    [descr] => Board Temp
                    [temp] => 35
                )

            [1] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 2
                    [descr] => CPU Temp
                    [temp] => 51
                )

            [2] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 3
                    [descr] => PHY Temp
                    [temp] => 51
                )

            [3] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 4
                    [descr] => DCDC Board Temp
                    [temp] => 34
                )

            [4] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 5
                    [descr] => DCDC Heatsink #1 Temp
                    [temp] => 28
                )

            [5] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 6
                    [descr] => DCDC Heatsink #2 Temp
                    [temp] => 13
                )

            [6] => Ocolin\Netonix\TempObject Object
                (
                    [index] => 7
                    [descr] => DCDC Controller Temp
                    [temp] => 53
                )

        )

    [voltage] => Array
        (
            [0] => Ocolin\Netonix\VoltageObject Object
                (
                    [index] => 1
                    [descr] => Board 48V
                    [voltage] => 4970
                )

            [1] => Ocolin\Netonix\VoltageObject Object
                (
                    [index] => 2
                    [descr] => Board 24V
                    [voltage] => 2450
                )

            [2] => Ocolin\Netonix\VoltageObject Object
                (
                    [index] => 3
                    [descr] => Board 3V
                    [voltage] => 330
                )

            [3] => Ocolin\Netonix\VoltageObject Object
                (
                    [index] => 4
                    [descr] => DCDC Input Voltage
                    [voltage] => 4960
                )

            [4] => Ocolin\Netonix\VoltageObject Object
                (
                    [index] => 5
                    [descr] => DCDC Output Voltage
                    [voltage] => 5110
                )

        )

    [poe] => Array
        (
            [0] => Off
            [1] => Off
            [2] => Off
            [3] => Off
            [4] => Off
            [5] => Off
            [6] => Off
            [7] => Off
            [8] => Off
            [9] => 24V
            [10] => 24V
            [11] => 24V
            [12] => Off
            [13] => Off
        )

    [powerConsumption] => 251
    [inputCurrent] => 5
    [efficiency] => 93
)
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance64

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e97ac0aa452b872ddc3f7f4c56c83852574a27bb74622f8c054d11ca20008fc9?d=identicon)[Ocolin](/maintainers/Ocolin)

---

Top Contributors

[![ocolin](https://avatars.githubusercontent.com/u/8870196?v=4)](https://github.com/ocolin "ocolin (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ocolin-netonix/health.svg)

```
[![Health](https://phpackages.com/badges/ocolin-netonix/health.svg)](https://phpackages.com/packages/ocolin-netonix)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
