跳至主要内容

Mark

在021上的编译用/usr/local/bin/make,而不用本机的make.
Solaris上网卡速率:
1.察看网卡相关参数ndd -get /dev/bge0 察看当前参数的值比如"ndd -get /dev/bge0 adv_autoneg_cap"察看solaris中的网卡自适应是否开启。如果不知道参数名称可以使用指令"ndd -get /dev/bge0 \?" 察看所有的参数,其中read only的参数是不能修改的。
2.修改网卡参数对应的就是ndd -set /dev/bge0 。比如关闭自适应" ndd -set /dev/bge0 adv_1000fdx_cap 0",关闭后网卡会中断,那就需要手工修改下面个参数"adv_1000fdx_cap,adv_1000hdx_cap,adv_100T4_cap,adv_100fdx_cap,adv_100hdx_cap,adv_10fdx_cap,adv_10hdx_cap",这些参数对应的就是1000/100/10M的速率和fdx/hdx全/半双工。还可以查看网络是否连通"ndd -get /dev/bge0 link_status" ,当前网卡传输速率"ndd -get /dev/bge0 link_speed"等。当然,网卡的传输速率还与交换机端口,网线规格是否支持等有关,设置的不对网络就中断掉了

bash-3.00$ more S99ndd
#!/sbin/sh
/usr/sbin/ndd -set /dev/bge0 adv_autoneg_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_1000fdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_1000hdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_100fdx_cap 1
/usr/sbin/ndd -set /dev/bge0 adv_100hdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_10fdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_10hdx_cap 0


在机器上的编译,$LD_LIBRARY_PATH和$PATH必须定义好

评论

此博客中的热门博文

Python学习笔记20100117

映射list   Dictionary 是用{}. list 是一那个[]. turple是用() 当你定义过dictionary后,你可以使用d.keys(), d.values(),d.items()将定义后的时候分别显示出来 当然可以将list里的值加减乘除,也可以如一般的定义直接重新复制这个list. 链接与分割字符串的 li=";", join(li) 则显示的就是 分隔符为;的数 如果使用li=li.split(";")则将刚刚;的分隔符删除,而split里也可定义域,如li.split(";",1)   自省 <---这是啥 之前在使用的时候发觉有些书本上的模块不能调用,很多是py脚本定义过的函数。 下载该脚本s,然后上传至指定位置。 >>>import sys >>>sys.path >>>sys.path.append("绝对位置")然后就能调用这些脚本和参数了。 删除 >>>sys.path.pop() 定义一个参数是 def info(test, test1=10.test2=12): info是函数名,test是必备参数,因为没有定义值,test1和test2是可选参数,定义了初始值   以上是外部函数的调用,下面转到内部函数 内部函数有type,str,dir及其他   ---type 返回任意字符的类型,模块也可以。types模块 >>> type(1) <type 'int'> >>> li=[] >>> type(li) <type 'list'> >>> import odbchelper >>> type(odbchelper) <type 'module'> >>> type(sys) <type 'module'> >>> import types ...

Setagaya park

  We visited Setagaya Park (世田谷区) yesterday. This park reminds us when we in Europe, which has a fancy fountain in the middle, and free entrance. People just laid down on the grass, enjoy the day time they can waste. people who have kids together,  play all different kinds of sports. you really can't image whether you are in Europe or  Japan. I would prefer to use a Bus instead of the metro, the metro is fast, but you only can see the dark, light, people sit or stand as Sardine, without any emotion. but on the bus, you can see the traffic, the shop, everything on the road. When we on our way to the park, we stop by a good chocolate shop named " craft chocolate works ",  this is a very good place to have ice cream, you probably can choose half & half, you can enjoy the feeling when you smell the chocolate smell and eat with it.  or you can enjoy beer or cake in "globe antiques (ザ グローブアン ティ ークス) .   also, we checked the Blue Bottle Coffee Sangenjaya ...