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

    Snapin downloads

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    16
    4.2k
    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.
    • Roger SaffleR
      Roger Saffle
      last edited by

      made a simple cmd file that just does an ifconfig and pipes it to a text file
      ipconfig >c:\ip.txt

      file runs fine manually. I am trying to push it out via a snapin. The fog.log show it as downloaded. Then it shows it as starting install, but never does anything after that. I dont think it actually installs. Any ideas?

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

        i assume that this is a .bat file
        make sure that a space or carriage return follows the last command in the file.

        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
        • Roger SaffleR
          Roger Saffle
          last edited by

          yes it is a bat file. It did not have a carriage return. Trying again now.

          1 Reply Last reply Reply Quote 0
          • Roger SaffleR
            Roger Saffle
            last edited by

            I put a carriage return at the end of the file. Same results. Last line says
            Starting Fog Snapin Installation
            and nothing after that.

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

              when you installed the client service, did you “run as administrator” to install it? did you install for all users?

              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
              • Roger SaffleR
                Roger Saffle
                last edited by

                I believe we did both. The client does work to rename the PC and to deploy printers.

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

                  after you edited the file, did you try uploading it with the same name as before? if so, it’s likely that it didn’t upload at all as the the web server doesn’t have rights to overwrite files in that directory.

                  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
                  • Roger SaffleR
                    Roger Saffle
                    last edited by

                    No, I gave it a new name.

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

                      i’m not sure why it’s not working then
                      the following is what i use as a test snapin
                      [CODE]@echo off
                      echo “HELLO I INSTALLED SNAPIN1 ON MY SYSTEM” > C:\installedSnapin1.txt
                      [/CODE]

                      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
                      • Roger SaffleR
                        Roger Saffle
                        last edited by

                        Me either. Does this look right (see attached img) ?

                        also my scrip is simply

                        cd
                        ipconfig /all >c:\ip.txt

                        [url=“/_imported_xf_attachments/1/1197_Capture.JPG?:”]Capture.JPG[/url]

                        1 Reply Last reply Reply Quote 0
                        • Roger SaffleR
                          Roger Saffle
                          last edited by

                          I tried it on my home fog server. Got the same issue. Least I consistently fail. Here is the fog.log
                          [CODE]7/23/2014 11:08 PM FOG::ClientUpdater Client update process complete, exiting…
                          7/23/2014 11:11 PM FOG::SnapinClient Attempting to connect to fog server…
                          7/23/2014 11:11 PM FOG::SnapinClient Module is active…
                          7/23/2014 11:11 PM FOG::SnapinClient Snapin Found:
                          7/23/2014 11:11 PM FOG::SnapinClient ID: 1
                          7/23/2014 11:11 PM FOG::SnapinClient RunWith: c:\windows\system32\cmd.exe
                          7/23/2014 11:11 PM FOG::SnapinClient RunWithArgs:
                          7/23/2014 11:11 PM FOG::SnapinClient Name: IPV1
                          7/23/2014 11:11 PM FOG::SnapinClient Created: 2014-07-24 03:01:34
                          7/23/2014 11:11 PM FOG::SnapinClient Args:
                          7/23/2014 11:11 PM FOG::SnapinClient Reboot: No
                          7/23/2014 11:11 PM FOG::SnapinClient Starting FOG Snapin Download
                          7/23/2014 11:11 PM FOG::SnapinClient Download complete.
                          7/23/2014 11:11 PM FOG::SnapinClient Starting FOG Snapin Installation.[/CODE]

                          1 Reply Last reply Reply Quote 0
                          • Roger SaffleR
                            Roger Saffle
                            last edited by

                            HOLY @#$%@$# I got it to work. i added the /c in the argument parameters. I will try to duplicate tomorrow and report back.

                            1 Reply Last reply Reply Quote 0
                            • Roger SaffleR
                              Roger Saffle
                              last edited by

                              yep have to add the /c in the “snapin run with arguments” box . It is not optional.

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

                                What if you remove the /c argument AND the run with cmd.exe argument?

                                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
                                • Roger SaffleR
                                  Roger Saffle
                                  last edited by

                                  I think it fails with the same above error. I will verify tonite. Thanks again for your time and effort.

                                  1 Reply Last reply Reply Quote 0
                                  • Roger SaffleR
                                    Roger Saffle
                                    last edited by

                                    Tom,
                                    If I left those two fields blank, the snapin seems to run just fine.

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

                                    190

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project