Export Full Host list



  • I am having issues exporting the host list. I found this link ([url]http://fogproject.org/forum/threads/mass-export-host-information.902/[/url]) showing the command information. I got the user and password information from the FOG Settings for mySQL but there is no information being saved, or error messages being returned.

    The commands I followed are these:

    [FONT=Consolas]#mysqldump -u root -p[password] fog hosts > hosts.sql[/FONT]
    [FONT=Consolas]Where does the file actually go to? I checked the root directory but found nothing. I modified the directory in the output to point to my home directory but it did not give me any results.[/FONT]


  • Senior Developer

    The file is whereever you were in.

    My guess is you in the Root’s home directory: /root/

    To find the file on your system go in to the root of the drive with:
    [code]cd /[/code]

    Then run the command:
    [code]find . -name hosts.sql[/code]

    It will report the results of the file, if it finds it, as something like:
    /home/ccmiens/hosts.sql
    /root/hosts.sql

    My guess is that you opened a terminal and performed the command, so you can also check in
    [code]cd /root/
    ls[/code]


Log in to reply
 

484
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.