<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    afunms

    My Software,My Dream—Forge a more perfect NMS product.

    #

    fix a bug

           突然發(fā)現(xiàn)鏈路的接口描述都是vlan,而不是實際的物理口,為了找出出錯的原因,又浪費我?guī)缀跻惶斓臅r間。還好,終于去掉了一個嚴(yán)重的bug。原來fdb表經(jīng)常變化,每次提取的結(jié)果都不一樣,我修改程序,僅在需求時提取fdb表信息,這樣數(shù)據(jù)就比較準(zhǔn)確了。

    posted @ 2007-07-28 21:26 afunms 閱讀(91) | 評論 (0)編輯 收藏

    weekend

    下午跟用戶溝通了一下,得知我們的軟件能自動畫出拓?fù)鋱D,對我們的軟件很感興。

    終于到周末了,這周可真累壞了。但是收獲還是很大,呵呵。

    posted @ 2007-07-27 18:56 afunms| 編輯 收藏

    discovery result

           今天做了四次發(fā)現(xiàn),每次耗時約50分鐘。每次發(fā)現(xiàn)的結(jié)果不同,大概都是55到60臺設(shè)備。還有好些設(shè)備沒有發(fā)現(xiàn),我想是因為沒有開SNMP協(xié)議或者community未知。

           不論怎樣,在發(fā)現(xiàn)過程中,沒有拋出空指針錯誤已經(jīng)讓我很滿意了。
       

    posted @ 2007-07-26 19:14 afunms 閱讀(122) | 評論 (0)編輯 收藏

    Test topo discovery

    今天對發(fā)現(xiàn)程序作了如下改動:
    1、加入IP范圍,限制發(fā)現(xiàn)的范圍,昨天程序跑了兩個小時沒結(jié)束,就是這個原因。因為有的IP是別的城市的。
    2、這里的maipu設(shè)備全是路由,所以遇到maipu設(shè)備默認(rèn)它是路由,就不用再判斷了,加快速度。
    3、修改了對子網(wǎng)的處理。
    4、增加了確認(rèn)鏈路帶寬程序。

    posted @ 2007-07-25 21:45 afunms 閱讀(133) | 評論 (0)編輯 收藏

    測試新產(chǎn)品

    今天到**公安局測試我們的新產(chǎn)品,又遇到安奈特的設(shè)備,拓?fù)浒l(fā)現(xiàn)還是有問題,很郁悶。

    posted @ 2007-07-24 21:04 afunms| 編輯 收藏

    modified discovery algorithm

        I ignored the importance of subnets.I knew a switch can possess many subnets,whereas,
    I did not handle this situation.So the discovery result would be inaccurate.
        Therefore,I modified my discovery algorithm.A switch belongs to many subnets.
    After discovering all devices in the lan,program probes every subnet in order to find
    out all link roads among those switches.
        Additional,I had a fault thought,the gateway must locate on a router,so I excluded
    the router from the subnet.Today,I found the gateway can be also locate on a 3 layer
    switch,and this switch is a member of this subnet.

    posted @ 2007-07-23 14:15 afunms 閱讀(141) | 評論 (0)編輯 收藏

    第一個SOAP程序

    我的第一個SOAP程序,這將成為我研究web service的開始

    public class HelloClient
    {
     public String getName(String name)
        {
            return "你好" + name + ",歡迎來到Web服務(wù)的世界!";
        }
    }


    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    import java.net.URL;

    public class SayHelloClient
    {
        public static void main(String[] args)
        {
            try
            {
                String endpoint = "http://localhost:8080/axis/HelloClient.jws";
                Service service = new Service();
                Call call = (Call) service.createCall();
                call.setOperationName(new QName(endpoint,"getName"));
                call.setTargetEndpointAddress(new URL(endpoint));

                String ret = (String) call.invoke(new Object[]{"zhangsan"});
                System.out.println("return value is:" + ret);
            }
            catch (Exception ex)
            {
                ex.printStackTrace();
            }
        }
    }

    posted @ 2007-07-22 19:50 afunms 閱讀(208) | 評論 (0)編輯 收藏

    The Fight Against Crime

      PETS5  第三課作文題目 (從網(wǎng)上轉(zhuǎn)摘)

    The Fight Against Crime
     Today the crime rate in some of our cities seems to be rising. Many citizens complain about the
    thefts and robberies that take place in their street blocks. Therefore, more and more people are
    appealing to the authorities to take strong measures to reduce the crime rate.
     
     Faced with criminals, different people have different attitudes towards them. Some become so
    frightened that they tend to give up fighting or to turn a blind eye to the criminals. Others, however,
    are brave enough to fight the criminals even at the risk of their own lives. In their eyes, responsibility
    is the most important of all the values that hold honest people together. Without it there can be no
    self-respect, no trust, no law,ultimately, no society. There is no doubt that they set a good example
    for all of us to follow.
        As far as I am concerned, my suggestions are as follows. In the first place, every one of us should
    receive a law education. Secondly, criminals must be punished severely. Finally, it is urgent to set up a
    foundation to reward those who fight criminals. In the way we can stand up to any crime and smash it.

    posted @ 2007-07-04 17:33 afunms 閱讀(703) | 評論 (0)編輯 收藏

    Health or Wealth?

    PETS5  第二課作文題目 (從網(wǎng)上轉(zhuǎn)摘)
    Health or Wealth


    Which is more important, health or wealth? When given this question, different people

    have varied answers. Some insist that health plays a more important role in our life, while

    others see more advantages arising from wealth.

    The first group of people quote the old saying "Health is above wealth" to prove their

    idea. They argue that, on the one hand, a strong person can do almost anything as long as

    he/she tries hard. On the other hand, however, rich people will not be able to enjoy the

    wealth if their days are numbered.

    Moreover,they may think that they can buy everything they like with money.For

    example,beautiful clothes,delicious food,large houses and luxury cars can be afforded.

    Therfore,their life is quite comfortable.Nowadays,many younggirls marry old rich men

    for their money.They belive that they will be happier only with money.However,can they

    be really happy?

    In contrast, the advocates of wealth have such arguments as follows.in their opinion,

    they can do more things includeearning more money with the help of health body.So,

    they spend more time doing exercise and enjoying a health diet.Thus,their life is regular and
    colouful.Firstly, wealthy people will be able to buy more healthful food. Secondly
    , they can
    enjoy better facilities to improve their health. Take my neighbor, Lao
    Wang, as an example.
    He had a heart attack and is in hospital. However, he cannot afford
    the expensive operation,
    which costs as much as 100,000 yuan. Therefore, he has to lie in
    bed hopelessly. If he were
    a rich man, his life could be saved.

    In short, we cann't draw a conclusion easily that which one is important. For one thing, it

    is true that we can do many things when we are very rich, but we can never buy our health

    and healthy relationship with others. For another, we can enjoy a more healthy life with

    money. Thererore, we should try to strike a balance between them and gain wealth with a

    health body.



    posted @ 2007-07-03 17:50 afunms 閱讀(873) | 評論 (0)編輯 收藏

    Studying Abroad or Home

    PETS5  第一課作文題目 (從網(wǎng)上轉(zhuǎn)摘)
    Whether students should be encouraged to study abroad as early as possible

    Nowadays, with the development of science and technology, more and more people want to study abroad.
    There are students from colleges and universities, from the middle schools, from the primary schools, and people
     from all walks of life. What difference does it make between studying abroad and studying home ?
    Though many students are crazy about going abroad to pursue their higher education, I think studying home is
    preferable. For one thing, you don’t have to take foreign language tests such as TOEFL and GRE . This can
    save you a tremendous amount of time, money and effort, allowing much of your energy to be devoted to your
    academic foals. In addition, if you study home ,you can stay with your family and old friends. Meanwhile , while
    studying home ,you can enjoy the kind of intimate friendship and comfortable family atmosphere which you can
    only dream of in a foreign university , where you will be accompanied by your own shadow most of the time.
    For these reasons, pursuing one’s higher education at home is a more realistic and sensible choice.
    In a word, I prefer to study home.

    posted @ 2007-07-02 13:41 afunms 閱讀(728) | 評論 (0)編輯 收藏

    2007讀書(5)

    對于網(wǎng)管軟件開發(fā)人員很實用的一本書。

    posted @ 2007-07-01 11:42 afunms 閱讀(142) | 評論 (0)編輯 收藏

    2007讀書(4)


    進一步了解SNMP。

    posted @ 2007-05-18 14:21 afunms 閱讀(91) | 評論 (0)編輯 收藏

    CDP: Cisco Discovery Protocol

    Cisco Discovery Protocol (CDP) is primarily used to obtain protocol addresses of neighboring devices and discover the platform of those devices. CDP can also be used to show information about the interfaces your router uses. CDP is media- and protocol-independent, and runs on all Cisco-manufactured equipment including routers, bridges, access servers, and switches.

    Use of SNMP with the CDP Management Information Base (MIB) allows network management applications to learn the device type and the SNMP agent address of neighboring devices, and to send SNMP queries to those devices. Cisco Discovery Protocol uses the CISCO-CDP-MIB.

    CDP runs on all media that support Subnetwork Access Protocol (SNAP), including local-area network (LAN), Frame Relay, and Asynchronous Transfer Mode (ATM) physical media. CDP runs over the data link layer only. Therefore, two systems that support different network-layer protocols can learn about each other.

    Each device configured for CDP sends periodic messages, known as advertisements, to a multicast address. Each device advertises at least one address at which it can receive SNMP messages. The advertisements also contain time-to-live, or holdtime, information, which indicates the length of time a receiving device should hold CDP information before discarding it. Each device also listens to the periodic CDP messages sent by others in order to learn about neighboring devices and determine when their interfaces to the media go up or down

    CDP Version-2 (CDPv2), the most recent release of the protocol, provides more intelligent device tracking features. These features include a reporting mechanism which allows for more rapid error tracking, thereby reducing costly downtime. Reported error messages can be sent to the console or to a logging server, and cover instances of unmatching native VLAN IDs (IEEE 802.1Q) on connecting ports, and unmatching port duplex states between connecting devices.


    Protocol Structure - CDP: Cisco DiscoveryProtocol
    CDPv2 show commands can provide detailed output on VLAN Trunking Protocol (VTP) management domain and duplex modes of neighbor devices, CDP-related counters, and VLAN IDs of connecting ports. The following table lists the CDP commands:

    Command

    Purpose

    clear cdp counters

    Resets the traffic counters to zero.

    clear cdp table

    Deletes the CDP table of information about neighbors.

    show cdp

    Displays the interval between transmissions of CDP advertisements, the number of seconds the CDP advertisement is valid for a given port, and the version of the advertisement.

    show cdp entryentry-name [protocol| version]

    Displays information about a specific neighbor. Display can be limited to protocol or version information.

    show cdp interface[type number]

    Displays information about interfaces on which CDP is enabled.

    show cdp neighbors[type number] [detail]

    Displays the type of device that has been discovered, the name of the device, the number and type of the local interface (port), the number of seconds the CDP advertisement is valid for the port, the device type, the device product number, and the port ID. Issuing the detailkeyword displays information on the native VLAN ID, the duplex mode, and the VTP domain name associated with neighbor devices.

    show cdp traffic

    Displays CDP counters, including the number of packets sent and received and checksum errors.

    show debugging

    Displays information about the types of debugging that are enabled for your router. See the Cisco IOS Debug Command Reference for more information about CDP debugcommands.


    Related Protocols
    SNMP , SNAP

    posted @ 2007-05-17 11:10 afunms 閱讀(318) | 評論 (0)編輯 收藏

    report2.0 vs 1.0

         摘要:  從xml就可以看出sourceview2.0 report與1.0 report有很大的區(qū)別。 從齊魯ens到sv1.0,再到現(xiàn)在的sv2.0,我的報表設(shè)計越來越成熟,越來越簡潔和靈活。 更重要的是,做完sv2.0,我又有了新的想法,我甚至想專門研究BI。我完全有理由相信 到sv3.0時,我的報表模塊會更好。 -----SourceView2.0 reports-c...  閱讀全文

    posted @ 2007-05-16 16:16 afunms 閱讀(179) | 評論 (0)編輯 收藏

    Builder 4 report

    http://www.jdon.com/designpatterns/builder.htm
    Builder模式定義
    :
    將一個復(fù)雜對象的構(gòu)建與它的表示分離,使得同樣的構(gòu)建過程可以創(chuàng)建不同的表示.

    Builder模式是一步一步創(chuàng)建一個復(fù)雜的對象,它允許用戶可以只通過指定復(fù)雜對象的類型和內(nèi)容就可以構(gòu)建它們.用戶不知道內(nèi)部的具體構(gòu)建細(xì)節(jié).Builder模式是非常類似抽象工廠模式,細(xì)微的區(qū)別大概只有在反復(fù)使用中才能體會到.

    為何使用?
    是為了將構(gòu)建復(fù)雜對象的過程和它的部件解耦.注意: 是解耦過程部件.

    因為一個復(fù)雜的對象,不但有很多大量組成部分,如汽車,有很多部件:車輪 方向盤 發(fā)動機還有各種小零件等等,部件很多,但遠不止這些,如何將這些部件裝配成一輛汽車,這個裝配過程也很復(fù)雜(需要很好的組裝技術(shù)),Builder模式就是為了將部件和組裝過程分開.

    如何使用?
    首先假設(shè)一個復(fù)雜對象是由多個部件組成的,Builder模式是把復(fù)雜對象的創(chuàng)建和部件的創(chuàng)建分別開來,分別用Builder類和Director類來表示.

    首先,需要一個接口,它定義如何創(chuàng)建復(fù)雜對象的各個部件:

    public interface Builder {

      //創(chuàng)建部件A  比如創(chuàng)建汽車車輪
      void buildPartA();
      //創(chuàng)建部件B 比如創(chuàng)建汽車方向盤
      void buildPartB();
      //創(chuàng)建部件C 比如創(chuàng)建汽車發(fā)動機
      void buildPartC();

      //返回最后組裝成品結(jié)果 (返回最后裝配好的汽車)
      //成品的組裝過程不在這里進行,而是轉(zhuǎn)移到下面的Director類中進行.
      //從而實現(xiàn)了解耦過程部件
      Product getResult();

    }

    用Director構(gòu)建最后的復(fù)雜對象,而在上面Builder接口中封裝的是如何創(chuàng)建一個個部件(復(fù)雜對象是由這些部件組成的),也就是說Director的內(nèi)容是如何將部件最后組裝成成品:

    public class Director {

      private Builder builder;

      public Director( Builder builder ) {
        this.builder = builder;
      }
      // 將部件partA partB partC最后組成復(fù)雜對象
      //這里是將車輪 方向盤和發(fā)動機組裝成汽車的過程
      public void construct() {
        builder.buildPartA();
        builder.buildPartB();
        builder.buildPartC();

      }

    }

    Builder的具體實現(xiàn)ConcreteBuilder:
    通過具體完成接口Builder來構(gòu)建或裝配產(chǎn)品的部件;
    定義并明確它所要創(chuàng)建的是什么具體東西;
    提供一個可以重新獲取產(chǎn)品的接口:

    public class ConcreteBuilder implements Builder {

      Part partA, partB, partC;
      public void buildPartA() {
        //這里是具體如何構(gòu)建partA的代碼

      };
      public void buildPartB() {
        //這里是具體如何構(gòu)建partB的代碼
      };
       public void buildPartC() {
        //這里是具體如何構(gòu)建partB的代碼
      };
       public Product getResult() {
        //返回最后組裝成品結(jié)果
      };

    }

    復(fù)雜對象:產(chǎn)品Product:

    public interface Product { }

    復(fù)雜對象的部件:

    public interface Part { }


    我們看看如何調(diào)用Builder模式:
    ConcreteBuilder builder = new ConcreteBuilder();
    Director director = new Director( builder );

    director.construct();
    Product product = builder.getResult();


    突然意識到,其實用builder pattern來創(chuàng)建報表是最好的選擇。

    posted @ 2007-05-15 21:40 afunms 閱讀(88) | 評論 (0)編輯 收藏

    僅列出標(biāo)題
    共25頁: First 上一頁 17 18 19 20 21 22 23 24 25 下一頁 

    My Links

    News

    留言簿(18)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 久久最新免费视频| 亚洲一区二区三区在线视频| 亚洲片国产一区一级在线观看| 亚洲成a人片7777| 久操免费在线观看| JLZZJLZZ亚洲乱熟无码| 99re8这里有精品热视频免费| 亚洲日本韩国在线| 88av免费观看| 亚洲欧洲在线观看| 无码专区AAAAAA免费视频| 亚洲av一综合av一区| 国产免费一区二区视频| 亚洲AV综合色区无码一区| 国产卡一卡二卡三免费入口| 学生妹亚洲一区二区| 中文字幕无码成人免费视频 | 美女被免费网站在线视频免费| 免费看男女下面日出水来| 在线电影你懂的亚洲| 无码国产精品一区二区免费虚拟VR| 亚洲欧洲日产国码www| 免费看国产一级特黄aa大片| 精品一区二区三区免费毛片| 国产成人青青热久免费精品| 亚洲日韩看片无码电影| 性做久久久久免费看| 免费一区二区三区在线视频| 美腿丝袜亚洲综合| 丁香花在线视频观看免费| 亚洲成人在线网站| 成年在线观看网站免费| 中文字幕av无码不卡免费| 亚洲VA中文字幕无码一二三区| 拨牐拨牐x8免费| 婷婷亚洲综合五月天小说在线 | 免费观看国产小粉嫩喷水| 69式互添免费视频| 国产一区二区免费视频| 免费无码专区毛片高潮喷水| 国产亚洲玖玖玖在线观看|