<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

           突然發現鏈路的接口描述都是vlan,而不是實際的物理口,為了找出出錯的原因,又浪費我幾乎一天的時間。還好,終于去掉了一個嚴重的bug。原來fdb表經常變化,每次提取的結果都不一樣,我修改程序,僅在需求時提取fdb表信息,這樣數據就比較準確了。

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

    weekend

    下午跟用戶溝通了一下,得知我們的軟件能自動畫出拓撲圖,對我們的軟件很感興。

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

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

    discovery result

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

           不論怎樣,在發現過程中,沒有拋出空指針錯誤已經讓我很滿意了。
       

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

    Test topo discovery

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

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

    測試新產品

    今天到**公安局測試我們的新產品,又遇到安奈特的設備,拓撲發現還是有問題,很郁悶。

    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 閱讀(138) | 評論 (0)編輯 收藏

    第一個SOAP程序

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

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


    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 閱讀(206) | 評論 (0)編輯 收藏

    The Fight Against Crime

      PETS5  第三課作文題目 (從網上轉摘)

    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 閱讀(701) | 評論 (0)編輯 收藏

    Health or Wealth?

    PETS5  第二課作文題目 (從網上轉摘)
    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 閱讀(871) | 評論 (0)編輯 收藏

    Studying Abroad or Home

    PETS5  第一課作文題目 (從網上轉摘)
    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 閱讀(726) | 評論 (0)編輯 收藏

    2007讀書(5)

    對于網管軟件開發人員很實用的一本書。

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

    2007讀書(4)


    進一步了解SNMP。

    posted @ 2007-05-18 14:21 afunms 閱讀(89) | 評論 (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 閱讀(314) | 評論 (0)編輯 收藏

    report2.0 vs 1.0

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

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

    Builder 4 report

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

    Builder模式是一步一步創建一個復雜的對象,它允許用戶可以只通過指定復雜對象的類型和內容就可以構建它們.用戶不知道內部的具體構建細節.Builder模式是非常類似抽象工廠模式,細微的區別大概只有在反復使用中才能體會到.

    為何使用?
    是為了將構建復雜對象的過程和它的部件解耦.注意: 是解耦過程部件.

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

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

    首先,需要一個接口,它定義如何創建復雜對象的各個部件:

    public interface Builder {

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

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

    }

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

    public class Director {

      private Builder builder;

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

      }

    }

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

    public class ConcreteBuilder implements Builder {

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

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

    }

    復雜對象:產品Product:

    public interface Product { }

    復雜對象的部件:

    public interface Part { }


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

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


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

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

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

    My Links

    News

    留言簿(18)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 亚洲精品午夜国产va久久| 亚洲精品国偷自产在线| 亚洲国产日韩在线成人蜜芽| 亚洲免费日韩无码系列| 亚洲狠狠爱综合影院婷婷| 亚洲AV综合永久无码精品天堂| 久久www免费人成看国产片| 伊人久久亚洲综合影院| 91嫩草私人成人亚洲影院| 色噜噜噜噜亚洲第一| 国产又粗又长又硬免费视频| 久久精品国产亚洲夜色AV网站| 午夜免费福利片观看| 亚洲高清美女一区二区三区| 免费观看黄色的网站| 亚洲精品国产国语| 国产公开免费人成视频| 亚洲欧洲日产国码www| 黄页网站免费观看| 国产亚洲综合视频| 在线观看亚洲成人| 一级毛片不卡片免费观看| 亚洲一区二区三区免费观看| 女人18毛片a级毛片免费| 香蕉视频在线观看免费| 亚洲精品无码国产| 亚洲视频免费一区| 亚洲精品无码久久久久秋霞 | 最近2019中文字幕免费直播| 亚洲欧洲日韩综合| 国产高清在线免费| 在线免费观看h片| 免费v片在线观看品善网| 毛片基地看看成人免费| 久久久久亚洲av无码专区喷水| 成人毛片18女人毛片免费96| www免费黄色网| 亚洲日韩乱码中文无码蜜桃臀| 午夜老司机免费视频| 免费一区二区无码东京热| 亚洲色婷婷六月亚洲婷婷6月|