<?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: Change Python task from &amp;quot;reboot&amp;quot; to &amp;quot;reboot all&amp;quot; so slots reboot as well. in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117680#M12545</link>
    <description>&lt;P&gt;The problem is it seems to be doing an API call.&amp;nbsp; This is the Python script in SIte Engine.&amp;nbsp; It looks like it is using "cli_result = api.reboot()"&amp;nbsp; Changing that to be api.reboot all() gets an error.&amp;nbsp; Trying api.reboot(all) gets an error.&amp;nbsp; So it seems the Python script is not running an embedded CLI command - it is calling an api.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;# @METADATASTART&lt;BR /&gt;#@DetailDescriptionStart&lt;BR /&gt;################################################################&lt;BR /&gt;# System Script&lt;BR /&gt;#&lt;BR /&gt;# Script : Resets the target device&lt;BR /&gt;# Revision : 1.0&lt;BR /&gt;# Last updated : 4/24/2018&lt;BR /&gt;# Purpose : To reset the target device&lt;BR /&gt;#&lt;BR /&gt;################################################################&lt;BR /&gt;#@DetailDescriptionEnd&lt;BR /&gt;################################################################################&lt;BR /&gt;# Default Command Timeout&lt;BR /&gt;################################################################################&lt;BR /&gt;# @VariableFieldLabel (description = "Command Timeout in seconds",&lt;BR /&gt;# name = commandTimeout,&lt;BR /&gt;# type = String,&lt;BR /&gt;# scope = global,&lt;BR /&gt;# required = no&lt;BR /&gt;# )&lt;BR /&gt;# @SectionEnd&lt;BR /&gt;# @MetaDataEnd&lt;BR /&gt;from xmclib import emc_vars&lt;BR /&gt;from xmclib import logger&lt;BR /&gt;from xmclib import cli&lt;BR /&gt;from device import api&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;cli_result = api.reboot()&lt;BR /&gt;cli.process_result(cli_result, emc_results)&lt;/P&gt;&lt;P&gt;except Exception as e:&lt;BR /&gt;cli.process_exception(e, emc_results)&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 13:24:22 GMT</pubDate>
    <dc:creator>Joshua_Beddingf</dc:creator>
    <dc:date>2025-01-29T13:24:22Z</dc:date>
    <item>
      <title>Change Python task from "reboot" to "reboot all" so slots reboot as well.</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117666#M12542</link>
      <description>&lt;P&gt;There is a python task in Site Engine called "Restart Device".&amp;nbsp; It works well and I have it schedules for 2am on Sundays when no one is here.&lt;BR /&gt;&lt;BR /&gt;But it only reboots the x465 and none of the x400 slots (port extenders).&amp;nbsp; The cli command to make all the devices reboot is "reboot all".&amp;nbsp; How can I modify the Python script to do "reboot all"?&lt;BR /&gt;&lt;BR /&gt;I have tried to create a CLI task, and that task works, but I cannot seem to schedule saved CLI tasks to run at a certain day and time.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:53:04 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117666#M12542</guid>
      <dc:creator>Joshua_Beddingf</dc:creator>
      <dc:date>2025-01-28T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change Python task from "reboot" to "reboot all" so slots reboot as well.</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117674#M12543</link>
      <description>&lt;P&gt;Modify your Python task to send the "reboot all" command instead of just rebooting the x465. Locate the part of the script that executes the reboot command and replace it with &amp;nbsp;or the equivalent function in your script. Ensure the script waits for confirmation if required. If scheduling CLI tasks isn't possible, embedding the command in Python is the best approach.&amp;nbsp;Download &lt;A href="https://snaptubedl.com/snaptube-premium/" target="_self"&gt;Snaptube Premium APK&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:28:58 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117674#M12543</guid>
      <dc:creator>mike533</dc:creator>
      <dc:date>2025-02-11T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change Python task from "reboot" to "reboot all" so slots reboot as well.</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117680#M12545</link>
      <description>&lt;P&gt;The problem is it seems to be doing an API call.&amp;nbsp; This is the Python script in SIte Engine.&amp;nbsp; It looks like it is using "cli_result = api.reboot()"&amp;nbsp; Changing that to be api.reboot all() gets an error.&amp;nbsp; Trying api.reboot(all) gets an error.&amp;nbsp; So it seems the Python script is not running an embedded CLI command - it is calling an api.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;# @METADATASTART&lt;BR /&gt;#@DetailDescriptionStart&lt;BR /&gt;################################################################&lt;BR /&gt;# System Script&lt;BR /&gt;#&lt;BR /&gt;# Script : Resets the target device&lt;BR /&gt;# Revision : 1.0&lt;BR /&gt;# Last updated : 4/24/2018&lt;BR /&gt;# Purpose : To reset the target device&lt;BR /&gt;#&lt;BR /&gt;################################################################&lt;BR /&gt;#@DetailDescriptionEnd&lt;BR /&gt;################################################################################&lt;BR /&gt;# Default Command Timeout&lt;BR /&gt;################################################################################&lt;BR /&gt;# @VariableFieldLabel (description = "Command Timeout in seconds",&lt;BR /&gt;# name = commandTimeout,&lt;BR /&gt;# type = String,&lt;BR /&gt;# scope = global,&lt;BR /&gt;# required = no&lt;BR /&gt;# )&lt;BR /&gt;# @SectionEnd&lt;BR /&gt;# @MetaDataEnd&lt;BR /&gt;from xmclib import emc_vars&lt;BR /&gt;from xmclib import logger&lt;BR /&gt;from xmclib import cli&lt;BR /&gt;from device import api&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;cli_result = api.reboot()&lt;BR /&gt;cli.process_result(cli_result, emc_results)&lt;/P&gt;&lt;P&gt;except Exception as e:&lt;BR /&gt;cli.process_exception(e, emc_results)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 13:24:22 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117680#M12545</guid>
      <dc:creator>Joshua_Beddingf</dc:creator>
      <dc:date>2025-01-29T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change Python task from "reboot" to "reboot all" so slots reboot as well.</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117688#M12547</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.extremenetworks.com/t5/user/viewprofilepage/user-id/39463"&gt;@Joshua_Beddingf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;There is a python task in Site Engine called "Restart Device".&amp;nbsp; It works well and I have it schedules for 2am on Sundays when no one is here.&lt;BR /&gt;&lt;BR /&gt;But it only reboots the x465 and none of the x400 slots (port extenders).&amp;nbsp; The cli command to make all the devices reboot is "reboot all".&amp;nbsp; How can I modify the Python script to do "reboot all"?&lt;BR /&gt;&lt;BR /&gt;I have tried to create a CLI task, and that task works, but I cannot seem to schedule saved CLI tasks to run at a certain day and time.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;The api.reboot() call itself is likely correct, but the script needs to specify &lt;EM&gt;which&lt;/EM&gt; device to reboot. Consult the API documentation for device selection methods (e.g., api.select_device(), api.get_devices()). If rebooting multiple devices, iterate through the device list and call api.reboot() for each one after selecting it. The errors you're seeing are due to the lack of device selection, not the reboot() method itself.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Jan 2025 04:36:21 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117688#M12547</guid>
      <dc:creator>michs23</dc:creator>
      <dc:date>2025-01-30T04:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Python task from "reboot" to "reboot all" so slots reboot as well.</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117692#M12548</link>
      <description>&lt;P&gt;The device selection is done in Site Engine.&amp;nbsp; It sends the api call to each device I select.&amp;nbsp; The problem is the port extender topology of the x465 / v400 system needs a different command then "reboot".&amp;nbsp; To reboot the system you have to send "reboot all".&amp;nbsp; The v400 port extender switches are not indinivually addressable.&amp;nbsp; They are controlled by the master switch - the x465.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 13:39:35 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/change-python-task-from-quot-reboot-quot-to-quot-reboot-all-quot/m-p/117692#M12548</guid>
      <dc:creator>Joshua_Beddingf</dc:creator>
      <dc:date>2025-01-30T13:39:35Z</dc:date>
    </item>
  </channel>
</rss>

