{"id":288,"date":"2025-09-29T11:02:48","date_gmt":"2025-09-29T11:02:48","guid":{"rendered":"https:\/\/fhix.fr\/?p=288"},"modified":"2025-09-30T06:48:48","modified_gmt":"2025-09-30T06:48:48","slug":"utiliser-metabase-pour-surveiller-la-machine","status":"publish","type":"post","link":"https:\/\/fhix.fr\/index.php\/2025\/09\/29\/utiliser-metabase-pour-surveiller-la-machine\/","title":{"rendered":"Superviser mon AS400 avec Metabase"},"content":{"rendered":"\n<p>Metabase est un outil de visualisation des donn\u00e9es sous forme d&rsquo;un dashboard graphique.<br>Exemple d&rsquo;utilisation :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"729\" src=\"https:\/\/fhix.fr\/wp-content\/uploads\/2025\/09\/image-9-1024x729.png\" alt=\"\" class=\"wp-image-289\" srcset=\"https:\/\/fhix.fr\/wp-content\/uploads\/2025\/09\/image-9-1024x729.png 1024w, https:\/\/fhix.fr\/wp-content\/uploads\/2025\/09\/image-9-300x214.png 300w, https:\/\/fhix.fr\/wp-content\/uploads\/2025\/09\/image-9-768x547.png 768w, https:\/\/fhix.fr\/wp-content\/uploads\/2025\/09\/image-9.png 1070w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Requ\u00eates utilis\u00e9es pour cette exemple :<br>1) <strong>% occupation disque<\/strong><br><code>SELECT SYSTEM_ASP_USED FROM qsys2.system_status_info<\/code><\/p>\n\n\n\n<p>2) <strong>Nombre de travaux int\u00e9ractifs<\/strong><br>SELECT count(*) FROM TABLE(active_job_info()) where job_type=&rsquo;INT&rsquo;<\/p>\n\n\n\n<p>3) <strong>Nombre de travaux en message <\/strong><br><code>SELECT count(*) FROM TABLE(active_job_info()) WHERE job_status='MSGW'<\/code><\/p>\n\n\n\n<p>4) <strong>Palmar\u00e8s du nombre de spoules par utilisateur<\/strong><br><code>SELECT job_user , count(*) AS nombre FROM TABLE(QSYS2.SPOOLED_FILE_INFO(USER_NAME =><em>'<\/em>*'))<br>WHERE job_user&lt;>'QTCP'<br>GROUP BY job_user<br>ORDER BY nombre DESC<br>LIMIT 10<\/code><\/p>\n\n\n\n<p>5) <strong>Palmar\u00e8s des plus gros fichiers<\/strong><br><code>SELECT objlib concat '\/' concat objname , objsize<br>FROM TABLE(QSYS2.OBJECT_STATISTICS('*ALLUSR<em>', '<\/em>FILE'))<br>WHERE objowner NOT LIKE 'Q%' AND objattribute='PF'<br>ORDER BY objsize DESC LIMIT 15<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Metabase est un outil de visualisation des donn\u00e9es sous forme d&rsquo;un dashboard graphique.Exemple d&rsquo;utilisation : Requ\u00eates utilis\u00e9es pour cette exemple :1) % occupation disqueSELECT SYSTEM_ASP_USED FROM qsys2.system_status_info 2) Nombre de travaux int\u00e9ractifsSELECT count(*) FROM TABLE(active_job_info()) where job_type=&rsquo;INT&rsquo; 3) Nombre de travaux en message SELECT count(*) FROM TABLE(active_job_info()) WHERE job_status=&rsquo;MSGW&rsquo; 4) Palmar\u00e8s du nombre de spoules &#8230; <a title=\"Superviser mon AS400 avec Metabase\" class=\"read-more\" href=\"https:\/\/fhix.fr\/index.php\/2025\/09\/29\/utiliser-metabase-pour-surveiller-la-machine\/\" aria-label=\"En savoir plus sur Superviser mon AS400 avec Metabase\">Lire la suite<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-systeme"],"_links":{"self":[{"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":5,"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":296,"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/posts\/288\/revisions\/296"}],"wp:attachment":[{"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fhix.fr\/index.php\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}