1820882 Members
3569 Online
109628 Solutions
New Discussion юеВ

console

 
subhashni
Regular Advisor

console

what should i do to redirect console messages to different server.
Thanks
unix4me
9 REPLIES 9
Sundar_7
Honored Contributor

Re: console

Edit /etc/syslog.conf and enter

local4.notice @server

now any message from the local4 subsystem with the level of notice wil go to server. In server
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: console

Oops ! sorry I did nt notice you have specifically mentioned console messages.

# vi /etc/syslog.conf
*.info,*.emerg,*.notice,*.alert /dev/console
*.info,*.emerg,*.notice,*.alert @server

# kil -1


Learn What to do ,How to do and more importantly When to do ?
Sridhar Bhaskarla
Honored Contributor

Re: console

Hi,

Edit /etc/syslog.conf file and add

*.alert @other_host

Then you should see all the alert messages that were going to console now also go to the syslog.log of other_host.

This doesn't mean you get all the messages of the console into the syslog like initial startup messages, shutdown messages. There isn't a way to do it unless you physically connect the console port to the other server with proper cable and use kermit.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
subhashni
Regular Advisor

Re: console

Thanks for the quick reply.
Sundar,
Is this appropriate to redirect to different server like the following.

*.err;kern.notice;auth.notice @server name

Thanks

does it require to restart the syslogd.
tks
unix4me
subhashni
Regular Advisor

Re: console

Sorry,i was late for my last reply.
Thanks anyway
unix4me
subhashni
Regular Advisor

Re: console

Thanks for the replies.
But having a doubt.Do i need to specify a target file with server name
Thanks so much.
I appreciate your help.
tks
unix4me
Sundar_7
Honored Contributor

Re: console

Hi,

Nope u dont have to mention a target file. But you can mention a file in the target server's /etc/syslog.conf.

Node1

local1.notice @node2

In Node2

local1.notice /var/tmp/node1.messages

Again you have to send HUP signal to syslogd..

Thanks,

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: console

Also refer the following link. Has got some useful information for you.

http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Learn What to do ,How to do and more importantly When to do ?
subhashni
Regular Advisor

Re: console

Thanks.Got it :-)



unix4me