内容教程教案cmpi_第1页
内容教程教案cmpi_第2页
内容教程教案cmpi_第3页
内容教程教案cmpi_第4页
内容教程教案cmpi_第5页
已阅读5页,还剩29页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

前 目的和范 读 文档组 NMS准备工 流程描 登 获取 获取 获取 登陆抓 管理 相关接 抓 管理器简 事件通 接 日 抓 获取EMS信 接 配 日 抓 网 接 日 抓 设 接 日 抓 终结点 接 日 抓 拓 接 日 抓 告警当前告 历史告 事件通 相关概 事件提供者 事件消费者 事件发送模型 事件发送模型 混合模 CMPI的事件通 CMPI向事件通道PUSH了什 告警事 心跳事件 其它事 告 告警日 日志分 日志格 查看版 如何抓 NMS和CMPI的操作是什 CMPI的心 CMPI的相关文件有哪 如何配置CMPI日志文 编译IDL异 待 目的和读文档组NMS准备工CorbaNBIAlarmCorbaNBIAlarmCorbaNBIGuiCutThroughCorbaNBIInventoryCorbaNBIInventoryCorbaNBIPerformanceCorbaNBIPerformance确认NMS和AMS之间可以互相通,尤其是AMS可以通NMS,这涉 流程描NMS的常规流程和调用的CMPI接口如图网元设备获取EMS信息获网元设备获取EMS信息获取事件通获取管理登陆拓扑告警getAllTopLevelTopologicalLinks登NMS使用在AMSCMPICMPI,登陆过程其实是EmsSession的过程。getget获取URLCorba命名服务,URL获取##代码示ponent =ponent("Netguard", ponent("1.0.0",ponentversion=ponentfactory=ponent[]path={/wam",,version,factoryorg.omg.CORBA.Objectobj=EmsSessionFactory_IemsSessionFactoryImpl=获取NmsSessionEmsSessionNmsSession主要包含一个方法,供CMPI调用EmsSessionCMPI实现并作为输出参数,NMSEmsSession来获getEmsSessionNYYendoldNcreatenewNMSgetnewlogincheckoldemsSessionemsSession,所以当同一个用户第二次登陆时,之前的登陆的emsSession就被结束了。正常登陆日############1.checkSecuritystart###########################################1.checkSecuritystart###############################2.checkSecurityOK##################################3.checkSecurityinMemory################################3.1numofsession################:0----0表示没有缓存session,一般一个用户登录就有一个############4.ThereisnooldSession!################################5.createnewsession####################corba1loginsuccessfully----检查缓存----创建新----使用参数中的username和password登录EMS,这时候会启动一个Tasker,用来保持EMS登陆状############6.loginEMSSessionIDforusercorba1is:3r6z6u37-4epahv-i3plhodx-1-i416du3v-3a4.Totalusingtimeofthissession=1minutes 用户在EMS的登陆状态############7.createnewsessionOK################################8.savenewsession################################9.CreatecorbaEMSSessionandaddtocache并缓存在############10.getEmsSessionEnd 创建EmsSession完 结重登陆############1.checkSecuritystart###########################################1.checkSecuritystart###############################2.checkSecurityOK##################################3.checkSecurityinMemory############3.1numofsession 里一个是corba,一个是corba1############3.2.Haveloginedbefore 结束旧的############4.EndtheoldSessionsuccessfully!################################5.createnewsession#################### 具体结束session的日 Usercorba1logoutandtimer----这里cancel的是保持用户在EMS连接状态RemovecorbaEMSSessionforuser%%%%%%%%%%%%%%%%%%%%%%EndSessionsuccessfully!.theuseriscorba1 User:User:corba1login############6.loginEMSSessionIDforusercorba1is:3r6z6u37-4epahv-i3plhodx-1-i43iqad4-3x5.Totalusingtimeofthissession=1minutes############7.createnewsessionOK################################8.savenewsession################################9.CreatecorbaEMSSessionandaddtocache############10.getEmsSessionEnd失败登陆日############1.checkSecuritystart###########################################1.checkSecuritystart###############################2.checkSecurityNOK#####################登陆抓管理NMSEmsSessionEmsSessionCMPI 管理器相关接EmsSession5NMS getSupportedManagers接口提供CMPI支持的ManagerNMSManager的名称来获取相关的管理器。##日志示headgetSupportedManagers::in********getSupportedManagers<0><1><2><3><4><5><6>********getSupportedManagers************headgetSupportedManagers::out...NMSgetSupportedManagersCMPIManagergetManagerManager名称作为参数传入。##getManager日----接口被调用了7次,获取7个管理headgetManager::in...andtheManagerNameisperformanceManagementMgrheadgetManager::out...andtheManagerNameisperformanceManagementMgrheadgetManager::in...andtheManagerNameisManagedElementheadgetManager::out...andtheManagerNameisheadgetManager::in...andtheManagerNameisequipmentInventoryMgrheadgetManager::out...andtheManagerNameisequipmentInventoryMgrheadgetManager::in...andtheManagerNameisPMTaskheadgetManager::out...andtheManagerNameisPMTaskheadgetManager::in...andtheManagerNameissystemMgrheadgetManager::out...andtheManagerNameissystemMgrheadgetManager::in...andtheManagerNameisemsMgrheadgetManager::out...andtheManagerNameisemsMgrheadgetManager::in...andtheManagerNameisGuiCutThroughheadgetManager::out...andtheManagerNameisGuiCutThrough抓管理器简查询,修改Server修改用户获取,修改EMSASAP获取网元所有设备信息(Equipment&TCAGCT事件通EventChannelNMSEmsSession获取的。接EmsSessiongetEventChannelheadgetEventChannel::inheadgetEventChannel::inheadgetEventChannel::out抓接emsMgrgetEMSEMSCorbaclientgetEMS+++EMS EMSName:Alca-AMSNativeEMSName:Alca-AMSVendor:alcaNBIVersion:CMPI9.2.30IPAddress:Status:InServiceType:OT_EMSSeverity:PS_CRITICAL CreatTime: OS:SunSolaris10Hadware:sunLocation: OTHERS MaxNumberOfSupportedNEs:20000CurrentNumberOfNEs:15AdditionAdditionInfo:配getEMS的返回值有部分配置在perties EMS.NAME=Alca-AMSEMS.NBI_VERSION=CMPI9.2.30EMS.OS=SunSolaris日headheadgetEMS::in...corba1getEMSspendtime:75headgetEMS::out...----用户corba1调用接抓网网元指的是获取EMSManagedElementOLTAMS中的NE在最先的版本中使用NE的id或者name作为OLT的名称,现在使用的是TIDNEONTNE的TIDONTGPON32_ASB111/ONT-1-1-7-3-6Splitter接日headheadgetAllManagedElementsincorba1----用户corba1调用接<50>ManagedeElementsGPON32_ASB111/POS-1-1-7-2-1getAllManagedElementsspendtime:2664 headgetAllManagedElementsout getManagedElements是耗时最长的一个步骤,230分钟左右。所NMS需要设置较长的超时等待。如果NMS有ONT或者POS没有到,可以在输出的日志中搜索下相关名称。抓设当NMS完ManagedElement后,会遍历所有到的ManagedElement,对每个ManagedElement其设备。接headgetAllEquipmentinheadgetAllEquipmentin 用户corba1调用接headgetAllEquipment::params...Alca- ----查询的是的所有设备,如果是ONT这里会是例如Alca-AMS@GPON32_ASB111/ONT-1-1-7-3-1getAllEquipment******Thetotalnumberis <1>EquipmentOrHolder:Alca-<2>EquipmentOrHolder:Alca-<3>EquipmentOrHolder:Alca-<4>EquipmentOrHolder:Alca-<5>EquipmentOrHolder:Alca-<6>EquipmentOrHolder:Alca-<7>EquipmentOrHolder:Alca-<8>EquipmentOrHolder:Alca-<9>EquipmentOrHolder:Alca-<10>EquipmentOrHolder:Alca-<11>EquipmentOrHolder:Alca-<12>EquipmentOrHolder:Alca-<13>EquipmentOrHolder:Alca-<14>EquipmentOrHolder:Alca-<15>EquipmentOrHolder:Alca-<16>EquipmentOrHolder:Alca-<17>EquipmentOrHolder:Alca-<18>EquipmentOrHolder:Alca-<19>EquipmentOrHolder:Alca-----<1>到<19>是Equipment<20>到<23>是<20>EquipmentOrHolder:Alca-<21>EquipmentOrHolder:Alca-<22>EquipmentOrHolder:Alca-<23>EquipmentOrHolder:Alca-**************getAllEquipmentOutputend*****************************getAllEquipmentspendtime:2127 headgetAllEquipmentout 结束调抓终结点同getAllEquipment一样,NMS针对每一个ManagedElement其终结点信息接日headgetAllPTPsWithoutFTPsin 用户corba1调用接headgetAllPTPsWithoutFTPs::params...Alca-AMS@GPON32_ASB111 查询的是OLT**************getAllPTPsOutput **<1>TerminationPoint_T:Alca-**<2>TerminationPoint_T:Alca-**<3>TerminationPoint_T:Alca-**<4>TerminationPoint_T:Alca-**<5>TerminationPoint_T:Alca-**<6>TerminationPoint_T:Alca-**<7>TerminationPoint_T:Alca-**<8>TerminationPoint_T:Alca-**<9>TerminationPoint_T:Alca-**<10>TerminationPoint_T:Alca-**<11>TerminationPoint_T:Alca-**<12>TerminationPoint_T:Alca-**<13>TerminationPoint_T:Alca-**<14>TerminationPoint_T:Alca-**<15>TerminationPoint_T:Alca-**<16>TerminationPoint_T:Alca-**<17>TerminationPoint_T:Alca-**<18>TerminationPoint_T:Alca-**<19>TerminationPoint_T:Alca-**<20>TerminationPoint_T:Alca-**<21>TerminationPoint_T:Alca-**<22>TerminationPoint_T:Alca-**<23>TerminationPoint_T:Alca-**<24>TerminationPoint_T:Alca-**<25>TerminationPoint_T:Alca-**<26>TerminationPoint_T:Alca-**<27>TerminationPoint_T:Alca-**<28>TerminationPoint_T:Alca-**************getAllPTPsOutputgetAllPTPsWithoutFTPsgetAllPTPsWithoutFTPsspendtime:headgetAllPTPsWithoutFTPs::out... 抓拓接----打印结----用户corba1<43>TopologicalLinks:GPON32_ASB111/POS-1-1-7-3-3getAllTopLevelTopologicalLinksspendtime:246 ::... 抓告警当前告headheadgetAllEMSAndMEActiveAlarms::in...----corba1headgetAllEMSAndMEActiveAlarms::parameters.excludeProbCauseList.excludeProbCause: headgetAllEMSAndMEActiveAlarms::parameters.excludeProbCauseList.excludeProbCause:PREFREFFAILheadgetAllEMSAndMEActiveAlarms::parameters.excludeProbCauseList.excludeProbCause:BDNOTINSTheadgetAllEMSAndMEActiveAlarms::parameters.excludeProbCause.PerceivedSeverity_T:PS_CLEAREDheadgetAllEMSAndMEActiveAlarms::parameters.excludeProbCause.PerceivedSeverity_T:headgetAllEMSAndMEActiveAlarms::parameters.startTime:20141129140000headgetAllEMSAndMEActiveAlarms::parameters.endTime:20151229150000headgetAllEMSAndMEActiveAlarms::parametershow_many:20----查询结果,从AMS查询到的条AMSreturns26Alarms!getAllEMSAndMEActiveAlarmsgetAllEMSAndMEActiveAlarmsThereare21alarmswillbe----返回给NMSgetAllEMSAndMEActiveAlarmsReport1Alarmsin 因为howmany20211条告警进入了Iterator.getAllEMSAndMEActiveAlarmsspendtime:5477 历史告 corba1调用接TotalAlarmsafterqueryfromDB:4TotalAlarmsWillbereported:4#未来版headheadgetAllEMSAndMEActiveHistoryAlarms::in...corba1TotalAlarmsafterqueryfromDB:4TotalAlarmsWillbereported:4getAllEMSAndMEActiveHistoryAlarmsspendtime:6713headgetAllEMSAndMEActiveHistoryAlarms::out...EventChannelNMSEmsSession什么是事件通但有些情况下我们希望实现异步调用,ServerClient发出通知,Client可以异步的获CORBAEventService。相关概事件提供者结构中,CMPI是唯一的r。事件消费者Consumer事件的接收者。NMSCorbaClientConsumer。但是模型而言,NMSCorbaClient有区别:NMSPushPushNMS;CMPI发送事件后,NMS直接就收到了。CorbaClient使用的是混合模型,CorbaClientPull出事件;具体体现是我们的CorbaClient需要点击PullEventsPullEvents事件发送模型r将事件Push给事件通道,事件通道将事件Push给所有的Consumer。r是事件主动发起者,而Consumer只是的等待接收事件,事件通道扮演 事件流的方CMPINMSPush模型,CMPIPushNMS等待接收事件,事件通道收到CMPIPush的事件后,再Push给NMS事件发送模型r事件流的方道中拉出来,然后事件通道又将事件从r中拉出来。混合模CMPICorbaClient Corba事件流的方CMPI将事件推向事件通道,CorbaClientr和Consumer都是主动方,事件通道起着队列的作用,事件通道只是将r推入的事件数据起来,直至Consumer将事件数据从事件通道中拉走。CMPI的事件通CMPIEmsSessionEventChannelrNMSNMSrNMSNMSEventChannel

