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

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

Copyt trusty code

File size: 737 bytes
Line 
1###
2# SNMP: OID:311 SYSTEM:Microsoft
3###
4
5
6package Ocsinventory::Agent::Modules::Snmp::311;
7
8use strict;
9no strict 'refs';
10use warnings;
11
12sub snmp_info {
13   return ( { oid_value => "1.3.6.1.4.1.77.1.2.1.0" ,
14            oid_name => "Microsoft" } );
15}
16sub snmp_run {
17   my ($session , $snmp )= @_;
18   my $oid_run=$snmp->{snmp_oid_run};
19
20   my $common = $snmp->{common};
21   my $inventory = $snmp->{inventory};
22   my $logger=$snmp->{logger};
23   $common->setSnmpCommons( {TYPE => "Microsoft"} );
24   $common->setSnmpComputer({SYSTEM => 'Microsoft'});
25
26   my $list_mib=["If_Mib", "Host_Resources_Mib"];
27
28   $logger->debug("Running Microsoft (311) MIB module");
29
30   foreach my $mib ( @{$list_mib} ) {
31     $snmp->snmp_oid_run($mib);
32   }
33
34}
351;
Note: See TracBrowser for help on using the repository browser.