2016-08-25 37 views

回答

0

SNMP數據包包含error-status整數字段,SNMP代理用它將處理請求時發生的某些類錯誤傳回SNMP管理器。錯誤是enumerated,以便每個整數值都有明確的語義。那就是:

```

  error-status   -- sometimes ignored 
      INTEGER { 
       noError(0), 
       tooBig(1), 
       noSuchName(2), -- for proxy compatibility 
       badValue(3),  -- for proxy compatibility 
       readOnly(4),  -- for proxy compatibility 
       genErr(5), 
       ... 

```

注意,沒有誤差由0計算結果爲False Python中的價值體現。

所以pysnmp errorStatus只是一個整數,當你打電話給.prettyPrint()時,它打印出對人性化的枚舉錯誤的描述。

+0

thankyou ..... @ llyaEtingof – spooky

相關問題