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

    Image Information

    Scheduled Pinned Locked Moved Solved
    Feature Request
    4
    9
    2.8k
    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.
    • B
      Bill Arlofski
      last edited by

      We had a request from a client regarding the image information listed. It would be useful if the Image list could contain more information including Image size and creation date/time.

      Currently we just created a listimages.php for the client that does this:

      [CODE]
      <?php
      $output = shell_exec(“ls -oghR --time-style=locale /images/*”);
      echo "List generated on ";
      echo date;
      echo “<pre>$output</pre>”;
      ?>
      [/CODE]

      Yeah, it’s not pretty, but it does provide them with the basic information they need.

      Thanks!

      Bill

      –
      Bill Arlofski
      Reverse Polarity, LLC

      Windows is not the answer. Windows is the question. The answer is [B]no[/B].

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        When you say image size do you mean physical space taken on server or size on images drive? I also just added the last deploy time to the image page so that part should be taken care of.

        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
        • B
          Bill Arlofski
          last edited by

          re: physical space on server vs. drive size…

          Maybe provide both if possible? They are gzipped on the server, and getting “size on server” would be easy. However, obtaining and displaying the “actual size of image” would not really be possible unless it was calculated on creation and entered into the database.

          At the risk of stating the obvious: gunzip -t on multi-gigabyte files is quite time and cpu intensive, so it would not be something that could be figured on the fly

          Personally, I think something like “total size on server” would suffice. Or (being more creative) listing each partition and mbr in a smaller font under the image’s basic information might be nice too.

          But getting back to our client’s request, it was really brought up to us in the format of “I have this image listed in FOG, and I am not sure if I actually uploaded the imgae or if this was/is still just a place holder… it would be nice if I could see if the file(s) exists or not and if they do, their creation date/time would also be useful”

          So, really, just some additional basic information would probably be enough.

          Bill

          –
          Bill Arlofski
          Reverse Polarity, LLC

          Windows is not the answer. Windows is the question. The answer is [B]no[/B].

          1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            the “actual size of image” is already displayed in the image management view under the column “Image Size”
            it is the size reported by the cloning software calculated at time of creation.
            so this feature already exists.
            the “size on server” however, would be handy, i agree.

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • B
              BPSTravis Developer
              last edited by

              Tom and I are working on this right now actually. We will see what we can do about adding in size on server while we are at it.

              [SIZE=12px]signature:[/SIZE]
              [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

              1 Reply Last reply Reply Quote 0
              • B
                Bill Arlofski
                last edited by

                Junkhacker, re: “actual size already displayed” I need to get my 0.33b demo server back up before commenting further. Our client is using 0.32 and that is where the request came from because on that version the only columns listed are:

                Image name, Description, Storage Group, Edit

                My apologies for asking for something that is already in upcoming release.

                Bill

                –
                Bill Arlofski
                Reverse Polarity, LLC

                Windows is not the answer. Windows is the question. The answer is [B]no[/B].

                1 Reply Last reply Reply Quote 0
                • JunkhackerJ
                  Junkhacker Developer
                  last edited by

                  i’m sorry for assuming you were running the latest beta. I have little experience with prior versions of fog and keep assuming that people are running the same software i am. 🙂

                  signature:
                  Junkhacker
                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bill Arlofski
                    last edited by

                    Junkhacker Not a problem. It’s really my fault for not being on top of the development before asking questions. 🙂

                    Firing up my 0.33b VM now.

                    Bill

                    –
                    Bill Arlofski
                    Reverse Polarity, LLC

                    Windows is not the answer. Windows is the question. The answer is [B]no[/B].

                    1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      0.33 now has these parameters. The imageSize is now working properly. It also pulls the information from disk and gets the file size in GiB.

                      Thanks.

                      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
                      • 1 / 1
                      • First post
                        Last post

                      213

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project