• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Lenain
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 24
    • Posts 108
    • Best 9
    • Controversial 0
    • Groups 0

    Posts made by Lenain

    • RE: API wake on lan

      @JJ-Fullmer Thank you so much, your solution work fine! I’ve made a script to do so:
      param (
      [Parameter(Mandatory=$true)]
      [string]$machineName
      )
      $hostID= get-foghost -hostName $machineName | Select-Object -ExpandProperty id
      $jsonData = @"
      {
      “taskTypeID”:“14”,
      “wol”:“1”,
      “other2”:“-1”,
      “other4”:“1”,
      “isActive”:“1”
      }
      "@

      New-FogObject -type objecttasktype -coreTaskObject host -jsonData $jsonData -IDofObject $hostID

      posted in General
      LenainL
      Lenain
    • RE: API wake on lan

      Hi @JJ-Fullmer and thank you for your help! 😊
      I am trying to create a wake on lan task only, it work fine from the web interface. My fog can send icmp packet trought all vlans and it is the only one, that’s why I’m trying to use it with powershell. I will try youe example asap, thank’s!!

      posted in General
      LenainL
      Lenain
    • RE: API wake on lan

      @Tom-Elliott
      I have finaly have it, it’s 14 with Fog 1.5.10. Task is send without error but no Wake Up… I’m using the powershell fog API, I have changed it to be able to send a task with ID 14… Can someone help me?

      function Send-FogImage {
          # .ExternalHelp FogApi-help.xml
          [CmdletBinding(DefaultParameterSetName='now')]
          [Alias('Push-FogImage','Deploy-FogImage')]
          param (
              [Parameter(ParameterSetName='now')]
              [Parameter(ParameterSetName='schedule')]
              $hostId,
      		$taskTypeID,
              [Parameter(ParameterSetName='schedule')]
              [datetime]$StartAtTime
          )
          
          
          process {
              $fogHost = Get-FogHost -hostID $hostId;
              $currentImage = $fogHost.imageName;
              $fogImages = Get-FogImages;
              $fogImage = ($fogImages | Where-Object name -match $currentImage)
              if ($taskTypeID -eq ""){
      			$taskTypeID = 1
      		}
              if ($PSCmdlet.ParameterSetName -eq 'now') {
                  "No Time was specified, queuing the task to start now" | out-host;
      			if ($taskTypeID -ne 1) {
      				"Creating Task for fog host of id $($hostID) named $($fogHost.name)" | Out-Host;
      				$jsonData = "{`"taskTypeID`": `"$($taskTypeID)`", `"shutdown`":`"0`",`"other2`":`"0`",`"other4`":`"0`",`"isActive`":`"1`" }";
      			}else{
      				"Creating Deploy Task for fog host of id $($hostID) named $($fogHost.name) taskID $($taskTypeID)" | Out-Host;
      				"Will deploy the assigned image $($fogImage.name) - $($fogImage.id) which will install the os $($fogImage.osname)" | Out-host;
      				$jsonData = "{`"taskTypeID`": `"$($taskTypeID)`", `"shutdown`":`"0`",`"other2`":`"0`",`"other4`":`"1`",`"isActive`":`"1`" }";
      			}
              } else {
                  "Start time of $($StartAtTime) specified, scheduling the task to start at that time" | out-host;
                  $scheduleTime = Get-FogSecsSinceEpoch -scheduleDate $StartAtTime
                  $runTime = get-date $StartAtTime -Format "yyyy-M-d HH:MM"
                  $jsonData = @"
                          {
                              "name":"Deploy Task",
                              "type":"S",
                              "taskTypeID":"$($taskTypeID)",
                              "runTime":"$runTime",
                              "scheduleTime":"$scheduleTime",
                              "isGroupTask":"0",
                              "hostID":"$($hostId)",
                              "shutdown":"0",
                              "other2":"0",
                              "other4":"1",
                              "isActive":"1"
                          }
      "@
              }
              return New-FogObject -type objecttasktype -coreTaskObject host -jsonData $jsonData -IDofObject "$hostId";
          }
          
      }
      
      posted in General
      LenainL
      Lenain
    • RE: API wake on lan

      @Tom-Elliott
      That’s right, it’s id 12 😉 Thank you for you answer! I’m using a powershell script to wake up but for now I have error 501… I’m searching why

      posted in General
      LenainL
      Lenain
    • API wake on lan

      Hi,
      I’m searching a way ton use wol with the API but I can’t find. Is there a way or am I blind 😅

      posted in General
      LenainL
      Lenain
    • AD password issue

      Hello,
      I have change my AD password and put an apostrophe (') in it, since I have issue with it. When I change something in “general” or “active directory” the password is change in mysql, the apostrophe is replaced by “'”.

      posted in FOG Problems
      LenainL
      Lenain
    • Update 1.5.8 to 1.5.9 on Ubuntu 14.04

      Hello,
      I have a error while updating fog from 1.5.8 to 1.5.9 on Ubuntu 14.04 LTS:

      Setting up and starting MySQL......................
      /lib/common/functions.sh line 1095: systemctl command not found
      /lib/common/functions.sh line 1096: systemctl command not found
      

      I have opened the script and lines 1095 and 1096 are:

      dbservice=$(systemctl list-units | grep -o -e "mariadb\.service" -e "mysqld\.service" -e "mysql\.service" | tr -d '@')
      [[ -z $dbservice ]] && dbservice=$(systemctl list-unit-files | grep -v bad | grep -o -e "mariadb\.service" -e "mysqld\.service" -e "mysql\.service" | tr -d '@')
      

      I have roleback to a snapshot in case, is it a serious bug or just a warning?
      Thank you

      posted in FOG Problems
      LenainL
      Lenain
    • RE: ipxe initializing devices freeze with Wifi card

      @Sebastian-Roth Thank you so much! You save my life (almoste 😉 ) It was about ipxe.efi, I have change to realtek.efi in DHCP and now it work fine. Nice work thank you ^_^

      posted in FOG Problems
      LenainL
      Lenain
    • RE: ipxe initializing devices freeze with Wifi card

      @Sebastian-Roth Do you have an idea of the problem? We have iPXE 1.20.1+ (g18dc) on screen when iPXE initialize device correctly.

      posted in FOG Problems
      LenainL
      Lenain
    • RE: ipxe initializing devices freeze with Wifi card

      @Sebastian-Roth I have my own DHCP on Windows server 2012R2

      posted in FOG Problems
      LenainL
      Lenain
    • RE: ipxe initializing devices freeze with Wifi card

      @Sebastian-Roth
      Thank you for your answer, I use UEFI mode and what do you mean by iPXE binary? Where can I find that?

      posted in FOG Problems
      LenainL
      Lenain
    • ipxe initializing devices freeze with Wifi card

      Fog 1.5.8

      Hello,
      I have an issue on Dell Optiplex 3070 that have Wifi Anatel WN7600R-MV card, with others Optiplex 3070 that don’t have those cards PXE work fine. PXE start on LAN card but freeze on “ipxe initializing devices”.
      I have tried Kernel.TomElliott.4.19.90 but same problem.

      Thank you.

      posted in FOG Problems
      LenainL
      Lenain
    • RE: FOG 1.5.7 to 1.5.8 - Scheduled tasks issue

      @Sebastian-Roth
      I have found the error by myself, it was a misconfiguration of the variable no_proxy. I have change it and restart fog, it’s ok now:
      export no_proxy=127.0.0.1,IP.OF.SRV.FOG,[…]
      Thank you for your help!

      posted in FOG Problems
      LenainL
      Lenain
    • RE: FOG 1.5.7 to 1.5.8 - Scheduled tasks issue

      Hello,
      I have tried wake up delayed tasks, they are in web UI “Scheduled Tasks” type= delayed and they still here after the date/time.

      Since update there is nothing in the fogscheduler.log, the activity below is from 1.5.7:
      [03-27-20 11:06:54 am] Interface Ready with IP Address: XX.XX.XX.67
      [03-27-20 11:06:54 am] Interface Ready with IP Address: 127.0.0.1
      [03-27-20 11:06:54 am] Interface Ready with IP Address: 127.0.1.1
      [03-27-20 11:06:54 am] Interface Ready with IP Address: SRV-XXXXX
      [03-27-20 11:06:54 am] * Starting TaskScheduler Service
      [03-27-20 11:06:54 am] * Checking for new items every 60 seconds
      [03-27-20 11:06:54 am] * Starting service loop
      [03-27-20 11:06:55 am] * 1 task found.
      [03-27-20 11:06:55 am] * Task run time: Tue, 31 Mar 2020 12:29:00 +0200
      [03-27-20 11:33:48 am] * 1 task found.
      [03-27-20 11:33:48 am] * Task run time: Tue, 31 Mar 2020 12:29:00 +0200
      [03-27-20 11:34:48 am] * 1 task found.
      [03-27-20 11:34:48 am] * Task run time: Tue, 31 Mar 2020 12:29:00 +0200
      [03-27-20 11:35:48 am] * 1 task found.
      [03-27-20 11:35:48 am] * Task run time: Tue, 31 Mar 2020 12:29:00 +0200
      [03-27-20 11:36:49 am] * 1 task found.
      [03-27-20 11:36:49 am] * Task run time: Tue, 31 Mar 2020 12:29:00 +0200
      [03-27-20 11:37:49 am] * 1 task found.
      [03-27-20 11:37:49 am] * Task run time: Tue, 31 Mar 2020 12:29:00 +0200

      The 27th march I have update to 1.5.8. Thank you for your help,
      Nicolas

      posted in FOG Problems
      LenainL
      Lenain
    • FOG 1.5.7 to 1.5.8 - Scheduled tasks issue

      OS: Ubuntu 14.04.1 LTS
      apache: 2.4.37
      php: 7.1.25
      mysql: 14.14
      FOG: 1.5.8
      Hello,
      Since the update the scheduled tasks don’t work anymore, is there a way that I can fix it?
      Thank you,
      Nicolas

      posted in FOG Problems
      LenainL
      Lenain
    • RE: Create users who can only use the function WOL

      @Fernando-Gietz
      No, I use many more on fog.
      We have old computers who need time to be ready, so some teachers asked me if they could have access to WOL. With our ACL only fog server can WOL PC, that’s why I’m looking for a solution.

      posted in Feature Request
      LenainL
      Lenain
    • RE: Create users who can only use the function WOL

      @Fernando-Gietz said in Create users who can only use the function WOL:

      No, the rules are applied to the icons of the top toolbar (MAIN_MENU rules) and to the items of the Principal Menu section (SUB_MENULINK rules)

      Too bad, in a high school it might be interesting to leave to teachers only access to the WOL. Maybe someday it will be possible 😉

      Anyway thank you very much for your help and your patience ^_^

      posted in Feature Request
      LenainL
      Lenain
    • RE: Create users who can only use the function WOL

      Hello @Fernando-Gietz,
      Ok, when the rules are applied the icons disappear it work!
      it work
      But the “members” section of “roles” stay empty.
      text alternatif
      text alternatif
      Is it possible to hide “Access Controls” to? Is it possible to hide “snapins” or “printers” in group management? In “Basic Tasks” could we only show “Wake-Up”?

      Thanks for your help ^^

      posted in Feature Request
      LenainL
      Lenain
    • RE: Create users who can only use the function WOL

      Ok @Fernando-Gietz I haven’t update to working yet, it’s done now.

      Everything seams fine except “Select fog user (for example, you can select profs users if you want). Does appear the fog user in the list of members?” The list of members still empty.

      I’ve tried to connect with the limited user but it can access to every menu.

      posted in Feature Request
      LenainL
      Lenain
    • RE: Create users who can only use the function WOL

      @Fernando-Gietz

      Unistall the plugin -> Ok

      Verify that the tables roleRuleAssoc, roleUserAssoc, roles and rules are being erased from the database by the uninstall process. -> Ok

      Reinstall the plugin -> Ok

      To test if the plugin works fine, we will not create a new role, we use the roles that the install process create. For example, administrator role. -> Ok

      After install the plugin, go to users page -> List all Users. Does appear a new column named “Role”? -> No, there is no column “Role” only "API, “Username” and “Friendly Name”. In mysql the table “users” have uID, uName, uPass, uCreateDate, uCreateBy, uType, uDisplay, UAllowAPI, uAPIToken.

      Do I have to add uRole in users table?

      posted in Feature Request
      LenainL
      Lenain
    • 1 / 1