Subversion Repositories computer_asset_manager_v1

Rev

Rev 100 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 100 Rev 102
Line 195... Line 195...
195
            $data[$currentType][$currentHandle][$outputArray[1]] = $outputArray[2];
195
            $data[$currentType][$currentHandle][$outputArray[1]] = $outputArray[2];
196
         }
196
         }
197
      }
197
      }
198
      # well, we have at least one entry, so let's go
198
      # well, we have at least one entry, so let's go
199
      $return = array();
199
      $return = array();
-
 
200
      $return[] = "attribute\tvalue";
200
 
201
 
201
      /*
202
      /*
202
       * Grab the information we want from the file. Note tht we are renaming some of the fields from the dmidecode output
203
       * Grab the information we want from the file. Note tht we are renaming some of the fields from the dmidecode output
203
       * to match the keyfields used by our system (4th parameter in getDMIInformation).
204
       * to match the keyfields used by our system (4th parameter in getDMIInformation).
204
       *
205
       *
Line 295... Line 296...
295
               $psu[] = 's/n ' . trim($entry['Serial Number']);
296
               $psu[] = 's/n ' . trim($entry['Serial Number']);
296
               $return[] = "Power Supply\t" . implode( ', ', $psu );
297
               $return[] = "Power Supply\t" . implode( ', ', $psu );
297
            }
298
            }
298
         }
299
         }
299
      }
300
      }
300
      return array( $return );
301
      return $return;
301
   }  // dmidecode2array
302
   }  // dmidecode2array
302
 
303
 
303
   /*
304
   /*
304
    * Test code for dmidecode input
305
    * Test code for dmidecode input
305
    * call from cli as
306
    * call from cli as