Skip to content

maxbond/SNMPModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNMP model library

Use model pattern for work with SNMP data

composer install: composer require maxbond/snmpmodel

example:

class ExampleModel extends SNMPModel
{
    protected $model = [    
    		'ethernetOperStatus' => [    		
    			'oid' => '.1.3.6.1.2.1.2.2.1.8.1',    			
    			'type' => 'get',
    			'modifier' => 'numeric'    			
    		]    		
    ];    
}

$exampleModel = new ExampleModel('127.0.0.1','public');
var_dump($exampleModel->get());

See example for more detail.

About

Model implementation for SNMP data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages