SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


netappsyslog
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

netappsyslog [2013/02/02 20:05] (current)
sjoerd created
Line 1: Line 1:
 += NetApp Syslog =
  
 +Configuring syslog on a netapp filer is pretty straight forward, with one catch. You can't edit the /​etc/​syslog.conf file, and that for two reasons:
 +# There is no syslog.conf
 +# There is no editor
 +You can create an empty syslog.conf file however, and while doing that, put in all the required configuration. So first step is looking at the current sample file so you can create the syslog.conf from that:
 +
 +<​code>​
 +filer1> rdfile /​etc/​syslog.conf.sample
 +# $Id: //​depot/​prod/​ontap/​R7.3.4x/​files/​syslog.conf.sample#​1 $
 +# Copyright (c) 1994-1996 Network Appliance.
 +# All rights reserved.
 +# Sample syslog.conf file.  Copy to /​etc/​syslog.conf to use.
 +# You must use TABS for separators between fields.
 +
 +# Log messages of priority info or higher to the console and to /​etc/​messages
 +*.info ​                                 /​dev/​console
 +*.info ​                                 /​etc/​messages
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to a remote host, e.g. adminhost
 +# *.err;​kern.* ​                         @adminhost
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to the local7 facility of the
 +# syslogd on a remote host, e.g. adminhost.
 +# *.err;​kern.* ​                         local7.*@adminhost
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to a remote host, e.g. adminhost,
 +# at priority debug.
 +# *.err;​kern.* ​                         *.debug@adminhost
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to the local5 facility of the
 +# syslogd on a remote host, e.g. adminhost, at priority info.
 +# *.err;​kern.* ​                         local5.info@adminhost
 +</​code>​
 +
 +Now that we have the original file we'll recreate the file:
 +<​code>​
 +filer1> wrfile /​etc/​syslog.conf
 +
 +</​code>​
 +> Notice that the file is empty.
 +
 +Fill in all the original information and an extra line for your syslog server:
 +<​code>​
 +# $Id: //​depot/​prod/​ontap/​R7.3.4x/​files/​syslog.conf.sample#​1 $
 +# Copyright (c) 1994-1996 Network Appliance.
 +# All rights reserved.
 +# Sample syslog.conf file.  Copy to /​etc/​syslog.conf to use.
 +# You must use TABS for separators between fields.
 +
 +# Log messages of priority info or higher to the console and to /​etc/​messages
 +*.info ​                                 /​dev/​console
 +*.info ​                                 /​etc/​messages
 +*.info ​                                 @10.10.5.14
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to a remote host, e.g. adminhost
 +# *.err;​kern.* ​                         @adminhost
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to the local7 facility of the
 +# syslogd on a remote host, e.g. adminhost.
 +# *.err;​kern.* ​                         local7.*@adminhost
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to a remote host, e.g. adminhost,
 +# at priority debug.
 +# *.err;​kern.* ​                         *.debug@adminhost
 +
 +# Edit and uncomment following line to log all messages of priority
 +# err or higher and all kernel messages to the local5 facility of the
 +# syslogd on a remote host, e.g. adminhost, at priority info.
 +# *.err;​kern.* ​                         local5.info@adminhost
 +
 +</​code>​
 +> Make sure you leave an empty line at the end. Press <​CTRL>​+C to close the editor. Check the file when you're done with the rdfile command.
 +\\
 +You should, btw, see a line like this when you're done:
 +<​code>​
 +filer1> Thu May  5 14:31:28 CEST [filer1: kern.syslogd.restarted:​info]:​ syslogd: Restarted.
 +</​code>​
 +
 += Preferred File =
 +This is the file I always use which I find the most convenient to work with:
 +<​code>​
 +# Set the alert level for the console
 +*.err                                   /​dev/​console
 +# Set the alert level for the local messages file
 +*.info ​                                 /​etc/​messages
 +# Set the alert level for the syslog server
 +*.info ​                                 @10.10.5.14
 +
 +</​code>​
 +
 +{{tag>​hardware syslog netapp}} ​
netappsyslog.txt ยท Last modified: 2013/02/02 20:05 by sjoerd