Grokbase
Topics Posts Groups | in
x
[ help ]

kickstart post section

View TopicPrint | Flat  Thread  Threaded
1) Jerry Geis Is there a way in the %post section of install to continue to have the VT3 logging but also log...
| +1 vote (Anchor)
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Is there a way in the %post section of install to continue to have the
VT3 logging but also
log that to a file. Somehow using tee perhaps?

I have found --log=/tmp/post-install.log but then that shows nothing on VT3.
I would like to have both if possible. Log to VT and a file.

THanks,

Jerry
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
2) nate Kickstart in RHEL5/CentOS 5 you can do this %post do your stuff here )...
| +1 vote (Anchor)
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Jerry Geis wrote:
> Is there a way in the %post section of install to continue to have the
> VT3 logging but also
> log that to a file. Somehow using tee perhaps?
>
> I have found --log=/tmp/post-install.log but then that shows nothing on VT3.
> I would like to have both if possible. Log to VT and a file.

Kickstart in RHEL5/CentOS 5 you can do this

%post
(
do your stuff here
) 1>/root/kickstart-post-install.log 2>&1


Not sure if older versions of RHEL/CentOS support that.

nate

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
3) Jerry Geis Nate, I tried the above suggestion and it did not have the desired effect. Everything gets logged...
| +1 vote (Anchor)
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Jerry Geis wrote:
> Is there a way in the %post section of install to continue to have the
> VT3 logging but also
> log that to a file. Somehow using tee perhaps?
>
> I have found --log=/tmp/post-install.log but then that shows nothing
> on VT3.
> I would like to have both if possible. Log to VT and a file.
>
> THanks,
>
> Jerry
>

>Kickstart in RHEL5/CentOS 5 you can do this
>
>%post
>(
>do your stuff here
>) 1>/root/kickstart-post-install.log 2>&1


>Not sure if older versions of RHEL/CentOS support that.

>nate


Nate,

I tried the above suggestion and it did not have the desired effect.
Everything gets logged to log file. I was hoping for a way
to log to the file and also still see it on the screen also.

Is there a way to do that?

Jerry



_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
4) Alfred von Campe Have you tried something like this: %post do your stuff here ) 2>&1 | tee post-install.log...
| +1 vote (Anchor)
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> I tried the above suggestion and it did not have the desired effect.
> Everything gets logged to log file. I was hoping for a way to log
> to the file and also still see it on the screen also.

Have you tried something like this:

%post
(
do your stuff here
) 2>&1 | tee post-install.log



_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
5) nate As another poster noted you can use tee, which should do the job. For my systems I have the server...
| +1 vote (Anchor)
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Jerry Geis wrote:

> I tried the above suggestion and it did not have the desired effect.
> Everything gets logged to log file. I was hoping for a way
> to log to the file and also still see it on the screen also.
>
> Is there a way to do that?

As another poster noted you can use tee, which should do the job.

For my systems I have the server email me upon initial reboot
among other things the contents of the post-install for review.

nate

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
6) Jerry Geis It looks like this: %post do your stuff here ) 2>&1 | tee /root/post-install.log works except for 1...
| +1 vote (Anchor)
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Jerry Geis wrote:
> Jerry Geis wrote:
>> Is there a way in the %post section of install to continue to have
>> the VT3 logging but also
>> log that to a file. Somehow using tee perhaps?
>>
>> I have found --log=/tmp/post-install.log but then that shows nothing
>> on VT3.
>> I would like to have both if possible. Log to VT and a file.
>>
>> THanks,
>>
>> Jerry
>>
>
>> Kickstart in RHEL5/CentOS 5 you can do this
>>
>> %post
>> (
>> do your stuff here
>> ) 1>/root/kickstart-post-install.log 2>&1
>
>
>> Not sure if older versions of RHEL/CentOS support that.
>
>> nate
>
>
> Nate,
>
> I tried the above suggestion and it did not have the desired effect.
> Everything gets logged to log file. I was hoping for a way to log to
> the file and also still see it on the screen also.
>
> Is there a way to do that?
>
> Jerry
>
>
>
>

It looks like this:
%post
(
do your stuff here
)  2>&1 | tee /root/post-install.log

works except for 1 item.
I do a yum udpate in the post section and NONE of the data
that gets printed during the yum update was logged.
Everything else was logged just fine.

Any idea there?

Jerry

>

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
spacer
View TopicPrint | Flat  Thread  Threaded
Home > Groups > CentOS > kickstart post section (6 posts)