---
# System prepended metadata

title: Untitled

---

proposed MIB

### AP Config
* OID: __1.3.6.1.4.1.2076.81.2.2.1.26__
* type: string
* command format: `<ap enabled> <fec supported> <fec required> <flow control enabled>`
* _ap enabled_ options:
  - `0`: disabled
  - `1`: enabled
  - `-1`: this port doesn't support 802.3ap -- readonly
* _FEC supported_ options: 
  - `0`: disabled
  - `1`: FC FEC
  - `2`: RS FEC
  - `3`: BOTH FEC
  - `4`: RS FEC 544
* _FEC required_ options:
  - `0`: disabled
  - `1`: FC FEC
  - `2`: RS FEC
  - `3`: BOTH FEC
  - `4`: RS FEC 544
* _flow control enabled_ options:
  - `0`: disabled
  - `1`: enabled
* examples
```
# disable port 3's 802.3AP function
snmpset -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.3 s "0" 

# set port 3's 802.3AP configuration
snmpset -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.3 s "1 3 3 0"

# get port 2's 802.3AP configuration
snmpget -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.2 
iso.3.6.1.4.1.2076.81.2.2.1.26.2 = STRING: "1 2 2 0"
```

### AP status
* OID: __1.3.6.1.4.1.2076.81.2.2.1.27__
* type: string
* return string format: `<negotiation succeed> <fec enabled> <negotiated fec type> <RX FC enabled> <TX FC enabled>`
* _negotiation succeed_:
  - `0`: no
  - `1`: yes
  - `-1`: this port doesn't support 802.3ap
* _fec enabled_:
  - `0`: no
  - `1`: yes
  - `-1`: this port doesn't support 802.3ap
* _negotiated fec type_: 
  - `0`: none
  - `1`: FC FEC 
  - `2`: RS FEC
  - `3`: RS FEC 544
  -  for ports not supporting 802.3ap, this field has no meaning 
* _RX FC enabled_: 
  - `0`: no
  - `1`: yes
  -  for ports not supporting 802.3ap, this field has no meaning 
* _TX FC enabled_:
  - `0`: no
  - `1`: yes
  -  for ports not supporting 802.3ap, this field has no meaning 
```
#get port 2's 802.3AP status
snmpget -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.27.2
iso.1.3.6.1.4.1.2076.81.1.129.2 = STRING: "1 1 2 0 0"

#get port 17's 802.3AP status and according the result it doesn't support 802.3ap at all
snmpget -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.27.17
iso.1.3.6.1.4.1.2076.81.1.129.2 = STRING: "-1 -1 0 0 0"
```

## reference implementation
With UI spec, using port 2 as example
* `none`: just disable 802.3AP
```
snmpset -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.2 s "0"
```
* `auto`: supports both fec mode and doesn't require peer's FEC mode.
```
snmpset -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.2 s "1 3 0 0" 
```
* `RS FEC`: 
```
snmpset -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.2 s "1 3 2 0"
```
* `FC FEC`: 
```
snmpset -c NETMAN localhost 1.3.6.1.4.1.2076.81.2.2.1.26.s s "1 3 1 0"
```

