Lines Matching +full:instance +full:- +full:id
36 my $targetObj = Targets->new;
39 $targetObj->{debug} = 1;
44 $targetObj->{force} = 1;
47 $targetObj->loadXML($serverwizFile);
51 foreach my $target (sort keys %{$targetObj->getAllTargets()})
54 if ("OCC" ne $targetObj->getAttribute($target, "TYPE"))
59 # OCC instance and sensor ID to insert into output file
60 my $instance = "";
63 # Now that we are in OCC target instance, get the instance number
64 $instance = $targetObj->getAttribute($target, "IPMI_INSTANCE");
67 # more information, such as Sensor ID.
69 my $children = $targetObj->getTargetChildren($target);
73 $sensor = $targetObj->getAttribute($child, "IPMI_SENSOR_ID");
76 # Populate a hashmap with OCC and its sensor ID
77 $occHash{$instance} = $sensor;
83 ##------------------------------------END OF MAIN-----------------------
90 foreach my $instance (sort keys %occHash)
92 # YAML with list of {Instance:SensorID} dictionary
93 print $fh "- Instance: ";
94 print $fh "$instance\n";
96 print $fh "$occHash{$instance}\n";
112 $0 -i [XML filename] -o [Output filename] [OPTIONS]
114 -f = force output file creation even when errors
115 -d = debug mode
116 -v = verbose mode - for verbose o/p from Targets.pm
118 PS: mrw::Targets can be found in https://github.com/open-power/serverwiz/
119 mrw::Inventory can be found in https://github.com/openbmc/phosphor-mrw-tools/
123 #------------------------------------END OF SUB-----------------------