2012年6月27日 星期三

Switch - DLINK DGS-3427

DGS-3427:

Display all port network utilization status [using debug or traffic troubleshooting ]
#show utilization ports

Display port error status
#show error ports
ex: # show error ports 2

Clear port error counter
#clear counters ports
ex: # clear counters ports 21

Display MAC
# show fdb

Config VLAN
#config vlan add tag  

2012年6月24日 星期日

Clamav freshclam doesn't update


Clamav freshclam doesn't update  Error message as below

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).



Modify "/etc/cron.daily/freshclam
==============================

#!/bin/sh

### A simple update script for the clamav virus database.
### This could as well be replaced by a SysV script.

### fix log file if needed
LOG_FILE="/var/log/clamav/freshclam.log"
if [ ! -f "$LOG_FILE" ]; then
    touch "$LOG_FILE"
    chmod 644 "$LOG_FILE"
   // modify chown clam.clam ==> clamav.clamav
    chown clamav.clamav "$LOG_FILE"
fi

/usr/bin/freshclam \
    --quiet \
    --datadir="/var/lib/clamav" \
    --log="$LOG_FILE"