netstat -anp | grep “`
man
2011-06-01
发表者 Venus
暂无评论
netstat -anp | grep “`
man
2011-05-27
发表者 Venus
暂无评论
#! /bin/bash
#******************************************************************************
# Copyright(c) 1999 – 2008 Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St – Fifth Floor, Boston, MA 02110-1301 USA.
#
# Contact Information:
# Linux NICS <linux.nics@intel.com>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#******************************************************************************
#Determine how many Ethernet & Network controllers are installed in the system
TotalControllers=`lspci | grep -c -i ‘Ethernet Controller\|Network Controller’`
temp=`lspci | grep -i ‘Ethernet Controller\|Network Controller’|cut -f1 -d ” “`
#Define two arrays for storing IPPorts
declare -a IOPorts1
declare -a IOPorts2
#Populate IOPorts1 with bus info from lspci. Populate IoPorts2 with bus info
#from ethtool.
for (( counter=0 ; counter < $TotalControllers ; counter++ ))
do
offset=$(($counter+1))
IOPorts1[$counter]=`echo $temp|cut -f$offset -d” “`
if (ethtool -i eth$counter) &> /dev/null; then
IOPorts2[$counter]=`ethtool -i eth$counter|grep ‘bus-info’|cut -f3- -d :`
fi
done
#Loop through both arrays and determine if there’s a match in IOPort1 & IOPort2. If so
#then the driver is loaded, and write to screen all the related information. If there
#is no match then there isn’t a driver loaded for that device and write to screen only
#the information available from lspci
for ((counter=0 ; counter < $TotalControllers ; counter++))
do
Match=0
for ((counter1=0 ; counter1 < $TotalControllers; counter1++))
do
if [ “${IOPorts1[$counter]}” = “${IOPorts2[$counter1]}” ]; then
Match=1
DeviceID=`lspci -nn | grep ${IOPorts2[$counter1]} |cut -f3- -d”[“| cut -c 1-9`
EthernetController=`lspci -v |grep ${IOPorts2[$counter1]} | cut -f4- -d” “|cut -f1 -d”(“`
AdapterName=`lspci -v | grep ${IOPorts2[$counter1]} -A 1 | grep ‘Subsystem’|cut -f2- -d” “`
DriverName=`ethtool -i eth$counter1 | grep -i ‘driver’ | cut -f2 -d” “`
DriverVersion=`ethtool -i eth$counter1 | grep -m 1 -i ‘version’| cut -f2 -d” “`
echo “eth$counter1 : ${IOPorts2[$counter1]}”
echo ” Make/Model = $AdapterName”
echo ” Ethernet controller = $EthernetController”
echo ” VenID:DevID = $DeviceID”
echo ” Driver name = $DriverName”
echo ” Driver version = $DriverVersion”
fi
done
if [ “$Match” = “0” ] ; then
DeviceID=`lspci -nn | grep ${IOPorts1[$counter]} |cut -f3- -d”[“| cut -c 1-9`
EthernetController=`lspci -v |grep ${IOPorts1[$counter]} | cut -f4- -d” “|cut -f1 -d”(“`
AdapterName=`lspci -v | grep ${IOPorts1[$counter]} -A 1 | grep ‘Subsystem’|cut -f2- -d” “`
echo “: ${IOPorts1[$counter]}”
echo ” Make/Model = $AdapterName”
echo ” Ethernet controller = $EthernetController”
echo ” VenID:DevID = $DeviceID”
echo ” Driver name = No driver loaded”
echo ” Driver version = No driver loaded”
fi
done
exit 0
2011-05-27
发表者 Venus
暂无评论
今天在“新建维护计划”时,报错:
创建维护计划失败。
其他信息:
从 ICLassFactory 为CLSID为{17BCA6E8-A95D-497E-B2F9-AF6AA475916F}的COM组件创建实例失败,原因是出现以后错误:
c001f011.(Microsoft.SqlServer.ManagedDTS)
从ICassFactory为CLSID为{17BCA6E8-A950-497E-B2F9-AF6AA475916F}的COM组件创建实例失败,原因是出现以下错误:
c001f011.(Microsoft.Server.manageDTS)
解决方法:
C:\Users\Administrator>c:\windows\system32\regsvr32 “c:\Program Files\Microsoft
SQL Server\100\DTS\Binn\dts.dll”
C:\Users\Administrator>
C:\Users\Administrator>c:\windows\syswow64\regsvr32 “c:\Program Files (x86)\Micr
osoft SQL Server\100\DTS\Binn\dts.dll”
然后重新启动MSMS。(Microsoft SQL Server Management Studio)
2011-05-27
发表者 Venus
暂无评论
2011-05-26
发表者 Venus
暂无评论
因为emos1.5默认的extmail版本,在通讯录的“组”中,姓名如果是中文的话,选中组,发邮件时,变为乱码,原因是extmail中的一个bug,只好升级到extmail1.2,在虚拟机下测试访问时遇到错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
检查日志:
[root@emos extmail]# vi /var/log/httpd/error_log
[Thu May 26 19:35:04 2011] [error] [client 1.1.1.1] Premature end of script headers: index.cgi
[Thu May 26 19:35:05 2011] [error] [client 1.1.1.1] suexec policy violation: see suexec log for more details
提示我们检查suexec日志
[root@emos extmail]# vi /var/log/httpd/suexec.log
[2011-05-26 19:34:09]: uid: (1000/vuser) gid: (1000/1000) cmd: index.cgi
[2011-05-26 19:34:09]: file has no execute permission: (/var/www/extsuite/extmail/cgi/index.cgi)
执行:
[root@emos extmail]# chmod -R 755 cgi/
再次访问,ok了~ (不要忘记cgi 和tmp属主属组皆为vuser vgroup,否则访问时会报另一个错误)