{"id":1208,"date":"2012-01-31T11:40:56","date_gmt":"2012-01-31T09:40:56","guid":{"rendered":"http:\/\/sickel.net\/blogg\/?p=1208"},"modified":"2013-04-23T13:17:11","modified_gmt":"2013-04-23T11:17:11","slug":"dmidecode-database","status":"publish","type":"post","link":"http:\/\/sickel.net\/blogg\/?p=1208","title":{"rendered":"dmistore &#8211; database"},"content":{"rendered":"<p>A database to store dmidecode information. Upload through a php-script, store in a postgres database. This is intended to be a tool for those who, like me, has quite a few PCs at home, and most of them are received second hand.<\/p>\n<p>Information may be uploaded using curl:<br \/>\n<code><br \/>\ndmidecode > dmidecode.dat<br \/>\ncurl --form Datafil=@dmidecode.dat --form system=$HOSTNAME http:\/\/&lt;host&gt;\/dmistore\/upload.php<br \/>\n<\/code><\/p>\n<p>So far: Upload, view of single system and database schema. <\/p>\n<p>The database is designed like<\/p>\n<p>System (computers) -&lt; header -&lt; item -&lt; subitem<\/p>\n<p>where header is e.g.  <\/p>\n<p>Handle 0x0100, DMI type 1, 25 bytes<br \/>\nSystem Information<\/p>\n<p>An item may be:<\/p>\n<p>Runtime Size: 64 kB <\/p>\n<p>Where &#8220;Runtime Size&#8221; and &#8220;64 kB&#8221; are split and stored in different fields<\/p>\n<p>and subitems are what typically is listed under Characteristics eg<\/p>\n<p>PCI is supported<\/p>\n<p>TODO: <\/p>\n<ol>\n<li>Make reports of all systems,\n<ol>\n<li>CPU + RAM + max ram<\/li>\n<\/ol>\n<\/li>\n<li>mysql compatible (although postgres is, and will be my main data base system)<\/li>\n<\/ol>\n<p>Note: There is a wrong schema.sql in v  0.2, the correct one can be found <a href=\"http:\/\/hhv3.sickel.net\/b\/schema.sql\">here<\/a> (please do not bookmark this link, it will soon change).<\/p>\n<p><a href=\"http:\/\/sickel.net\/misc\/dmistore_0.2.tar.gz\">Version 0.2<\/a> Using <a href=\"http:\/\/code.stephenmorley.org\/javascript\/collapsible-lists\/\">Collapsible lists<\/a> to make the list more readable. Changed name to dmistore.<\/p>\n<p><a href=\"http:\/\/sickel.net\/misc\/dmidecode_0.1.tar.gz\">Version 0.1<\/a> &#8211; upload should work. Needs postgresql (i&#8217;m running on 8.4, but most reasonably recent version should work) php 5.x and the smarty templating library.<\/p>\n<p>If anyone can use anything from here, I would appreciate feedback.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A database to store dmidecode information. Upload through a php-script, store in a postgres database. This is intended to be a tool for those who, like me, has quite a few PCs at home, and most of them are received &hellip; <a href=\"http:\/\/sickel.net\/blogg\/?p=1208\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1208","post","type-post","status-publish","format-standard","hentry","category-data"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnVtD-ju","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1208"}],"version-history":[{"count":22,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1208\/revisions"}],"predecessor-version":[{"id":1214,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1208\/revisions\/1214"}],"wp:attachment":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}