gipfl/protocol-snmp

SNMP protocol implementation

v0.1.0 2019-02-19 09:10 UTC

This package is auto-updated.

Last update: 2024-10-11 22:04:10 UTC


README

SNMP protocol implementation in raw PHP for async usage. API is still subject to change, SNMPv3 is currently missing, but will be implemented.

Coding Standards Unit Tests Static Analysis PHPStan Level 9 Minimum PHP Version: 8.1 License: MIT Version

Usage

Please see the examples directory for some usage examples:

  • get_multiple_oids.php fetches a list of OIDs in parallel from multiple ips
  • trap-recieve.php is a simple Trap receiver
  • trap-send.php sends 60 test-traps a second to test the receiver

Tuning

Network Stack buffer sizes might be increased for high-traffic setups:

$ sudo sysctl -w net.core.rmem_max=26214400
net.core.rmem_max = 26214400
$ sudo sysctl -w net.core.rmem_default=26214400
net.core.rmem_default = 26214400