• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Add iPerf to FoG

Scheduled Pinned Locked Moved Solved
Feature Request
4
11
3.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    ch3i Moderator
    last edited by Nov 19, 2014, 12:18 PM

    Hi,

    I use iPerf to perform bandwith test before deploy image with multicast (Because I have a lot of switchs and problem on some ports). I use an USB key with DSL on each machine to test the bandwith.

    Is that possible to Add iPerf in iPXE menu ?

    The idea is to have iPerf (Server) on FoG server, iPerf (client) on the iPXE menu, and configuration menu in the web interface (Server, Bandwith, during time test, …).

    It’s really usefull tool.

    Regards,
    Ch3i.

    1 Reply Last reply Reply Quote 0
    • G
      Gilou
      last edited by Nov 19, 2014, 2:00 PM

      You can always add anything you want in the iPXE menu, to boot your DSL or any other linux from the network 😉

      1 Reply Last reply Reply Quote 0
      • C
        ch3i Moderator
        last edited by Nov 19, 2014, 3:24 PM

        [quote=“Gilou, post: 39230, member: 3221”]You can always add anything you want in the iPXE menu, to boot your DSL or any other linux from the network ;)[/quote]

        I know, but I think that a full integration in FoG is very usefull. The multicast speed depends of the slowest computer, identify the computer(s) wich is(are) slowest is very important 😉

        1 Reply Last reply Reply Quote 0
        • C
          ch3i Moderator
          last edited by Dec 8, 2014, 3:30 PM

          [quote=“Gilou, post: 39230, member: 3221”]You can always add anything you want in the iPXE menu, to boot your DSL or any other linux from the network ;)[/quote]

          Hi,

          I’ll try to add iperf on the init wich the wiki explanation :

          • Adding iperf to the /sbin directory

          [CODE]
          cd /tftpboot/fog/images
          unxz init.xz
          mkdir initmountdir
          mount -o loop init initmountdir
          cp /root/iperf /tftpboot/fog/images/initmountdir/sbin
          [/CODE]

          [CODE]
          umount initmountdir
          rmdir initmountdir
          xz init
          [/CODE]

          I get a kernel panic 😄 when I try to enter in debug mode

          Regards,
          Ch3i.

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Dec 8, 2014, 3:37 PM

            when recompressing the init try:

            [code]xz -C crc32 init[/code]

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • C
              ch3i Moderator
              last edited by Dec 8, 2014, 3:52 PM

              [quote=“Tom Elliott, post: 39736, member: 7271”]when recompressing the init try:

              [code]xz -C crc32 init[/code][/quote]

              It’s good, thank’s a lot !

              1 Reply Last reply Reply Quote 0
              • C
                ch3i Moderator
                last edited by Dec 9, 2014, 9:03 AM

                Hi,

                I create a script in the /bin of the init.xz (fog.iperfu).

                [CODE]#!/bin/sh
                iperf -c ip.of.server.fog[/CODE]

                How can I launch this script ? I create a entry in the iPXE menu, but don’t know how to configure it…

                [IMG]http://img4.hostingpics.net/pics/757277iperfu.png[/IMG]

                Regards,
                Ch3i.

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Dec 9, 2014, 10:28 AM

                  Did you modify the S99fog script so the params called will enable the starting of this script?

                  /etc/init.d/S99fog is the filename. The way the boot menu works:

                  Menu Item: (Label and function caller, in your case, fog.iperfu would become the Menu item you select and there will be a menu entry created for this item.

                  Description just makes a label for your menu item so it won’t display as fog.iperfu, but rather: “Iperf in unicast” on the menu system.

                  Parameters are ipxe parameters to follow, such as login and such:

                  Example:
                  [code]login
                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  param username ${username}
                  param password ${password}
                  param keyreg 1
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme[/code]

                  So any ipxe params can be specified and setup here. The login part is still needing some work (maybe some hooks to help implement direction as well) but should work if you have no params, or very basic parameters needed.

                  The place you’re probably needing things is Boot options. This is where you specify kernel arguments or variable callers for the init to process.

                  Example:

                  [code]mode=iperfu[/code]

                  This (if you setup your S99fog script to do something with the mode) e.g.:
                  /etc/init.d/S99fog
                  [code]elif [ “$mode” == “iperfu” ]; then
                  run=“/bin/fog.iperfu”;
                  after=$afterActionTerm;[/code]

                  Hopefully this helps make sense of it all.

                  It’s by far a “perfect” solution, but it’s better than what we did have. And seeing as you all want to do custom entries, I think it’s okay that it’s somewhat limited by design, and will allow you all the chance to learn how to operate these things fairly smoothly.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  Wayne WorkmanW 1 Reply Last reply Mar 12, 2016, 2:37 AM Reply Quote 0
                  • C
                    ch3i Moderator
                    last edited by Dec 9, 2014, 11:28 AM

                    Thank’s a lot, it’s OK !!!

                    I will close properly, and post a summary after 😉

                    1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman
                      last edited by Aug 19, 2015, 11:28 PM

                      @Tom-Elliott has integrated iPerf and iPerf3 into the current FOG inits.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman @Tom Elliott
                        last edited by Mar 12, 2016, 2:37 AM

                        @Tom-Elliott is iPerf still in the $PATH variable in the inits, and available?

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        213

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project