key缓存在系统中。destroy了的事件通道,造成相关异常。新登录获取的还是损坏的事件通道,需要重启AMS才能解决(或换个用户。CMPI向事件通道Push了什告警事主动上报告警相关日志记录下cmpiAlarm.log中,具体会在之后的告警章节介绍。:addreceivecheckifneedaddaddfilteraddsendpusheventtoexisteventchannelscreateAlarmCMPIPush心跳是NMS检测网络连通性的一个,NMS机制是:当连续者多个心跳事件没有EmsSessionEmsSession后,重新获取事件通道,继续监测心跳通知。180--------这条日志是负责发送心跳的Timer SendHeartbeattonms!--------下面这条日志表示心跳事件发送到了corba (DEBUGpushEventToAllChanneltocorba:StructuredEvent:EventName:)因为机制不同,所以corbaclient做pull其它事创建通知修改通知删除通知异步任务通知例如 PLETED等告警主动上告警事件相关"equipmentAlarm"(设备告警);通知格式EMSname例如Alca-OTEQUIPMENTAlca-AMS@fx58@/rack=1/shelf=1Alca-AMS@GPON32ASB111AI_EVENT_ACKNOWLEDGED(确认);AI_EVENT_UNACKNOWLEDGED(未确认。告警原EMSEMS收到清除告警的时neNativeEMSName:OLTonuNativeEMSName:ONU名告警日告警上报的相关日志会记录在cmpiAlarm.log2014-12-2616:50:30.942,ALARM,List2014-12-2616:50:30.942,ALARM,List2014-12-26----从AMS4五八2014-12-26 五八2014-12-26 五八2014-12-26 五八2014-12-26 ,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX八 发送给了用户corba的事件通2014-12-26 ,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX八八2014-12-2616:50:31.154,ALARM,SEND,2014-12-2616:50:31.165,ALARM,SEND,2014-12-2616:50:31.256,ALARM,SEND,2014-12-2616:50:31.269,ALARM,SEND,2014-12-2616:50:31.346,ALARM,SEND,2014-12-26八----发送给了用户corba1,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX,RAISED,INDETERMINATE,LANLOS,EthernetPort:FX2014-12-262014-12-2614:14:37.312,ALARM,List 收到2 2014-12-2614:14:37.312,ALARM,RECEIVE, FX五八_n:IACM,1419574473616,1419574473616,0,NULL2014-12-2614:14:37.312,ALARM,RECEIVE, FX五八_n:IACM,1419574473616,1419574473616,1419574473629,1419574473629 2014-12-26 FX五八 过滤原2014-12-26 FX五八 过滤原因(同id告警,产生又清除,是重复告警2014-10-09七三30:R1.S1.LT8,1412823608431,1412823878031,1412824144430,1412824178053七三3

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论