A little tips if you want to view remote console message. It helps and saves my time in my works. This is needed when your server running in run level 3 and has application running.
/dev/vcs1 -> console device file
To view virtual console message, remote login to server and run command below:
# cat /dev/vcs1
10:23:14 server2 1 some message here
10:23:44 server2 1 some message here
10:24:14 server2 1 some message here
I use putty with default window size to give best output.
Next, we can make it easy for us with a script like example below:
#! /bin/sh
cat /dev/vcs1 >> output1
sleep 30
exec /tmp/script1
This script will create a file called output1 and save remote console message.
No comments:
Post a Comment