2012-03-27から1日間の記事一覧

vyatta のconfig をcommit時にscpでremote serverに保存する

save , system config-management commit-archive location でftpは出来るけど、scpすると失敗してfailedになる。 # save ftp://vyatta:vyattapass@192.168.0.1/config.boot Saving configuration to 'ftp://vyatta:vyattapass@192.168.0.1/config.boot'... …

rsyslog のtemplate を使ってログファイルを日付、ホスト別に生成

でら便利 http://www.rsyslog.com/doc/rsyslog_conf_templates.html http://www.rsyslog.com/doc/property_replacer.html http://www.rsyslog.com/doc/rsyslog_conf_actions.html $template vyattafilename1, "/var/log/vyatta/%$hostname$%/%$year%%$month%…

rsyslog でファイルのownerとpermission を変更する

rsyslog.conf $DirCreateMode 0750 $FileCreateMode 0640 $DirGroup wheel $FileGroup wheelRHEL系のrpmでinstallされたrsyslogの場合、/etc/init.d/rsyslog のstartの中で"umask 077" が設定されているため、DirCreateMode, FileCreateMode を設定してもuma…