正则化检测TR069的参数路径是否合法

以下为一些基本的参数路径

Device.Ethernet.Interface.{5}.Enable
Device.Ethernet.Interface.{5}.Status
Device.Ethernet.Interface.{5}.MACAddress
Device.Ethernet.Interface.{5}.MaxBitRate
Device.Ethernet.Interface.{5}.SignTransMedia
Device.Ethernet.Interface.{5}.DuplexMode
Device.IP.Interface.{5}.IPv4Address.{3}.IPAddress
Device.IP.Interface.{4}.IPv4Address.{3}.DefaultGateway
Device.IP.Interface.{3}.IPv4Address.{3}.SubnetMask
Device.IP.Interface.{2}.IPv4Address.{3}.AddressingType
Device.IP.Interface.{2}.IPv4Address.{3}.PortType
Device.FPGA.{4}.rru.{2}.rruid
Device.FPGA.{4}.rru.{2}.rrusn
Device.FPGA.{4}.rru.{2}.rruFactor
Device.Cell.{9}.cellid
Device.Cell.{9}.rru.{1}.rruid
Device.Cell.{9}.cellGID
Device.DeviceInfo.ManufacturerOUI
Device.DeviceInfo.Manufacturer
Device.DeviceInfo.ModelName
Device.DeviceInfo.SerialNumber
Device.DeviceInfo.HardwareVersion
Device.DeviceInfo.SoftwareVersion
Device.DeviceInfo.HardwarePlatform
Device.DeviceInfo.AdditionalHardwareVersion
Device.DeviceInfo.AdditionalSoftwareVersion
Device.DeviceInfo.ProvisioningCode
Device.DeviceInfo.ProductClass
Device.DeviceInfo.UpTime
Device.DeviceInfo.3GPPSpecVersion
Device.DeviceInfo.FirstUseDate
Device.SoftwareCtrl.AutoActivateEnable
Device.SoftwareCtrl.ActivateTime
Device.SoftwareCtrl.ActivateEnable
Device.SoftwareCtrl.SystemCurrentVersion
Device.SoftwareCtrl.SystemBackupVersion
Device.FaultMgmt.ExpeditedEvent.{2}.PerceivedSeverity
Device.FaultMgmt.ExpeditedEvent.{2}.AdditionalText
Device.FaultMgmt.ExpeditedEvent.{2}.AdditionalInformation
Device.FaultMgmt.QueuedEvent.{2}.SerialNumber
Device.FaultMgmt.QueuedEvent.{2}.OUI
Device.FaultMgmt.QueuedEvent.{2}.EventTime
Device.FaultMgmt.QueuedEvent.{2}.AlarmIdentifier
Device.FaultMgmt.QueuedEvent.{2}.NotificationType
Device.FaultMgmt.QueuedEvent.{2}.ManagedObjectInstance
Device.FaultMgmt.QueuedEvent.{2}.EventType
Device.FaultMgmt.QueuedEvent.{2}.ProbableCause
Device.FaultMgmt.QueuedEvent.{2}.SpecificProblem
Device.FaultMgmt.QueuedEvent.{2}.PerceivedSeverity
Device.FaultMgmt.QueuedEvent.{2}.AdditionalText
Device.FaultMgmt.QueuedEvent.{2}.AdditionalInformation

Device.ACC.FPGA.FEC.FPGAFAN

正则化匹配脚本

#!/bin/bash

cat oid.txt | egrep "^Device\\.[a-zA-Z]\\w+\\.(([a-zA-Z]\\w+|\\{[0-9]\\})\\.)*[a-zA-Z0-9]\\w+"
发布了632 篇原创文章 · 获赞 325 · 访问量 57万+

猜你喜欢

转载自blog.csdn.net/Rong_Toa/article/details/105284601
今日推荐