<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding a python module for XIQ-SE scripting and workflows in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116688#M12413</link>
    <description>&lt;P&gt;I would imagine so. All things MySQL are being removed as a result of the migration. Do you need mySQL for the purpose of the workflow since you've upgraded SE to 24.7+?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 13:39:50 GMT</pubDate>
    <dc:creator>Robert_Haynes</dc:creator>
    <dc:date>2024-11-08T13:39:50Z</dc:date>
    <item>
      <title>Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95816#M9845</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Trying to access a distant SQL database from a workflow, I'm unable to import relevant python module. Is this natively possible or should I installed additionnal python module ? And if yes, how ? Older post talk about former XMC, but seems not to be effective in XIQ-SE.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jave&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 13:13:24 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95816#M9845</guid>
      <dc:creator>Jave</dc:creator>
      <dc:date>2023-05-11T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95833#M9846</link>
      <description>&lt;P&gt;Officially I do not think there is a means to import modules in either Python or Jython as used by XMC/XIQ-SE.&lt;/P&gt;&lt;P&gt;XMC/XIQ-SE includes python2.7/python3 command line interpreters but primarily uses Jython - a Java-based python interpreter for its GUI-based Python script executions.&lt;/P&gt;&lt;P&gt;While it's likely possible to tweak the system to use pip, etc to import modules for either I do not think formally this is supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add &lt;EM&gt;formal&lt;/EM&gt; support would be a product enhancement / feature request.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:39:54 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95833#M9846</guid>
      <dc:creator>Robert_Haynes</dc:creator>
      <dc:date>2023-05-12T13:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95834#M9847</link>
      <description>&lt;P&gt;See &lt;A href="https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-and-python-install-additional-modules/m-p/35053" target="_blank"&gt;https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-and-python-install-additional-modules/m-p/35053 &lt;/A&gt;as this is a group provided script that essentially uses PIP within Jython to import modules. Modules must be Python 2.7 compatible.&lt;/P&gt;&lt;P&gt;... this is of course not GTAC supported&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:48:27 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95834#M9847</guid>
      <dc:creator>Robert_Haynes</dc:creator>
      <dc:date>2023-05-12T13:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95843#M9848</link>
      <description>&lt;P&gt;You may consider using the build-in driver. more details in the &lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_workflows/xwf/XIQ-SE_Licensing_calculation-v107.xwf?raw=true" target="_blank"&gt;XIQ-SE licensing calculation&lt;/A&gt;&amp;nbsp;workflow:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from com.ziclix.python.sql import zxJDBC

try:
    cnxn = zxJDBC.connect(url,emc_vars["dbUser"], emc_vars["dbPassword"], driver)
    mycursor = cnxn.cursor()
    mycursor.close()
    cnxn.close()
except:
    status = emc_results.Status;
    emc_results.setStatus( status.ERROR )
    emc_results.put("workflowMessage","MySQL Database access issue, check the password in Variables!")
    wf_error("MySQL Database access issue, check the password in Variables!")
else:
    wf_info("MySQL Database access OK.")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 May 2023 06:44:41 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95843#M9848</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2023-05-15T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95844#M9849</link>
      <description>&lt;P&gt;External SQL use example:&amp;nbsp;&lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_workflows/xwf/MySQL-2-LocalRepository-8.4.0.115v13.xwf?raw=true" target="_blank"&gt;Import credentials from MySQL to local repository&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 06:46:07 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95844#M9849</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2023-05-15T06:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95854#M9850</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.extremenetworks.com/t5/user/viewprofilepage/user-id/25315"&gt;@Zdeněk_Pala&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I &lt;SPAN class=""&gt;had actually seen your workflow working through system calls but I was not aware of this built-in driver: thank you very much, it meets my needs !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Jave&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 12:32:44 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/95854#M9850</guid>
      <dc:creator>Jave</dc:creator>
      <dc:date>2023-05-15T12:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116687#M12412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After upgrade to latest version of XIQ-SE, I have now this error for scripts using mysql JDBC driver:&lt;/P&gt;&lt;P&gt;driver [com.mysql.jdbc.Driver] not found&lt;/P&gt;&lt;P&gt;but it runs correctly using "org.postgresql.Driver".&lt;/P&gt;&lt;P&gt;How can I correct this ? Is it related to XIQ-SE database migration from mysql to postgres ?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 12:37:27 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116687#M12412</guid>
      <dc:creator>Jave</dc:creator>
      <dc:date>2024-11-08T12:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116688#M12413</link>
      <description>&lt;P&gt;I would imagine so. All things MySQL are being removed as a result of the migration. Do you need mySQL for the purpose of the workflow since you've upgraded SE to 24.7+?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 13:39:50 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116688#M12413</guid>
      <dc:creator>Robert_Haynes</dc:creator>
      <dc:date>2024-11-08T13:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116689#M12414</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.extremenetworks.com/t5/user/viewprofilepage/user-id/32716"&gt;@Robert_Haynes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes. I have created a workflow which execute SQL request towards a MySQL database in order to retrieve provisionning's datas for a ZTP+ discovered device, like it's management IP and VLAN, it's name and many others parameters. This database is provisionned via a web interface by network administrators. If MySQL driver is not available anymore I would be forced to modify all my setup...&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 14:16:19 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116689#M12414</guid>
      <dc:creator>Jave</dc:creator>
      <dc:date>2024-11-08T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116694#M12417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you replace the MySQL driver with PSQL driver you should be able to re-use majority of the workflow. basic SQL commands are the same for MySQL and PSQL...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from com.ziclix.python.sql import zxJDBC

# Try the DB connection and if it is not successful than stop

url = 'jdbc:postgresql://localhost:4589/netsight'  #URL with port and database name
driver = 'org.postgresql.Driver'
try:
    cnxn = zxJDBC.connect(url,emc_vars["dbUser"], emc_vars["dbPassword"], driver)
    mycursor = cnxn.cursor()
    mycursor.close()
    cnxn.close()
except:
    status = emc_results.Status;
    emc_results.setStatus( status.ERROR )
    emc_results.put("workflowMessage","Database access issue, check the password in Variables!")
else:
    print ("Database access OK.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:55:27 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116694#M12417</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2024-11-08T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a python module for XIQ-SE scripting and workflows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116696#M12419</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.extremenetworks.com/t5/user/viewprofilepage/user-id/25315"&gt;@Zdeněk_Pala&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already do that few hours ago, it works. I unfortunately had to rewrite my php code for the web application for provisioning the database in question. But no problem, everything works correctly now.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 19:30:36 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/adding-a-python-module-for-xiq-se-scripting-and-workflows/m-p/116696#M12419</guid>
      <dc:creator>Jave</dc:creator>
      <dc:date>2024-11-08T19:30:36Z</dc:date>
    </item>
  </channel>
</rss>

