line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Device::WWN::HP::XP; |
2
|
1
|
|
|
1
|
|
86887
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
24
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
3
|
|
|
|
|
|
|
our $VERSION = '1.01'; |
4
|
1
|
|
|
1
|
|
354
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'Device::WWN::Hitachi::HDS'; |
6
|
|
|
|
|
|
|
use Device::WWN::Carp qw( croak ); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our %FAMILY = ( |
9
|
|
|
|
|
|
|
'01' => 'XP256', |
10
|
|
|
|
|
|
|
'02' => 'XP512/XP48', |
11
|
|
|
|
|
|
|
'03' => 'XP1024/XP128', |
12
|
|
|
|
|
|
|
'04' => 'XP12000/XP10000', |
13
|
|
|
|
|
|
|
'05' => 'XP24000/XP20000', |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has 'family' => ( is => 'rw', isa => 'Maybe[Str]', lazy_build => 1 ); |
17
|
|
|
|
|
|
|
sub _build_family { return $FAMILY{ shift->family_id } } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# example: |
20
|
|
|
|
|
|
|
# HP XP Port WWN = 50:00:60:E8:01:12:34:0A |
21
|
|
|
|
|
|
|
# 12:34 - Serial# |
22
|
|
|
|
|
|
|
# 0A - CHIP Port |
23
|
|
|
|
|
|
|
# 0 - means 1 |
24
|
|
|
|
|
|
|
# A - means L (see table) |
25
|
|
|
|
|
|
|
# |
26
|
|
|
|
|
|
|
# Description: XP 12000, disk system 5004, FRHA043981 |
27
|
|
|
|
|
|
|
# WWN: 50:06:0e:80:04:ab:cd:00 |
28
|
|
|
|
|
|
|
# Serial: hex: abcd dec: 43981 |
29
|
|
|
|
|
|
|
# Model: 04 => XP12000 |
30
|
|
|
|
|
|
|
# CHIP: 1A |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Description: XP 12000, disk system 5005, FRHA012345 |
33
|
|
|
|
|
|
|
# WWN: 50:06:0e:80:04:30:39:04 |
34
|
|
|
|
|
|
|
# Serial: hex: 3039 dec: 12345 |
35
|
|
|
|
|
|
|
# Model: 04 => XP12000 |
36
|
|
|
|
|
|
|
# CHIP: 1D |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
no Moose; |
39
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 NAME |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Device::WWN::HP::XP - Device::WWN subclass for HP XP series arrays |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 DESCRIPTION |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This module is a subclass of L<Device::WWN|Device::WWN> which provides |
50
|
|
|
|
|
|
|
additional information about HP XP series arrays. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 METHODS |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 family |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Return the family name of the array (if known). |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 MODULE HOME PAGE |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The home page of this module is |
61
|
|
|
|
|
|
|
L<http://www.jasonkohles.com/software/device-wwn>. This is where you can |
62
|
|
|
|
|
|
|
always find the latest version, development versions, and bug reports. You |
63
|
|
|
|
|
|
|
will also find a link there to report bugs. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L<Device::WWN|Device::WWN> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
L<Device::WWN::Hitachi::HDS|Device::WWN::Hitachi::HDS> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Jason Kohles C<< <email@jasonkohles.com> >> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
L<http://www.jasonkohles.com> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Copyright 2008, 2009 Jason Kohles |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
82
|
|
|
|
|
|
|
under the same terms as Perl itself. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |
85
|
|
|
|
|
|
|
|