• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. chevengur
    C
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    chevengur

    @chevengur

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    chevengur Unfollow Follow

    Latest posts made by chevengur

    • RE: FOG Reboot

      @Tom-Elliott That’s right, in the UI I check the box, but in the POST request this flag is missing, or maybe I’m not naming it correctly?

      posted in FOG Problems
      C
      chevengur
    • FOG Reboot

      Hi everyone, I ran into an issue: I’m trying to perform a one-time system reboot in Power Management via Python requests. However, the problem is that after this command, the computer creates a Cron Schedule, causing it to reboot continuously. Is there any way to avoid this? In the GUI, there is a “Perform Immediately” flag that sends a one-time reboot request.

      fogproject.PNG

      def reboot(self):
              REBOOT_URL = "http://IP/fog/powermanagement"
              payload = {
                  "performImmediately": 1, # doesn't work
                  "hostID": 13,
                  "min": 0,
                  "hour": 0,
                  "dom": 0,
                  "month": 0,
                  "dow": 0,
                  "action": "reboot"
              }
      
              r = requests.post(
                  REBOOT_URL,
                  headers=self.headers,
                  json=payload,
                  verify=False
              )
      
              print(r.status_code, r.text)
      
      posted in FOG Problems
      C
      chevengur