{"id":521,"date":"2012-04-05T22:29:43","date_gmt":"2012-04-05T20:29:43","guid":{"rendered":"http:\/\/www.netexpertise.eu\/fr\/?p=521"},"modified":"2021-09-19T07:42:06","modified_gmt":"2021-09-19T06:42:06","slug":"licences-autodesk-inventor-en-cours-dutilisation","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html","title":{"rendered":"Autodesk Inventor Licence r\u00e9seau non Disponible"},"content":{"rendered":"\n<div style=\"position: relative;\"><img style=\"margin-top: 0px; padding-top: 0px;\" src=\"\/images\/Inventor_Log.png\" alt=\"Logs Autodesk Inventor dans LMTools\"><br><img style=\"right: 12px; margin-top: -130px; position: absolute;\" src=\"\/images\/Inventor_Licenses.png\" alt=\"Inventor licence r\u00e9seau non disponible\"><br>Autodesk ne semble pas fournir d&rsquo;outil pour savoir qui utilise des<br>licences r\u00e9seau <a href=\"https:\/\/www.autodesk.com\/products\/inventor\/overview\">Inventor<\/a>. Les utilisateurs finaux se demandent<br>pourquoi ils obtiennent un message d&rsquo;erreur Inventor<br> \u00ab\u00a0Licence r\u00e9seau non disponible\u00a0\u00bb, et \u00e0 qui ces licences ont \u00e9t\u00e9<br>attribu\u00e9es. J&rsquo;ai \u00e9crit cet outil afin d&rsquo;\u00e9viter les appels inutiles au d\u00e9partement informatique et aussi donner la possibilit\u00e9 \u00e0 tous de savoir qui est connect\u00e9 \u00e0 chaque instant. Ainsi les utilisateurs peuvent s&rsquo;arranger entre eux pour lib\u00e9rer une licence.<\/div>\n\n\n\n<p><br>Inventor g\u00e9n\u00e8re un fichier de log dans lequel chaque (d\u00e9)connexion est enregistr\u00e9e avec d&rsquo;autres informations. Le script parse le fichier et affiche les utilisateurs connect\u00e9s.<br>\u00a0<br>Seulement 2 \u00e9tapes sont n\u00e9cessaires pour la mise en place:<br>&#8211; Param\u00e9trer le chemin du fichier de log flex.log vers un r\u00e9pertoire partag\u00e9 en lecture seule et donner les droits d&rsquo;acc\u00e8s aux utilisateurs finaux.<br>&#8211; Cr\u00e9er le script suivant inventor.vbs dans le m\u00eame dossier.<br>\u00a0<br>Le script a \u00e9t\u00e9 \u00e9crit en VB pour \u00eatre ex\u00e9cut\u00e9 depuis n&rsquo;importe quel PC sous Windows. Je l&rsquo;ai mis \u00e0 disposition des utilisateurs sur un partage <a href=\"\/fr\/category\/systeme\/windows\">Windows<\/a>.<br>Enfin, Param\u00e9trer la variable \u00ab\u00a0Users\u00a0\u00bb avec votre propre nombre de licences. Nous avons 4 licences concurrentes ici.<br><br>A pr\u00e9sent, les utilisateurs savent o\u00f9 regarder lorsqu&rsquo;ils ont un message d&rsquo;erreur Inventor \u00ab\u00a0Licence r\u00e9seau non disponible\u00a0\u00bb.<br><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"visual-basic\" class=\"language-visual-basic\">Option Explicit\n\nDim objFSO, objFile, strTextFile\nDim line, allSessions(), offline, currentSessions, firstIndex\nDim i, l\nCONST ForReading = 1\nCONST Users = 4\n\n'Nom du fichier de log\nstrTextFile = \"flex.log\"\n\n'Create a File System Object\nSet objFSO = CreateObject(\"Scripting.FileSystemObject\")\nif not (objFSO.FileExists(strTextFile)) then\n   MsgBox strTextFile&amp;\" n'existe pas!\", vbExclamation, \"Error\"\n   wscript.quit\nend if\nSet objFile = objFSO.OpenTextFile(strTextFile, ForReading)\n\ni = 0\n\n' Recherche les connexions en ordre inverse\nDo Until objFile.AtEndOfStream\n    Line = objFile.ReadLine\n    If (not InStr(line, \"(adskflex) OUT:\") = 0) or (not InStr(line, \"(adskflex) IN:\") = 0) Then\n        Redim Preserve allSessions(i)\n        allSessions(i) = line\n        i = i + 1\n    End If\nLoop\n\n' Index dans allSessions\nOn Error Resume Next\nl = UBound(allSessions)\n' Compte les licences\ni = 0\n\nif (l = \"\") then\n   currentSessions = \"Personne n'est connect\u00e9\"\nend if\n\n' Retourne les x derni\u00e8res connexions\n' sans tenir compte des doublons\nDo While (i &lt; Users) and (l >= 0)\n   line = split(allSessions(l))\n   ' Cas heure &lt; 10h\n   if line(0) = \"\" then\n      ' Check if user has not disconnected\n      if StrComp(line(3), \"In:\", vbTextCompare) = 0 and InStr(currentSessions, line(5)) = 0 then\n         offline = offline &amp; line(5) &amp; \" \"\n      end if\n      if InStr(currentSessions, line(5)) = 0 and InStr(offline, line(5)) = 0 then\n         currentSessions = currentSessions &amp; line(1) &amp; \" \" &amp; line(5) &amp; VbCrLf\n         i = i + 1\n      end if\n   else\n      if StrComp(line(2), \"In:\", vbTextCompare) = 0 and InStr(currentSessions, line(4)) = 0 then\n         offline = offline &amp; line(4) &amp; \" \"\n      end if\n      if InStr(currentSessions, line(4)) = 0 and InStr(offline, line(4)) = 0 then\n         currentSessions = currentSessions &amp; line(0) &amp; \" \" &amp; line(4) &amp; VbCrLf\n         i = i + 1\n      end if\n   end if\n   l = l - 1\nLoop\n\nMsgBox currentSessions, vbInformation, \"Licences Inventor\"\n'wscript.echo currentSessions\n\nobjFile.Close\n\n'Cleanup\nSet objFSO = Nothing<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Autodesk ne semble pas fournir d&rsquo;outil pour savoir qui utilise deslicences r\u00e9seau Inventor. Les utilisateurs finaux se demandentpourquoi ils obtiennent un message d&rsquo;erreur Inventor \u00ab\u00a0Licence r\u00e9seau non disponible\u00a0\u00bb, et \u00e0 qui ces licences ont \u00e9t\u00e9attribu\u00e9es. J&rsquo;ai \u00e9crit cet outil afin d&rsquo;\u00e9viter les appels inutiles au d\u00e9partement informatique et aussi donner la possibilit\u00e9 \u00e0 tous de [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[365,366,367],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Autodesk Inventor Licence r\u00e9seau non Disponible<\/title>\n<meta name=\"description\" content=\"Licence r\u00e9seau Autodesk Inventor non disponible? Donnez \u00e0 vos utilisateurs la possibilit\u00e9 de voir qui utilise les licences\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Autodesk Inventor Licence r\u00e9seau non Disponible\" \/>\n<meta property=\"og:description\" content=\"Licence r\u00e9seau Autodesk Inventor non disponible? Donnez \u00e0 vos utilisateurs la possibilit\u00e9 de voir qui utilise les licences\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2012-04-05T20:29:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-19T06:42:06+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html\",\"url\":\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html\",\"name\":\"Netexpertise - Autodesk Inventor Licence r\u00e9seau non Disponible\",\"isPartOf\":{\"@id\":\"https:\/\/www.netexpertise.eu\/fr\/#website\"},\"datePublished\":\"2012-04-05T20:29:43+00:00\",\"dateModified\":\"2021-09-19T06:42:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632\"},\"description\":\"Licence r\u00e9seau Autodesk Inventor non disponible? Donnez \u00e0 vos utilisateurs la possibilit\u00e9 de voir qui utilise les licences\",\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.netexpertise.eu\/fr\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Autodesk Inventor Licence r\u00e9seau non Disponible\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.netexpertise.eu\/fr\/#website\",\"url\":\"https:\/\/www.netexpertise.eu\/fr\/\",\"name\":\"Netexpertise\",\"description\":\"Syst\u00e8mes \/ R\u00e9seaux \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.netexpertise.eu\/fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Autodesk Inventor Licence r\u00e9seau non Disponible","description":"Licence r\u00e9seau Autodesk Inventor non disponible? Donnez \u00e0 vos utilisateurs la possibilit\u00e9 de voir qui utilise les licences","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html","og_locale":"fr_FR","og_type":"article","og_title":"Netexpertise - Autodesk Inventor Licence r\u00e9seau non Disponible","og_description":"Licence r\u00e9seau Autodesk Inventor non disponible? Donnez \u00e0 vos utilisateurs la possibilit\u00e9 de voir qui utilise les licences","og_url":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html","og_site_name":"Netexpertise","article_published_time":"2012-04-05T20:29:43+00:00","article_modified_time":"2021-09-19T06:42:06+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html","url":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html","name":"Netexpertise - Autodesk Inventor Licence r\u00e9seau non Disponible","isPartOf":{"@id":"https:\/\/www.netexpertise.eu\/fr\/#website"},"datePublished":"2012-04-05T20:29:43+00:00","dateModified":"2021-09-19T06:42:06+00:00","author":{"@id":"https:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632"},"description":"Licence r\u00e9seau Autodesk Inventor non disponible? Donnez \u00e0 vos utilisateurs la possibilit\u00e9 de voir qui utilise les licences","breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/fr\/divers\/licences-autodesk-inventor-en-cours-dutilisation.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.netexpertise.eu\/fr"},{"@type":"ListItem","position":2,"name":"Autodesk Inventor Licence r\u00e9seau non Disponible"}]},{"@type":"WebSite","@id":"https:\/\/www.netexpertise.eu\/fr\/#website","url":"https:\/\/www.netexpertise.eu\/fr\/","name":"Netexpertise","description":"Syst\u00e8mes \/ R\u00e9seaux \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netexpertise.eu\/fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632","name":"dave","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/posts\/521"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/comments?post=521"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/posts\/521\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/categories?post=521"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/tags?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}