first commit
This commit is contained in:
71
docs/h3c_netconf_compoents_with_type.md
Normal file
71
docs/h3c_netconf_compoents_with_type.md
Normal file
@@ -0,0 +1,71 @@
|
||||
# 获取所有compoent列表,并带上type
|
||||
./run_yangcli.sh "sget /oc-platform:components/oc-platform:component/oc-platform:state/oc-platform:type"
|
||||
|
||||
rpc-reply {
|
||||
data {
|
||||
components {
|
||||
component "1.H3C S9827-128DH" {
|
||||
name '1.H3C S9827-128DH'
|
||||
state {
|
||||
type FRU
|
||||
}
|
||||
}
|
||||
component "2.H3C S9827-128DH" {
|
||||
name '2.H3C S9827-128DH'
|
||||
state {
|
||||
type CHASSIS
|
||||
}
|
||||
}
|
||||
component "3.Slot 1" {
|
||||
name '3.Slot 1'
|
||||
state {
|
||||
type FRU
|
||||
}
|
||||
}
|
||||
component "4.Slot 1" {
|
||||
name '4.Slot 1'
|
||||
state {
|
||||
type FRU
|
||||
}
|
||||
}
|
||||
component "5.Slot 1" {
|
||||
name '5.Slot 1'
|
||||
state {
|
||||
type FRU
|
||||
}
|
||||
}
|
||||
...
|
||||
component 75.TwoHundredGigE1/0/4:1 {
|
||||
name 75.TwoHundredGigE1/0/4:1
|
||||
state {
|
||||
type TRANSCEIVER
|
||||
}
|
||||
}
|
||||
component 76.TwoHundredGigE1/0/4:2 {
|
||||
name 76.TwoHundredGigE1/0/4:2
|
||||
state {
|
||||
type TRANSCEIVER
|
||||
}
|
||||
}
|
||||
component 79.TwoHundredGigE1/0/5:1 {
|
||||
name 79.TwoHundredGigE1/0/5:1
|
||||
state {
|
||||
type TRANSCEIVER
|
||||
}
|
||||
}
|
||||
...
|
||||
component 1044.OCH-1/0/72.4 {
|
||||
name 1044.OCH-1/0/72.4
|
||||
state {
|
||||
type OPTICAL_CHANNEL
|
||||
}
|
||||
}
|
||||
component "2663.CHIP 1" {
|
||||
name '2663.CHIP 1'
|
||||
state {
|
||||
type CHIP
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
225
docs/h3c_netconf_components_with_temperature.md
Normal file
225
docs/h3c_netconf_components_with_temperature.md
Normal file
@@ -0,0 +1,225 @@
|
||||
|
||||
./run_yangcli.sh "sget /oc-platform:components/oc-platform:component/oc-platform:state/oc-platform:temperature"
|
||||
|
||||
rpc-reply {
|
||||
data {
|
||||
components {
|
||||
component 29.Board {
|
||||
name 29.Board
|
||||
state {
|
||||
temperature {
|
||||
instant 50.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "30.PSU 1" {
|
||||
name '30.PSU 1'
|
||||
state {
|
||||
temperature {
|
||||
instant 26.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "31.PSU 2" {
|
||||
name '31.PSU 2'
|
||||
state {
|
||||
temperature {
|
||||
instant 26.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "32.PSU 3" {
|
||||
name '32.PSU 3'
|
||||
state {
|
||||
temperature {
|
||||
instant 26.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "33.PSU 4" {
|
||||
name '33.PSU 4'
|
||||
state {
|
||||
temperature {
|
||||
instant 26.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "43.SENSOR 1" {
|
||||
name '43.SENSOR 1'
|
||||
state {
|
||||
temperature {
|
||||
instant 40.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "44.SENSOR 2" {
|
||||
name '44.SENSOR 2'
|
||||
state {
|
||||
temperature {
|
||||
instant 50.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "45.SENSOR 3" {
|
||||
name '45.SENSOR 3'
|
||||
state {
|
||||
temperature {
|
||||
instant 27.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "46.SENSOR 4" {
|
||||
name '46.SENSOR 4'
|
||||
state {
|
||||
temperature {
|
||||
instant 25.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "47.SENSOR 5" {
|
||||
name '47.SENSOR 5'
|
||||
state {
|
||||
temperature {
|
||||
instant 28.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "48.SENSOR 6" {
|
||||
name '48.SENSOR 6'
|
||||
state {
|
||||
temperature {
|
||||
instant 36.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "49.SENSOR 7" {
|
||||
name '49.SENSOR 7'
|
||||
state {
|
||||
temperature {
|
||||
instant 36.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "50.SENSOR 8" {
|
||||
name '50.SENSOR 8'
|
||||
state {
|
||||
temperature {
|
||||
instant 47.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "51.SENSOR 9" {
|
||||
name '51.SENSOR 9'
|
||||
state {
|
||||
temperature {
|
||||
instant 24.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component "59.Main Board" {
|
||||
name '59.Main Board'
|
||||
state {
|
||||
temperature {
|
||||
instant 50.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 63.TwoHundredGigE1/0/1:1 {
|
||||
name 63.TwoHundredGigE1/0/1:1
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 64.TwoHundredGigE1/0/1:2 {
|
||||
name 64.TwoHundredGigE1/0/1:2
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 67.TwoHundredGigE1/0/2:1 {
|
||||
name 67.TwoHundredGigE1/0/2:1
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 68.TwoHundredGigE1/0/2:2 {
|
||||
name 68.TwoHundredGigE1/0/2:2
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 71.TwoHundredGigE1/0/3:1 {
|
||||
name 71.TwoHundredGigE1/0/3:1
|
||||
state {
|
||||
temperature {
|
||||
instant 46.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 72.TwoHundredGigE1/0/3:2 {
|
||||
name 72.TwoHundredGigE1/0/3:2
|
||||
state {
|
||||
temperature {
|
||||
instant 46.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 75.TwoHundredGigE1/0/4:1 {
|
||||
name 75.TwoHundredGigE1/0/4:1
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 76.TwoHundredGigE1/0/4:2 {
|
||||
name 76.TwoHundredGigE1/0/4:2
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 319.FourHundredGigE1/0/65 {
|
||||
name 319.FourHundredGigE1/0/65
|
||||
state {
|
||||
temperature {
|
||||
instant 46.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 323.FourHundredGigE1/0/66 {
|
||||
name 323.FourHundredGigE1/0/66
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 327.FourHundredGigE1/0/67 {
|
||||
name 327.FourHundredGigE1/0/67
|
||||
state {
|
||||
temperature {
|
||||
instant 46.0
|
||||
}
|
||||
}
|
||||
}
|
||||
component 331.FourHundredGigE1/0/68 {
|
||||
name 331.FourHundredGigE1/0/68
|
||||
state {
|
||||
temperature {
|
||||
instant 45.0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
166
docs/h3c_netconf_components_with_transceiver.md
Normal file
166
docs/h3c_netconf_components_with_transceiver.md
Normal file
@@ -0,0 +1,166 @@
|
||||
./run_yangcli.sh "sget /oc-platform:components/oc-platform:component/oc-transceiver:transceiver"
|
||||
|
||||
rpc-reply {
|
||||
data {
|
||||
components {
|
||||
component {
|
||||
name 63.TwoHundredGigE1/0/1:1
|
||||
transceiver {
|
||||
config {
|
||||
enabled false
|
||||
fec-mode oc-platform-types:FEC_AUTO
|
||||
}
|
||||
state {
|
||||
enabled false
|
||||
fec-mode oc-platform-types:FEC_AUTO
|
||||
present PRESENT
|
||||
form-factor oc-opt-types:OTHER
|
||||
vendor H3C
|
||||
vendor-part EQ854HG01M3-H3C
|
||||
vendor-rev 03
|
||||
ethernet-pmd oc-opt-types:ETH_UNDEFINED
|
||||
serial-no G80231AM995701HH
|
||||
date-code 2000-00-00T00:00:00
|
||||
fault-condition false
|
||||
voltage {
|
||||
instant 3.34
|
||||
}
|
||||
supply-voltage {
|
||||
instant 3.34
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
input-power {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2147483647.00
|
||||
}
|
||||
}
|
||||
physical-channels {
|
||||
channel 1 {
|
||||
index 1
|
||||
config {
|
||||
index 1
|
||||
associated-optical-channel 583.OCH-1/0/1.1
|
||||
description 1/0/1:1
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 1
|
||||
associated-optical-channel 583.OCH-1/0/1.1
|
||||
description 1/0/1:1
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviation {
|
||||
instant 2147483647.0
|
||||
}
|
||||
tec-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2.05
|
||||
}
|
||||
input-power {
|
||||
instant -3.55
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 8.82
|
||||
}
|
||||
}
|
||||
}
|
||||
channel 2 {
|
||||
index 2
|
||||
config {
|
||||
index 2
|
||||
associated-optical-channel 583.OCH-1/0/1.1
|
||||
description 1/0/1:2
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 2
|
||||
associated-optical-channel 583.OCH-1/0/1.1
|
||||
description 1/0/1:2
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviation {
|
||||
instant 2147483647.0
|
||||
}
|
||||
tec-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2.18
|
||||
}
|
||||
input-power {
|
||||
instant 1.07
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 8.72
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
component {
|
||||
name 64.TwoHundredGigE1/0/1:2
|
||||
transceiver {
|
||||
config {
|
||||
enabled false
|
||||
fec-mode oc-platform-types:FEC_AUTO
|
||||
}
|
||||
state {
|
||||
enabled false
|
||||
fec-mode oc-platform-types:FEC_AUTO
|
||||
present PRESENT
|
||||
form-factor oc-opt-types:OTHER
|
||||
vendor H3C
|
||||
vendor-part EQ854HG01M3-H3C
|
||||
vendor-rev 03
|
||||
ethernet-pmd oc-opt-types:ETH_UNDEFINED
|
||||
serial-no G80231AM995701HH
|
||||
date-code 2000-00-00T00:00:00
|
||||
fault-condition false
|
||||
voltage {
|
||||
instant 3.34
|
||||
}
|
||||
supply-voltage {
|
||||
instant 3.34
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
input-power {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2147483647.00
|
||||
}
|
||||
}
|
||||
physical-channels {
|
||||
channel 1 {
|
||||
index 1
|
||||
config {
|
||||
index 1
|
||||
associated-optical-channel 583.OCH-1/0/1.1
|
||||
description 1/0/1:1
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 1
|
||||
associated-optical-channel 583.OCH-1/0/1.1
|
||||
description 1/0/1:1
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviat
|
||||
|
||||
...
|
||||
|
||||
196
docs/h3c_netconf_transceiver_component.md
Normal file
196
docs/h3c_netconf_transceiver_component.md
Normal file
@@ -0,0 +1,196 @@
|
||||
逐个光模块compoent去获取光模块的详细信息,./run_yangcli.sh "sget /oc-platform:components/oc-platform:component[oc-platform:name='323.FourHundredGigE1/0/66']"
|
||||
|
||||
rpc-reply {
|
||||
data {
|
||||
components {
|
||||
component {
|
||||
name 323.FourHundredGigE1/0/66
|
||||
state {
|
||||
name 323.FourHundredGigE1/0/66
|
||||
type TRANSCEIVER
|
||||
serial-no G80231AM995701JX
|
||||
firmware-version 3.0
|
||||
id 323
|
||||
location 'Slot 1 Subslot 0'
|
||||
removable true
|
||||
oper-status oc-platform-types:ACTIVE
|
||||
empty false
|
||||
parent '59.Main Board'
|
||||
allocated-power 12
|
||||
hardware-version 1.0
|
||||
temperature {
|
||||
instant 40.0
|
||||
}
|
||||
}
|
||||
transceiver {
|
||||
config {
|
||||
enabled false
|
||||
fec-mode oc-platform-types:FEC_AUTO
|
||||
}
|
||||
state {
|
||||
enabled false
|
||||
fec-mode oc-platform-types:FEC_AUTO
|
||||
present PRESENT
|
||||
form-factor oc-opt-types:OTHER
|
||||
vendor H3C
|
||||
vendor-part EQ854HG01M3-H3C
|
||||
vendor-rev 03
|
||||
ethernet-pmd oc-opt-types:ETH_UNDEFINED
|
||||
serial-no G80231AM995701JX
|
||||
date-code 2000-00-00T00:00:00
|
||||
fault-condition false
|
||||
voltage {
|
||||
instant 3.32
|
||||
}
|
||||
supply-voltage {
|
||||
instant 3.32
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
input-power {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2147483647.00
|
||||
}
|
||||
}
|
||||
physical-channels {
|
||||
channel 1 {
|
||||
index 1
|
||||
config {
|
||||
index 1
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:1
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 1
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:1
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviation {
|
||||
instant 2147483647.0
|
||||
}
|
||||
tec-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2.23
|
||||
}
|
||||
input-power {
|
||||
instant 0.41
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 8.91
|
||||
}
|
||||
}
|
||||
}
|
||||
channel 2 {
|
||||
index 2
|
||||
config {
|
||||
index 2
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:2
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 2
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:2
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviation {
|
||||
instant 2147483647.0
|
||||
}
|
||||
tec-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2.10
|
||||
}
|
||||
input-power {
|
||||
instant 0.68
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 8.77
|
||||
}
|
||||
}
|
||||
}
|
||||
channel 3 {
|
||||
index 3
|
||||
config {
|
||||
index 3
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:3
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 3
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:3
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviation {
|
||||
instant 2147483647.0
|
||||
}
|
||||
tec-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 1.91
|
||||
}
|
||||
input-power {
|
||||
instant 1.08
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 8.74
|
||||
}
|
||||
}
|
||||
}
|
||||
channel 4 {
|
||||
index 4
|
||||
config {
|
||||
index 4
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:4
|
||||
tx-laser true
|
||||
}
|
||||
state {
|
||||
index 4
|
||||
associated-optical-channel 648.OCH-1/0/66.1
|
||||
description 1/0/66:4
|
||||
tx-laser true
|
||||
laser-temperature {
|
||||
instant 2147483647.0
|
||||
}
|
||||
target-frequency-deviation {
|
||||
instant 2147483647.0
|
||||
}
|
||||
tec-current {
|
||||
instant 2147483647.00
|
||||
}
|
||||
output-power {
|
||||
instant 2.07
|
||||
}
|
||||
input-power {
|
||||
instant 0.68
|
||||
}
|
||||
laser-bias-current {
|
||||
instant 8.72
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user