Tags

aix HMC VIOS gpfs AIX6.1 hdlm LPAR Multibos dlnkmgr mmcrnsd Clusterware chuser mksysb mmadddisk CRS Filesystem IBM AIX Lun Nim Oracle RAC OracleRac chdev find multibos -R oprocd oracle /etc/security/limits /etc/syslog.conf Css DLPAR Grid HBA Hitachi HitachiHDLM IVM Io Npiv Oracle Clusterware Parallel File System Rac SAS SSH San Storage Update TL Update Vios Wwpn backup vios boot chfs chpasswd chps crfs crsd evmd extendvg histsize instfix lsdev lspath mkvdev mmchdisk mmcrfs mmdelnsd mmlsfs mmlsnsd mmmount mmrestripefs mmrpldisk mmsdrfs ocssd pwdadm restore rmdev swap syslog tar upgrade %iused /etc/hosts /etc/resolv.conf 2.1.22 3.4.0.1 ADMIN HP ASO Admin HPUX Aix Movies Aix Question Aix TCP stack Aix Update Aix Videos Tutorial Aix command Aix hottest Aix tips Aix tutorial Aixpert Backing Up Vios Backup Ethernet Backup and Restore Burleson Certified Creatingapair DNS DinamicLinkManager Ethernet adapter in aix Free Education GPFSV3.1 Gpfs 3.2 HACMP HEA HP UX HP administracion HP administration HPUX HSNM2Cli Hardware HitachiArrayStorage HitachiReplicationAMS2100 IP Ipvirtuales Ive LHEA Lmon Mandamientos TI Maximum allocation for logical volume Migrar vSphere 4.1 a 5.1 Mirroring Missing paths N_port Id Network Next Vios Nfs Npiv configuration Npiv setup Ntp Offline Online Operating system Oracle Rac 11g OracleCluster OracleGridControl PATH Package Mangement PasswordExpired Performance PermitRootLogin Power Vm ProfessionalCertification RAC 10 RMC RSCT Rbac Re-balancing Replacegpfsdisk Rid RoleBasedAccessControl Rsync SNMGuiinstallation SSD SSD in AIX SSP Setuid Solid State Drive Striping System System ADministrator skill SystemAdministration SystemAdministrator TCPIP TL Telnet Tips Unix VULNERABILITY Vio Server Vios Advisor Vios Command Vios New Vios Tips Vip Windows 2008R2 Wwn Zoning actualizar la HMC aix 6.1 alt_disk_install altadisponibilidad archive a directory auluref aurgref authentication auunitadd backgroundprocess backup bash boot problems bootinfo bootinfo -r bootlis bootlist bosboot cd/dvd cdrom cfgmgr cfgsvc chlv chvg chvg -g rootvg clonar connection crsctl daemon datafile default paging deletingapair diag dlnkmgrview-lu du -kx el340 to el350 emctl errlog error paths errpt evm extendlv faq hmc fijar password fileset filesets filesystem root full find / -xdev forced-commands-only fsck ftp ftp aix unsuccessful_login_count getupgfiles gpfs 3.4.0.0 gpfs 3.4.0.1 gpfs 3.4.0.7 grow your rootvg hd6 hitachistorage hmc reports hmc update hscroot ifconfig importvg inetd.conf install gpfs installp inutoc isos jfs kdb kern lck ldap leasblocksalgoritmforloadbalancing linux lmd lms loadbalancing log logger loopmount lpar hmcshutdown lpar information lparstat lparstat -i lsmap lsnim lspartition lsps -a lsrsrc -l lssrc lssw lsvg rootvg maintenance mode memory micro-partitioning migration gpfs mirrovg mkdev mkdvd mkfs mklv mkps mkramdisk mkvt mmchconfig mmchconfig 6027-1371 mmchfs mmdelcluster-a mmdelfs mmdf mmfs.log.latest mmgetstate mmlsdisk mmlsnsd-F mmlspv mmumount mount mount iso image multibos -RX multibos -Xac multibos -sX name news num_cmd_elems ons oracle vs sqlserver oslevel -s paginación paging paging space parent passwd passwords paths pendingioblock performanceproblems perl preguntas procesosbackground ps -ef racg racgimon ram disk re-synchonizeapair realmem repair filesystem resource allocated restore vios restoringtheprimaryvolumefromasecondaryvolume resume rmcdomainstatus rmpath rmuser rmvdev rootvg rootvg backup rotate server sharedprocessor shrink skill TI smit update_all snapshot snmp snmpdv3 splittingapair spot sqlserver srvctl srvctl modify database ssh with forced commands sshd_config start startrac startsnmen.bat startsrc stop stoprac sudo suspend svmon swapvg syslog.conf syslogd syslogd.conf tutorial aix tutorial hmc umask update network hmc updhmc upgrade firmware upgrade nodes in gpfs upgrade steps user v7000 videos online aix viosbr virtual ethernet virtualizacion de FC vlan vmware xargs xdev xntpd

miércoles, 14 de julio de 2010

Configuring the Syslog Server AIX.

Configuring the Syslog Server AIX.
--------------------------------------------
This configuration example will be using " *.debug " which will log everything on the system.
#vi /etc/syslog.conf

*.debug /tmp/syslog.out rotate size 100k files 4

This entry will rotate the syslog.out file when it reaches 100k and will keep 4 files in the rotation.

Save the /etc/syslog.conf file and touch /tmp/syslog.out

# touch /tmp/syslog.out

#refresh -s syslogd
0513-095 The request for subsystem refresh was completed successfully.

NOTE: The syslogd daemon has configuration flags -r and -R that when used will not allow
the syslogd daemon to accept remote logging from clients.

-r Suppresses logging of messages received from remote hosts.
-R When specified, disables the facility to receive messages from the network using the internet domain socket.

Make sure these flags are not set when starting the daemon. It can be checked with:

# ps -ef |grep syslogd
root 569406 200806 0 Dec 22 - 0:01 /usr/sbin/syslogd -r

If any of these flags are running, then you must stop syslogd, clear out the entries from ODM and restart the daemon.

#stopsrc -s syslogd
#chssys -s syslogd -a ""
#startsrc -s syslogd

The -r flag should not show up.
#ps -ef |grep syslogd
root 569406 200806 0 Dec 22 - 0:01 /usr/sbin/syslogd

NOTE: The syslogd daemon listens on port 514, if there is a firewall in between, make sure this port is opened.

Configuring the Syslog Client.
-------------------------------------------
This configuration example will be using " *.debug " which will log everything on the system.
#vi /etc/syslog.conf

*.debug @bones.austin.ibm.com

This entry will forward any information logged by " *.debug " to the Syslog Server bones.austin.ibm.com.

Save the /tmp/syslog.conf file and refresh the syslogd daemon.

# refresh -s syslogd
0513-095 The request for subsystem refresh was completed successfully.

To test the setup we can use the logger command.

# logger "This is a test"

You should see logged message in /tmp/syslog.out file on the Syslog Server bones.

To have better control over syslogd and its' logs, please refer to the man pages for further information.