Page 1 of 1

reconfigure hosts.cfg based services.cfg,hostgroups.cfg,.

Posted: Tue Dec 30, 2014 4:57 am
by MUNIBABU
Hi All,

While taking tar backup of hosts.cfg file , it was converted into binary file like "^@" .i tried to revert it back, but i didn't succeed.Now i decided to reconfigure based on services.cfg,hostsgroups.cfg,commands.cfg.

how can i do it?

can any one help me.


Regards,
Muni.I

Re: reconfigure hosts.cfg based services.cfg,hostgroups.cfg,

Posted: Tue Dec 30, 2014 10:04 am
by tmcdonald
I might be a bit confused here, but the .tar file is just archived and the symbols you see are normal. You need to unarchive it with something like this:

Code: Select all

tar -xvf yourfile.tar

Re: reconfigure hosts.cfg based services.cfg,hostgroups.cfg,

Posted: Tue Dec 30, 2014 1:40 pm
by MUNIBABU
"I might be a bit confused here, but the .tar file is just archived and the symbols you see are normal. You need to unarchive it with something like this"

tar -xvf yourfile.tar

thanks for reply

i tried the above command still hosts.cfg file is in binary format.

any how i reconfigured hosts.cfg file successfully with the help of objects.cache file.


Regards,
Muni.I

Re: reconfigure hosts.cfg based services.cfg,hostgroups.cfg,

Posted: Tue Dec 30, 2014 2:52 pm
by abrist
Was it a zipped as well as tarred?
Run "file" on the untarred file:

Code: Select all

file <archive>