05-20-2008
Send Solaris syslogmessages to remote syslogserver on local7
Hi,
I have a syslogserver setup that is working prefectly.
I have defined that all Core switches logs should be sent to local0
I have defined that all Access switches logs should be sent to local1
I have defined that all Firewall logs should be sent to local2
Now I want our infrastructure servers (Solaris 9&10) to send their syslogmessages to the syslogserver on local7 so I easily can seperate them.
I have googles alot but haven't been able to find anything.
Cheers!
/X
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am analyzing snoop output and want to send "Hello world" to a remote system. I want to see if the message received is encrypted or not.
can I use ping to send a text message?
like ping "helloworld" <IP Addr>
Please help.
Thank you (5 Replies)
Discussion started by: rakeshou
5 Replies
2. UNIX for Dummies Questions & Answers
We have 2 UNIX machines,
1.HP-UX 11i where oracle database running on it.
2.AIX 5 with Ultrium LTO3 tape drive connected.
My query is, i want to send oracle database archive files from HP machine to the tape drive which connected on AIX machine, everyday.
These files should be appended.
I... (3 Replies)
Discussion started by: yashdbad
3 Replies
3. Shell Programming and Scripting
Hi, I'm wondering if there's a way to send a command periodically to remote server through a script.
Right now I have this:
keepLooping=1
ssh user@domain
while (( keepLooping == 1 ))
do
echo a
sleep 3
done
but what this does is ssh to the server, and only when the connection is... (2 Replies)
Discussion started by: sayeo
2 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
I rent two servers hosted by the same provider: OVH.
On server1, I use the mail command to send alert emails to my personal address and it works fine.
On server2, which is newly instaled, I tried the following command and got this answer:
Is there any other package that I need to... (2 Replies)
Discussion started by: chebarbudo
2 Replies
5. UNIX for Advanced & Expert Users
Hi All,
I have a requirement to send and email of body html with an attachment.
concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail.
my command to send HTML body is as below:
export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
6. Shell Programming and Scripting
Hi there
I found the Command to send commands to other servers like:
sv01> ssh user@sv02 'ps -ef'
But I cant use Variables from a script i want to execute on another server like:
sv01> ssh user@sv02 'cd $SCRIPTHOME'
although the variable is set on sv01.
How can I run commands on sv02 with... (2 Replies)
Discussion started by: DarkSwiss
2 Replies
7. Linux
hey guys,
I've done some searching and other than winexe I haven't been able to find a way to send remote commands to a windows machine. The problem I get is with winexe whenever you send the process to the background in a script, I get the following error. :wall: Any help is appreciated!
... (0 Replies)
Discussion started by: terrell
0 Replies
8. UNIX for Dummies Questions & Answers
Greetings,
basically what I want to do is take the standard error from a cron file and store it on a file in a remote host (from Solaris to Linux). I want to create a cron file to do this everyday or put it on a script that will send it everyday to the other system (that doesnt matter). Any ideas... (2 Replies)
Discussion started by: picolin
2 Replies
9. Red Hat
Assuming i have /usr/local/psa/var/log/mail.log on client server.
What are the configuration on rsyslog (server) and rsyslog (client)?
on rsyslog (server) i would also want it to be put on a separate log file for example: /var/log/client-server-hostname01/mail.log ,... (2 Replies)
Discussion started by: timmywong
2 Replies
10. Shell Programming and Scripting
I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0.
Run remote command to read a file and grep for test word.
if test word is in the file, send email.
if not, do nothing
also possible to ssh to multiple... (3 Replies)
Discussion started by: jaapar
3 Replies
LEARN ABOUT FREEBSD
logger
LOGGER(1) BSD General Commands Manual LOGGER(1)
NAME
logger -- make entries in the system log
SYNOPSIS
logger [-46Ais] [-f file] [-h host] [-P port] [-p pri] [-t tag] [message ...]
DESCRIPTION
The logger utility provides a shell command interface to the syslog(3) system log module.
The following options are available:
-4 Force logger to use IPv4 addresses only.
-6 Force logger to use IPv6 addresses only.
-A By default, logger tries to send the message to only one address, even if the host has more than one A or AAAA record. If this
option is specified, logger tries to send the message to all addresses.
-i Log the process id of the logger process with each line.
-s Log the message to standard error, as well as the system log.
-f file
Read the contents of the specified file into syslog.
-h host
Send the message to the remote system host instead of logging it locally.
-P port
Send the message to the specified port number on a remote system, which can be specified as a service name or as a decimal number.
The default is ``syslog''. If an unknown service name is used, logger prints a warning and falls back to port 514.
-p pri Enter the message with the specified priority. The priority may be specified numerically or as a ``facility.level'' pair. For exam-
ple, ``-p local3.info'' logs the message(s) as informational level in the local3 facility. The default is ``user.notice.''
-t tag Mark every line in the log with the specified tag rather than the default of current login name.
message
Write the message to log; if not specified, and the -f flag is not provided, standard input is logged.
EXIT STATUS
The logger utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
logger System rebooted
logger -p local0.notice -t HOSTIDM -f /dev/idmc
SEE ALSO
syslog(3), syslogd(8)
STANDARDS
The logger command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
BSD
March 4, 2014 BSD