File: DocsisHE.pm

package info (click to toggle)
libsnmp-info-perl 3.972002-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,300 kB
  • sloc: perl: 36,403; makefile: 2; sh: 1
file content (124 lines) | stat: -rw-r--r-- 2,833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package SNMP::Info::DocsisHE;

use strict;
use warnings;
use Exporter;

use SNMP::Info;

@SNMP::Info::DocsisHE::ISA       = qw/SNMP::Info Exporter/;
@SNMP::Info::DocsisHE::EXPORT_OK = qw//;

our ($VERSION, %MIBS, %FUNCS, %GLOBALS, %MUNGE);

$VERSION = '3.972002';

%MIBS = (
    'DOCS-IF3-MIB' => 'docsIf3Mib',
    'DOCS-IF-MIB'  => 'docsIfMib',
);

%GLOBALS = ();

%FUNCS  = (
    # DOCSIS 3.0 (DOCS-IF3-MIB) from CableLabs
    'docs_if3_cmts_cm_status_md_if_index'=> 'docsIf3CmtsCmRegStatusMdIfIndex',
    # DOCSIS (1.1, etc) from IETF
    'docs_if_cmts_cm_status_inet_address_type' => 'docsIfCmtsCmStatusInetAddressType',
    'docs_if_cmts_cm_status_inet_address'      => 'docsIfCmtsCmStatusInetAddress',
    'docs_cmts_cm_down_channel_if_index'       => 'docsIfCmtsCmStatusDownChannelIfIndex',
    'docs_cmts_cm_up_channel_if_index'         => 'docsIfCmtsCmStatusUpChannelIfIndex',
);

%MUNGE = ();

1;
__END__

=head1 NAME

SNMP::Info::DocsisHE - SNMP Interface for F<DOCS-IF-MIB> and F<DOCS-IF3-MIB>

=head1 AUTHOR

Ryan Gasik

=head1 SYNOPSIS

 my $cmts = new SNMP::Info(
                             AutoSpecify => 1,
                             Debug       => 1,
                             DestHost    => 'cmts',
                             Community   => 'public',
                             Version     => 2
                          );
 # Get a list of modems off the DOCSIS CMTS
 my $modems = $cmts->docs_if_cmts_cm_status_inet_address()

=head1 DESCRIPTION
SNMP::Info::DocsisHE is a subclass of SNMP::Info that provides information
about the cable modems of a DOCSIS CMTS.

=head2 Inherited Classes

None.

=head2 Required MIBs

=over

=item F<DOCS-IF-MIB>
Standard IETF MIBs for DOCSIS 1.1

=item F<DOCS-IF3-MIB>
CableLabs MIBs for DOCSIS 3

=back

=head1 GLOBALS

None.

=head1 TABLE METHODS

=over

=item $info->docs_if3_cmts_cm_status_md_if_index()

Returns reference to hash of the IfIndex associated with each cable modem.

(C<docsIf3CmtsCmRegStatusMdIfIndex>)

=item $info->docs_if_cmts_cm_status_inet_address_type()

Returns reference to hash of the type of IP address (ie, IPv4, IPv6)
associated with each cable modem

(C<docsIfCmtsCmStatusInetAddressType>)

=item $info->docs_if_cmts_cm_status_inet_address()

Returns reference to hash of the IP address associated with each
cable modem.

(C<docsIfCmtsCmStatusInetAddress>)

=item $info->docs_cmts_cm_down_channel_if_index()

Returns reference to hash of the IfIndex of the down channel
(for DOCSIS 1.1) or a down channel (DOCSIS 3+) associated with each
cable modem.

(C<docsIfCmtsCmStatusDownChannelIfIndex>)

=item $info->docs_cmts_cm_up_channel_if_index()

Returns reference to hash of the IfIndex of the up channel
(for DOCSIS 1.1) or a up channel (DOCSIS 3+) associated with each
cable modem.

(C<docsIfCmtsCmStatusUpChannelIfIndex>)

=back

=cut