nokia olt 1/1/1/1/1/1/1 的1分别代表什么
时间: 2024-06-17 13:07:58
浏览: 197
在Nokia OLT中,1/1/1/1/1/1/1代表了一个精确的端口,这个端口可以被用来连接到其他设备,比如说ONT(光网络终端)。更具体地说,这个数字串的含义如下:
- 第一个“1”代表的是机架(rack)编号;
- 第二个“1”代表的是槽位(slot)编号;
- 第三个“1”代表的是端口(port)编号;
- 第四个“1”代表的是ONU(光网络单元)编号;
- 第五个“1”代表的是业务板卡(service board)编号;
- 第六个“1”代表的是子卡(subcard)编号;
- 第七个“1”代表的是端口(port)编号。
因此,“1/1/1/1/1/1/1”代表的就是一台Nokia OLT上的一个具体端口。
相关问题
In file included from /home/dongjianhong/olt_pizzabox/platform/host/usr/arm-broadcom-linux-uclibcgnueabi/include/c++/4.9.4/atomic:41:0, from /home/dongjianhong/olt_pizzabox/platform/output/DS-P7001-08/build/grpc-1.25.0/src/core/lib/gprpp/ref_counted.h:28, from /home/dongjianhong/olt_pizzabox/platform/output/DS-P7001-08/build/grpc-1.25.0/src/core/lib/channel/channel_trace.h:25, from /home/dongjianhong/olt_pizzabox/platform/output/DS-P7001-08/build/grpc-1.25.0/src/core/lib/channel/channelz_registry.cc:24: /home/dongjianhong/olt_pizzabox/platform/host/usr/arm-broadcom-linux-uclibcgnueabi/include/c++/4.9.4/bits/atomic_base.h: In member function ‘bool grpc_core::Atomic<T>::IncrementIfNonzero(grpc_core::MemoryOrder) [with T = int]’: /home/dongjianhong/olt_pizzabox/platform/host/usr/arm-broadcom-linux-uclibcgnueabi/include/c++/4.9.4/bits/atomic_base.h:538:70: error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’ return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, __m1, __m2);
这个错误是由于在`grpc_core::Atomic<T>::IncrementIfNonzero`函数中使用了比成功内存模型更强的内存模型来执行`__atomic_compare_exchange`函数引起的。
根据错误信息,`IncrementIfNonzero`函数定义在`grpc_core::Atomic<T>`类中,它尝试使用`__atomic_compare_exchange`函数来实现一个原子的增量操作。然而,这个错误指出所使用的内存模型不符合要求。
为了解决这个错误,你需要检查`IncrementIfNonzero`函数中对`__atomic_compare_exchange`函数的调用,并确保所使用的内存模型不会超过成功内存模型。
可能的解决方法包括:
- 检查代码中是否有其他地方修改了默认的内存模型设置。确保所有相关代码都使用相同的内存模
Function getMaxMinAvg(Arr,cttRead) max = CDbl(arr(0)) min = CDbl(arr(0)) sum = CDbl(arr(0)) ctra = -26 ctr27 = -27 ctrb = 0 ctrb27 = 0 For i = 0 to UBound(Arr) If CDbl(Arr(i)) < ctra Then ctrb = ctrb + 1 end if if CDbl(Arr(i)) < ctr27 Then ctrb27 = ctrb27 + 1 end if For i = 1 To UBound(Arr) If CDbl(Arr(i)) > max Then max = CDbl(Arr(i)) End If If Arr(i) < min Then min = CDbl(Arr(i)) End If sum = sum +CDbl(Arr(i)) getMaxMinAvg = Array(max,min,Round(sum/(UBound(Arr)+1),2),ctrb,i,Round(ctrb/(UBound(Arr)+1),2),ctrb27,cttRead) End Function 'Function zte_Send(oltname,iP,port,iPLast,iPnxt,sLot,fso,eXclPath,LOgfilePath,cnt,re,reNot) Function zte_Send(oltname,iP,port,iPLast,iPnxt,fso,eXclPath,LOgfilePath,cnt,re,reNot) port = Split(port,"/") s = port(1) p = port(2) If iPLast <> iP Then crt.session.Connect("/telnet "&iP) crt.Screen.WaitForString "Username:" crt.Screen.Send "tzztesuper" & vbcr crt.Screen.WaitForString "Password:" crt.Screen.Send "ZTE@suer2019" & vbcr crt.Screen.WaitForString "#" crt.Screen.Send "configure t" & vbcr crt.Screen.WaitForString "#" End If If crt.GetScriptTab.Session.Logging = True Then crt.GetScriptTab.Session.Log False End If crt.Session.LogFileName = LOgfilePath crt.GetScriptTab.Session.Log True if InStr(oltname,"中兴600") <> 0 or InStr(oltname,"C600") <> 0 then code = "show pon power onu-rx gpon_olt-1/" code = "show pon power onu-rx gpon_olt-1/" End If crt.Screen.send code & s & "/" & p & vbCr t = crt.Screen.WaitForStrings("--More--",")#") Do while t = 1 crt.Screen.Send " " t = crt.Screen.WaitForStrings("--More--",")#") crt.GetScriptTab.Session.Log False cttRead = fso.OpenTextFile(LOgfilePath).ReadAll If reNot.Test(cttRead) Then MaxMinAvg =Array("无ONU","0","0","0","0","0",cttRead) Elseif re.test(cttRead) Then 'rxArr = Split(re.Replace(Split(cttRead,String(77,"-"))(2),"$1"),vbCrLf) Set Matches = re.Execute(cttRead) tmpcnt = 0 For Each Match In Matches ReDim Preserve rxCDblArr(tmpcnt) rxCDblArr(tmpcnt) = CDbl(Match.SubMatches(0)) tmpcnt = tmpcnt +1 MaxMinAvg = getMaxMinAvg(rxCDblArr,cttRead) MaxMinAvg =Array("所有ONU离线","0","0","0","0","0",cttRead) End If If iPnxt <> iP Then crt.Screen.Send "exit"&vbCr crt.Screen.WaitForStrings "#" crt.Screen.Send "exit"&vbCr if InStr(oltname,"中兴600") <> 0 or InStr(oltname,"C600") <> 0 then crt.session.Disconnect crt.Screen.WaitForStrings "[yes/no]:" crt.Screen.Send "yes"&vbCr crt.session.Disconnect End If crt.sleep(500) End If zte_Send = MaxMinAvg End Function
最低
0.47元/天
开通会员,查看完整答案
成为会员后, 你将解锁
下载资源随意下
优质VIP博文免费学
优质文库回答免费看
C知道免费提问
付费资源9折优惠