Lines Matching +full:milli +full:- +full:seconds

41 # These are generally front-fault-led and rear-fault-led
52 my $targetObj = Targets->new;
55 $targetObj->{debug} = 1;
60 $targetObj->{force} = 1;
63 $targetObj->loadXML($serverwizFile);
71 $invHash{$item->{TARGET}} = $item->{OBMC_NAME};
84 foreach my $target (sort keys %{$targetObj->getAllTargets()})
87 if($targetObj->isBadAttribute($target, "MRW_TYPE"))
92 # Return true if not populated -or- not present
93 if("LED" eq $targetObj->getMrwType($target))
106 my $conns = $targetObj->findConnections($ledTarget, "LOGICAL_ASSOCIATION");
110 for my $conn (@{$conns->{CONN}})
112 my $destTarget = $conn->{DEST_PARENT};
129 if($targetObj->isBadAttribute($ledTarget, "CONTROL_GROUPS"))
140 if($targetObj->getAttribute($ledTarget, "LED_PRIORITY") eq "ON")
146 my $name = $targetObj->getInstanceName($ledTarget);
148 # Get if this LED is a ENC-FAULT type.
149 if(!$targetObj->isBadAttribute($target, "LED_TYPE"))
151 if("ENC-FAULT" eq $targetObj->getAttribute($ledTarget, "LED_TYPE"))
158 my $controlGroup = $targetObj->getAttribute($ledTarget, "CONTROL_GROUPS");
175 # Period in milli seconds
216 # Setup roll-up LEDs to the ones that are of type ENC-FAULT
243 #------------------------------------END OF MAIN-----------------------
313 my $JSON = JSON->new->utf8->pretty(1);
314 $JSON->convert_blessed(1);
362 $action = substr($action, 1, length($action) - 2);
378 $priority = substr($priority, 1, length($priority) - 2);
388 my $json = $JSON->canonical(1)->encode(\%ledJson);
404 $0 -i [XML filename] -o [Output filename] [OPTIONS]
406 -f = force output file creation even when errors
407 -d = debug mode
408 -v = verbose mode - for verbose o/p from Targets.pm
410 PS: mrw::Targets can be found in https://github.com/open-power/serverwiz/
411 mrw::Inventory can be found in https://github.com/openbmc/phosphor-mrw-tools/
415 #------------------------------------END OF SUB-----------------------