1--- 2 3# ------------------------------------------------------------------- 4# Table 5# ------------------------------------------------------------------- 6# retrieve the chassis hardware (inventory) and extract the FPC 7# items. 8# ------------------------------------------------------------------- 9 10FpcHwTable: 11 rpc: get-chassis-inventory 12 item: .//name[starts-with(.,'FPC')]/parent::* 13 view: _fpc_hw_view 14 15FpcMiReHwTable: 16 rpc: get-chassis-inventory 17 item: .//name[starts-with(.,'FPC')]/parent::* 18 key: 19 - ancestor::multi-routing-engine-item/re-name 20 - name 21 view: _fpc_hw_view 22 23# ------------------------------------------------------------------- 24# View 25# ------------------------------------------------------------------- 26# use the underscore (_) so this definition is not 27# imported into the glboal namespace. We want to extract various 28# bits of information from the FPC items 29# ------------------------------------------------------------------- 30 31_fpc_hw_view: 32 fields: 33 sn: serial-number 34 pn: part-number 35 desc: description 36 ver: version 37 model: model-number 38 39# ------------------------------------------------------------------- 40# Table 41# ------------------------------------------------------------------- 42# retrieve the FPC status information; corresponds to: 43# > show chassis fpc 44# ------------------------------------------------------------------- 45 46FpcInfoTable: 47 rpc: get-fpc-information 48 item: .//fpc 49 key: slot 50 view: _fpc_info_view 51 52FpcMiReInfoTable: 53 rpc: get-fpc-information 54 item: .//fpc 55 key: 56 - ancestor::multi-routing-engine-item/re-name 57 - slot 58 view: _fpc_info_view 59 60_fpc_info_view: 61 fields: 62 state: state 63 memory: memory-heap-utilization 64 cpu: cpu-total 65 66 67