<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.

    #

    addMonitor

    Completed a new feature:add or delete a monitor.
    It seems very easy,however it could not be implemented without a good system architecture.



     

    posted @ 2008-01-25 16:53 afunms 閱讀(167) | 評論 (0)編輯 收藏

    alarm subscrible.

    Enlighten by EventLogAnalyzer, I acquired a perfect solution for alarm subscrible.
    Users can subscrible alarm from devices which belong to many categories,
    or even a single device.

    posted @ 2008-01-24 16:53 afunms 閱讀(367) | 評論 (0)編輯 收藏

    event module

    完成“事件與告警”模塊,這是2.0中改進最大的一個模塊。


    posted @ 2008-01-22 17:20 afunms 閱讀(159) | 評論 (0)編輯 收藏

    messagers

    Completed four messagers,which are used to send alarm message.

    POPMessager,popping a window in the right bottom.
    SMSMessager,sending alarm message with sms.
    EmailMessager,sending alarm message with email.
    ItsmMessager,sending alarm message to ITSM service.

    posted @ 2008-01-21 17:12 afunms 閱讀(131) | 評論 (0)編輯 收藏

    birthday


    Today is my birthday.

    posted @ 2008-01-18 15:36 afunms 閱讀(111) | 評論 (0)編輯 收藏

    Syslog & SNMP Trap

     In the aspects of Syslog and SNMP Trap,SourceView1.0 is immature.
    I improved the two parts in SourceView2.0.
     For Syslog,Priority is got first,then we compute Facility and
    Severity according to Priority,rather than on the contrary.
       Priority = Facility * 8 + Severity
     As for SNMPTrap,I have new cognition too.The default trap processors
    such as cold start,warm start,link down and link up etc,would give
    their corresponding trap message when they receive SNMP trap.
     Whenas,if the trap's generic is 6 (EnterpriseSpecific),we should develop
    a new processor to translate its trap message.


    posted @ 2008-01-18 10:35 afunms 閱讀(358) | 評論 (0)編輯 收藏

    event

      Modified HtmlUtil to adapt the new scenario,the source data from Iterator.
      Reconstructed event module,I considered it as the most important in 2.0.



    posted @ 2008-01-17 10:41 afunms 閱讀(86) | 評論 (0)編輯 收藏

    builder 4 report

    Completed LinkReport.There are two questions should be improved in the
    next version.
      The first,the relevant DAO classes filled with repetitious code.I consider to
    reconstruct these DAOs.
      The second,suddenly I am aware that Builder Pattern is the best way to
    solve the complex problem of creating a report.

      The code likely be following:
      ReportBuilder builder = new ReportBuilder();
      Director director = new Director( builder );
      director.construct();
      Report report = builder.createReport();

    -----------------Builder Pattern------------

    The Builder pattern allows a client object to construct a complex object by specifying only its
    type and content.The client
    is shielded from the details of the object's construction.

    It is a pattern for step-by-step creation of a complex object so that the same construction process
    can create different
    representations is the routine in the builder pattern that also makes for finer
    control over the construction process. All
    the different builders generally inherit from an abstract
    builder class that declares the general functions to be used by the
    director to let the builder create
    the product in parts.

    Builder has a similar motivation to the abstract factory but, whereas in that pattern, the client uses
    the abstract factory
    class methods to create its own object, in Builder the client instructs the builder
    class on how to create the object and
    then asks it for the result. How the class is put together is up
    to the Builder class. It's a subtle difference.

    The Builder pattern is applicable when the algorithm for creating a complex object should be
    independent of the parts that
    make up the object and how they are assembled and the construction
    process must allow different representations for the
    object that is constructed.

    posted @ 2008-01-14 22:25 afunms 閱讀(136) | 評論 (0)編輯 收藏

    afu-frame

     I revised my afu-framework,giving it to a colleague,then he can develop
    SourceFlow based my framework.
     Hopefully,the two sections including JDBC and Report could be used
    in SourceFlow.
     In addition,I wrote code about drawing a horizontal bar chart through
    JFreeChart.
     

    posted @ 2008-01-10 11:23 afunms 閱讀(122) | 評論 (0)編輯 收藏

    perfect DAO solution

    DAO design was revised repeatedly recent days,I am glad of  getting a perfect DAO solution
    finally.
      The sticking point in DAO design is where a DB connection is opened and when
    to close it. Sometimes,one action executes only one DAO method,the connection
    should be closed immediately follow the method. Sometimes, However, one action
    may contain many DAOs or a series of methods in a DAO, (in other words, called transaction).
    A same connection is used in DAOs,so closing connection after method execution is incorrect.
      Therefore,I wrote two DAO's constructors for above two scenarios.For the first scenario,
    opening a connection inside DAO,and close it at once after a method is invoked.For the second
    scenario,a connection is created outside DAO, when instantiating a new DAO class,the connection
    is passed from outside.We cope with this case (a transaction) in a service,the service invokes more
    than one DAOs.DB connection is opened when service starting,and closed at the end of service.

    posted @ 2008-01-09 10:21 afunms 閱讀(167) | 評論 (0)編輯 收藏

    NodeLoader

    A reflection on my SourceView’s architecture from Li showing it is awkward to add a
    new node in TopoResource.I accepted it with an open mind(modestly).
     I modified the base class NodeLoader.class,defines three abstract methods:
     addNode(DtoInterface dto):adds the node’s information into DB table,at the same time,
     add this node into topo map(a xml file).This method is used during polling period.
     loadAll():loads all table records onto memory,in other words,transforms persistence
    data to memory objectsThis methods is invoked while starting Tomcat.
     loadOne(DtoInterface dto): transforms a table record to a memory object. This method
    is used during polling period too.

    posted @ 2008-01-05 13:14 afunms 閱讀(127) | 評論 (0)編輯 收藏

    reply

    @Amidala:

    你的程序沒錯啊,但你測試環境有問題。
    1.3.6.1.4.1.9.2.1.8.0是Cisco的oid(具體這個oid是取什么值我也不知道)
    但127.0.0.1是你的本機,你不可能在一臺Cisco機器上寫你的Java程序吧?呵呵。

    建議找一臺安裝snmp的服務器,或者直接在你的機器上安裝snmp并啟動snmp服務。

    以下是我按你的原程序改過的,我測試過了,沒問題。

     1import org.snmp4j.*
     2import org.snmp4j.transport.*
     3import java.io.*
     4import java.util.Vector;
     5
     6import org.snmp4j.smi.*
     7import org.snmp4j.mp.*
     8import org.snmp4j.event.*
     9
    10public class SnmpBlog
    11
    12    public static void main(String[] args)
    13    
    14       try
    15       
    16           TransportMapping transport1 ; 
    17           transport1 = new DefaultUdpTransportMapping(); 
    18           Snmp protocol = new Snmp(transport1); 
    19           transport1.listen(); 
    20           CommunityTarget myTarget = new CommunityTarget(); 
    21           Address deviceAdd;
    22           /**
    23            * 192.168.2.149 is a windows2003 server
    24            */

    25           deviceAdd = GenericAddress.parse("udp:192.168.2.149/161"); 
    26           myTarget.setAddress(deviceAdd); 
    27           myTarget.setCommunity(new OctetString("public")); 
    28           myTarget.setRetries(0); 
    29           myTarget.setTimeout(5*60); 
    30           myTarget.setVersion(SnmpConstants.version2c);//org.snmp4j.mp.*; 
    31           PDU pdu = new PDU(); 
    32           /**
    33            * 1.3.6.1.2.1.1.5.0 is sysName oid
    34            */

    35           VariableBinding var = new VariableBinding(new OID("1.3.6.1.2.1.1.5.0")); 
    36           pdu.add(var); 
    37           pdu.setType(PDU.GET); 
    38           ResponseEvent response = protocol.send(pdu, myTarget);
    39           String sysName = null;
    40           if(response.getResponse() != null)
    41           {
    42               Vector respList = response.getResponse().getVariableBindings();
    43               VariableBinding variableV = (VariableBinding)respList.elementAt(0);
    44               sysName = variableV.getVariable().toString();
    45           }

    46           
    47           System.out.println(sysName); 
    48       }

    49       catch(IOException e)
    50       
    51            e.printStackTrace(); 
    52            System.out.println(e.getMessage()); 
    53       }
     
    54    }
      
    55}
     

    posted @ 2007-12-29 12:57 afunms 閱讀(345) | 評論 (4)編輯 收藏

    run into a blank wall

     今天到南方電視介紹我們的產品,跟中山電臺類似,我們又碰壁了。
    人家要的是供電系統的監控軟件,而不是網絡監控軟件。對網絡的監控,
    他們早有相應的軟件了。
      
        搞得我們掃興而歸。

    posted @ 2007-12-28 14:21 afunms 閱讀(122) | 評論 (0)編輯 收藏

    snmp4j

    前段時間,用snmp4j取cdpCacheAddress時,發現snmp4j有問題,取出的值是亂碼。
    所以下載的最新的版本,問題解決。

    可今天發現新的snmp4j也有問題,就是取windows interface時,ifDescr是亂碼,
    把舊的snmp4j替換新的,問題解決,暈倒。

    因為cdpCacheAddress用得少,所以還是用舊版的snmp4j吧。

    posted @ 2007-12-27 11:28 afunms 閱讀(1483) | 評論 (7)編輯 收藏

    LastUpdate

    Li到政法網辦最后一次更新程序。
    解決atm snmp trap接收和翻譯的問題。

    因為用戶沒有了提什么要求,所以我們沒有再去政法網。
    這個項目做得不算好,因為對于ATM,我們能取到的數據實在有限。

    posted @ 2007-12-22 19:00 afunms 閱讀(152) | 評論 (0)編輯 收藏

    僅列出標題
    共25頁: First 上一頁 8 9 10 11 12 13 14 15 16 下一頁 Last 

    My Links

    News

    留言簿(18)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 亚洲人成人网站在线观看| 日韩电影免费观看| 妞干网在线免费观看| 亚洲网站在线免费观看| 亚洲毛片av日韩av无码| 国产AV日韩A∨亚洲AV电影| 青草草在线视频永久免费| 亚洲熟妇av午夜无码不卡 | 亚洲一级毛片视频| 免费成人福利视频| 亚洲国产一区在线观看| 成人免费a级毛片| 亚洲乱色熟女一区二区三区蜜臀| 在线观看免费成人| 国产成人 亚洲欧洲| 亚洲日韩在线第一页| 中文字幕乱理片免费完整的| 亚洲国产精品无码久久久秋霞2| 一级毛片免费播放| 亚洲精品第一综合99久久| 日本免费观看网站| 国产精品成人免费观看| 亚洲AV无码日韩AV无码导航| 黄色永久免费网站| 亚洲av无码专区在线观看下载| 免费一级毛片免费播放| 免费无码av片在线观看| 亚洲福利视频一区二区三区| 免费鲁丝片一级在线观看| 国产精品hd免费观看| 亚洲第一成年人网站| 五月天婷亚洲天综合网精品偷| 成人自慰女黄网站免费大全| 亚洲视频免费播放| 免费A级毛片无码A∨男男| 好紧我太爽了视频免费国产| 亚洲一级毛片视频| 亚洲午夜久久久久久久久电影网| 日本视频一区在线观看免费| 羞羞漫画登录页面免费| 日本久久久久亚洲中字幕|