| 508 | |
| 509 | === 7/9/2014 === |
| 510 | Seems I missed a few details in the last round of revisions: |
| 511 | |
| 512 | Current modifications include: |
| 513 | * detection of UHD |
| 514 | * Done by scraping the output of uhd_usrp_probe |
| 515 | * detection of NETFPGA |
| 516 | * Tries to load the netfpaga module and enumerate the interfaces |
| 517 | * reporting of Hard drive smart information |
| 518 | * scrapes smartctl -a |
| 519 | |
| 520 | Additional support was proposed for setting the system clock via NTP but that was relgated to an OS startup script (we want to do it every time the node boots). |
| 521 | |
| 522 | Had to make some modification for to play nice with ruby 1.9.2+, specfically: |
| 523 | {{{ |
| 524 | #!/usr/bin/ruby -w |
| 525 | # gatherer.rb version 3.9 - Gathers information about varius system data, and updates the web based inventory via a Rest wrapper. |
| 526 | # |
| 527 | #Smart support, upadted restdb interface with time out support |
| 528 | |
| 529 | require 'optparse' |
| 530 | require 'open3' |
| 531 | require 'find' |
| 532 | require 'singleton' |
| 533 | require 'net/smtp' |
| 534 | |
| 535 | require_relative('./rest_db') |
| 536 | require_relative('./log_wrap') |
| 537 | }}} |
| 538 | |
| 539 | the #! directive had to change and the local libraries need to be included with require_relative. This was done in gather and rest_db. |