2150 CHAPTER 119: INFORMATION CENTER CONFIGURATION2 Configuring the log hostThe following configurations were performed on SunOS 4.0 which has similarconfigurations to the Unix operating systems implemented by other vendors.Step 1: issue the following commands as a root user.# mkdir /var/log/MyDevice# touch /var/log/MyDevice/informationStep 2: Edit the file /etc/syslog.conf as a root user and add the followingselector/action pair.# MyDevice configuration messageslocal4.info /var/log/MyDevice/informationn Be aware of the following issues while editing the /etc/syslog.conf file■ Comments must be on a separate line and must begin with the # sign.■ The selector/action pair must be separated with a tab key, rather than a space.■ No redundant spaces are allowed in the file name.■ The device name and the accepted severity of log information specified by the/etc/syslog.conf file must be identical to those configured on the device usingthe info-center loghost or info-center source command; otherwise the loginformation may not be output properly to the log host.Step three: after the log file information has been created and the configurationfile /etc/syslog.conf has been modified, ensure that the configuration file/etc/syslog.conf is reread:# ps -ae | grep syslogd147# kill -HUP 147After the above configurations, the system will be able to keep log information inthe related file.Outputting LogInformation to a LinuxLog HostNetwork requirements■ Send log information to a Linux log host with an IP address of 1.2.0.1/16;■ Log information with severity higher than informational will be output to thelog host;■ All modules can output log information.Network diagramFigure 634 Network diagram for outputting log information to a Linux log hostInternetDevice PC1.1.0.1/16 1.2.0.1/16