source: ocsinventory-agent/trunk/fuentes/lib/Ocsinventory/Agent/Modules/Snmp/Default.pm @ 468

Last change on this file since 468 was 468, checked in by mabarracus, 4 years ago

Copyt trusty code

File size: 478 bytes
Line 
1###
2# SNMP: Default
3###
4
5
6package Ocsinventory::Agent::Modules::Snmp::Default;
7
8use strict;
9no strict 'refs';
10use warnings;
11
12sub snmp_run {
13   my ($session , $snmp )= @_;
14   my $oid_run=$snmp->{snmp_oid_run};
15
16   my $inventory = $snmp->{inventory};
17   my $logger=$snmp->{logger};
18
19
20  my $list_mib=["If_Mib", "Host_Resources_Mib","Printer_Mib"];
21
22  $logger->debug("Running Default MIB module \n");
23
24  foreach my $mib ( @{$list_mib} ) {
25     $snmp->snmp_oid_run($mib);
26  }
27
28
29}
301;
Note: See TracBrowser for help on using the repository browser.