Ingen beskrivning

Barry O'Donovan 0b09e36a80 Ignore file 13 år sedan
OSS aa0d0bc8f7 In devel 13 år sedan
phpdoc 2a80842f8a Doc updates 13 år sedan
.gitignore 0b09e36a80 Ignore file 13 år sedan
README.md aa0d0bc8f7 In devel 13 år sedan

README.md

OSS_SNMP

A PHP SNMP library for people who hate SNMP MIBs and OIDs!

I (Barry O'Donovan) hate SNMP! But I have to use it on a daily basis with my company, Open Solutions. Don't get me wrong, it's an essential tool in the trade of network engineering but it's also a serious pain in the arse. Finding MIBs, OIBs, making them work, translating them, cross-vendor translating them, blah, blah. And then, when you do find what you need, you'll have forgotten it months later when you need it again.

Anyway, while trying to create some automatic L2 topology graphing tools (via Cisco/Foundry Discovery Protocol for example) and also some per VLAN RSTP tools to show port states, I started writing this library. As I wrote I realised it was actually very useful and present it here now in the hopes that the wider network engineering community will find it useful and also contribute back 'MIBs'.

Example Usage

Let's say I want to get an associate array indexed by VLAN ids contained the VLAN names from a Cisco switch with IP address $ip and SNMP community $community. Easy peasy:

$ciscosw = new \OSS\SNMP( $ip, $community );
print_r( $ciscosw->useCisco_VTP()->vlanNames() );

Huh? That easy? Yes!