données de HDD SAS/SAN manquantes AIX 5.3, 6.1 et 7.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
Fix Committed
|
Wishlist
|
Frank |
Bug Description
J'utilise l'Agent : OCS-NG_
Donc il faudrait ajouter le code suivant dans le Storage.pm pour AIX.
#MPIO FC 2145 disks. IBM SDDPCM MPIO Storwize
$n=0;
@scsi=`lsdev -Cc disk -F 'name:description' |grep -i 'MPIO FC 2145'`;
for(@scsi){
chomp $scsi[$n];
$device=$1;
@lsattr=
for (@lsattr){
if (! /^#/ ){
}
}
for (@lsvpd){
if(/^AX $device/){$flag=1}
if ((/^MF (.+)/) && $flag){
if ((/^TM (.+)/) && $flag){
if ((/^FN (.+)/) && $flag){
if ((/^FC .+/) && $flag) {$flag=0;last}
}
NAME => $device,
MODEL => $model,
TYPE => 'disk',
DISKSIZE => $capacity
});
$n++;
}
#SAS disks
$n=0;
@scsi=`lsdev -Cc disk -s sas -F 'name:descripti
for(@scsi){
chomp $scsi[$n];
$device=$1;
@lsattr=`lsattr -EOl $device -a 'size_in_mb'`;
for (@lsattr){
if (! /^#/ ){
}
}
for (@lsvpd){
if(/^AX $device/){$flag=1}
if ((/^MF (.+)/) && $flag){
if ((/^TM (.+)/) && $flag){
if ((/^FN (.+)/) && $flag){
if ((/^FC .+/) && $flag) {$flag=0;last}
}
NAME => $device,
MODEL => $model,
TYPE => 'disk',
DISKSIZE => $capacity
});
$n++;
}
Changed in ocsinventory-unix-agent: | |
assignee: | nobody → Frank (frank-bourdeau) |
importance: | Undecided → Wishlist |
Changed in ocsinventory-unix-agent: | |
milestone: | none → 2.2rc1 |
Changed in ocsinventory-unix-agent: | |
status: | New → Fix Committed |