Closed mzbroch closed 5 years ago
@mzbroch Can you send me the output of the following three commands:
cpu_cmd = 'show proc cpu'
mem_cmd = 'show memory statistics'
temp_cmd = 'show env temperature status'
I want this output so I can add this to the unit tests.
See this issue for additional reference:
show memory statistics
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor 13948718 208369892 136537624 71832268 71715228 71791600
show proc cpu
CPU utilization for five seconds: 12%/0%; one minute: 14%; five minutes: 13%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
1 156 9328 16 0.00% 0.00% 0.00% 0 Chunk Manager
2 6460 4458717 1 0.00% 0.00% 0.00% 0 Load Meter
3 240 185801 1 0.00% 0.00% 0.00% 0 DHCPD Timer
4 0 1 0 0.00% 0.00% 0.00% 0 Deferred Events
5 0 1 0 0.00% 0.00% 0.00% 0 Retransmission o
6 0 1 0 0.00% 0.00% 0.00% 0 IPC ISSU Receive
7 49875399 4164273 11976 0.00% 0.19% 0.21% 0 Check heaps
8 24 1930 12 0.00% 0.00% 0.00% 0 Pool Manager
9 0 2 0 0.00% 0.00% 0.00% 0 Timers
10 0 2 0 0.00% 0.00% 0.00% 0 Serial Backgroun
11 0 1 0 0.00% 0.00% 0.00% 0 Crash writer
12 32 13 2461 0.00% 0.00% 0.00% 0 RF Slave Main Th
13 0 1 0 0.00% 0.00% 0.00% 0 ifIndex Receive
14 1257 380305 3 0.00% 0.00% 0.00% 0 ARP Input
15 0 1 0 0.00% 0.00% 0.00% 0 CEF MIB API
16 0 1 0 0.00% 0.00% 0.00% 0 AAA_SERVER_DEADT
17 0 2 0 0.00% 0.00% 0.00% 0 AAA high-capacit
18 0 1 0 0.00% 0.00% 0.00% 0 Policy Manager
19 16 8 2000 0.00% 0.00% 0.00% 0 Entity MIB API
20 0 1 0 0.00% 0.00% 0.00% 0 IFS Agent Manage
21 9856 4454018 2 0.00% 0.00% 0.00% 0 IPC Event Notifi
22 23060 22270078 1 0.00% 0.00% 0.00% 0 IPC Mcast Pendin
23 2744 371170 7 0.00% 0.00% 0.00% 0 IPC Dynamic Cach
24 0 1 0 0.00% 0.00% 0.00% 0 IPC Session Serv
25 0 1 0 0.00% 0.00% 0.00% 0 IPC Zone Manager
26 21720 22270078 0 0.00% 0.00% 0.00% 0 IPC Periodic Tim
27 0 1 0 0.00% 0.00% 0.00% 0 IPC Managed Time
28 0 1 0 0.00% 0.00% 0.00% 0 IPC Seat TX Cont
29 20016 22270078 0 0.00% 0.00% 0.00% 0 IPC Deferred Por
30 0 1 0 0.00% 0.00% 0.00% 0 IPC Seat Manager
31 80 5 16000 0.00% 0.00% 0.00% 0 PrstVbl
32 0 1 0 0.00% 0.00% 0.00% 0 client_entity_se
33 0 1 0 0.00% 0.00% 0.00% 0 SERIAL A'detect
34 0 1 0 0.00% 0.00% 0.00% 0 ARP Snoop
35 30926 22270078 1 0.00% 0.00% 0.00% 0 Dynamic ARP Insp
36 24390 22270061 1 0.07% 0.00% 0.00% 0 GraphIt
37 0 1 0 0.00% 0.00% 0.00% 0 Critical Bkgnd
38 141435 2360130 59 0.00% 0.00% 0.00% 0 Net Background
39 673957 22290656 30 0.00% 0.03% 0.02% 0 IDB Work
40 24 1716 13 0.00% 0.00% 0.00% 0 Logger
41 42461 22270072 1 0.00% 0.00% 0.00% 0 TTY Background
42 53857 22271218 2 0.00% 0.00% 0.00% 0 Per-Second Jobs
43 25172930 393604 63955 0.00% 0.16% 0.11% 0 Per-minute Jobs
44 16 26 615 0.00% 0.00% 0.00% 0 IF-MGR control p
45 4 127 31 0.00% 0.00% 0.00% 0 IF-MGR event pro
46 0 1 0 0.00% 0.00% 0.00% 0 ISSU PROCESS IPC
47 0 1 0 0.00% 0.00% 0.00% 0 PrstVbl IPC Msg
48 0 2 0 0.00% 0.00% 0.00% 0 cpf_msg_holdq_pr
49 0 1 0 0.00% 0.00% 0.00% 0 cpf_msg_rcvq_pro
50 0 2 0 0.00% 0.00% 0.00% 0 AutoQoS HA
51 0 2 0 0.00% 0.00% 0.00% 0 IP Host Track HA
52 0 3 0 0.00% 0.00% 0.00% 0 ARP HA
53 0 1 0 0.00% 0.00% 0.00% 0 IP Admission HA
54 0 1 0 0.00% 0.00% 0.00% 0 DHCPC HA
55 0 1 0 0.00% 0.00% 0.00% 0 DHCPD HA
56 329878 44540439 7 0.07% 0.03% 0.02% 0 DHCPD Receive
57 0 1 0 0.00% 0.00% 0.00% 0 Network-rf Notif
58 290618834 673886698 431 3.67% 3.54% 3.53% 0 Cat4k Mgmt HiPri
59 1327738430 635408124 2089 8.00% 9.11% 8.67% 0 Cat4k Mgmt LoPri
60 5415 4734834 1 0.00% 0.00% 0.00% 0 Galios Reschedul
61 0 3 0 0.00% 0.00% 0.00% 0 IOS ACL Helper
62 0 44 0 0.00% 0.00% 0.00% 0 BACK CHECK
63 4 11 363 0.00% 0.00% 0.00% 0 RF Master Main T
64 0 7 0 0.00% 0.00% 0.00% 0 RF Master Status
65 10005 261839 38 0.00% 0.00% 0.00% 0 Net Input
66 272293 4456595 61 0.00% 0.00% 0.00% 0 Compute load avg
67 0 1 0 0.00% 0.00% 0.00% 0 AggMgr Process
68 832 478516 1 0.00% 0.00% 0.00% 0 Transport Port A
69 114956 4580048 25 0.00% 0.00% 0.00% 0 HC Counter Timer
70 0 1 0 0.00% 0.00% 0.00% 0 SFF8472
71 0 201 0 0.00% 0.00% 0.00% 0 EEM ED ND
72 4 2 2000 0.00% 0.00% 0.00% 0 EEM ED Identity
73 0 3 0 0.00% 0.00% 0.00% 0 EEM ED MAT
74 0 2 0 0.00% 0.00% 0.00% 0 Ethernet CFM
75 158386 135806926 1 0.00% 0.01% 0.00% 0 Ethernet Timer C
76 25393082808250072 0 0.39% 0.33% 0.32% 0 Ethernet Msec Ti
77 0 2 0 0.00% 0.00% 0.00% 0 Ethernet OAM Pro
78 0 1 0 0.00% 0.00% 0.00% 0 PPPOE IA
79 0 2 0 0.00% 0.00% 0.00% 0 REP Topology cha
80 4 48 83 0.00% 0.00% 0.00% 0 Auth Manager
81 0 2 0 0.00% 0.00% 0.00% 0 CMD HANDLER
82 0 2 0 0.00% 0.00% 0.00% 0 Dot1x Mgr Proces
83 0 1 0 0.00% 0.00% 0.00% 0 AUTH POLICY Fram
84 0 1 0 0.00% 0.00% 0.00% 0 802.1x Webauth F
85 8 46 173 0.00% 0.00% 0.00% 0 802.1x switch
86 20360 262599 77 0.00% 0.00% 0.00% 0 DTP Protocol
87 0 1 0 0.00% 0.00% 0.00% 0 EAP Framework
88 0 1 0 0.00% 0.00% 0.00% 0 EAP Test
89 0 1 0 0.00% 0.00% 0.00% 0 PPCP RP Stats Ba
90 148 371606 0 0.00% 0.00% 0.00% 0 Port-Security
91 0 2 0 0.00% 0.00% 0.00% 0 EFP Errd
92 0 21 0 0.00% 0.00% 0.00% 0 Qos If Bw Change
93 606770 222933574 2 0.07% 0.09% 0.08% 0 UDLD
94 0 2 0 0.00% 0.00% 0.00% 0 IP Host Track Pr
95 0 1 0 0.00% 0.00% 0.00% 0 Switch Backup In
96 2201 371169 5 0.00% 0.00% 0.00% 0 MMN bkgrd proces
97 11146 2227010 5 0.00% 0.00% 0.00% 0 Ethchnl
98 176 2299 76 0.00% 0.00% 0.00% 0 AAA Server
99 0 1 0 0.00% 0.00% 0.00% 0 AAA ACCT Proc
100 0 1 0 0.00% 0.00% 0.00% 0 ACCT Periodic Pr
101 0 1 0 0.00% 0.00% 0.00% 0 AAA System Acct
102 0 1 0 0.00% 0.00% 0.00% 0 Auth-proxy AAA B
103 48 74321 0 0.00% 0.00% 0.00% 0 IP Admin SM Proc
104 0 5 0 0.00% 0.00% 0.00% 0 SpanTree Flush
105 0 1 0 0.00% 0.00% 0.00% 0 CEF RP IPC Backg
106 0 1 0 0.00% 0.00% 0.00% 0 cpf_process_tpQ
107 0 2 0 0.00% 0.00% 0.00% 0 AAA Dictionary R
108 204 185803 1 0.00% 0.00% 0.00% 0 DHCP Snooping
109 0 1 0 0.00% 0.00% 0.00% 0 DHCP Snooping db
110 0 2 0 0.00% 0.00% 0.00% 0 EAPoUDP Process
111 0 3 0 0.00% 0.00% 0.00% 0 CEF switching ba
112 888902 6523334 136 0.00% 0.02% 0.00% 0 IP Input
113 0 1 0 0.00% 0.00% 0.00% 0 ICMP event handl
114 92269 43496221 2 0.00% 0.00% 0.00% 0 IP ARP Track
115 0 7 0 0.00% 0.00% 0.00% 0 ADJ resolve proc
116 0 2 0 0.00% 0.00% 0.00% 0 ADJ NSF process
117 0 1 0 0.00% 0.00% 0.00% 0 IPv6 ping proces
118 0 6 0 0.00% 0.00% 0.00% 0 Collection proce
119 205803 5955522 34 0.07% 0.01% 0.00% 0 Spanning Tree
120 12 138 86 0.00% 0.00% 0.00% 0 SXP CORE
121 15030 453854 33 0.00% 0.00% 0.00% 0 CEF background p
122 0 1 0 0.00% 0.00% 0.00% 0 IP IRDP
123 0 1 0 0.00% 0.00% 0.00% 0 AAA HA INT
124 0 3 0 0.00% 0.00% 0.00% 0 XDR mcast
125 0 1 0 0.00% 0.00% 0.00% 0 IPC LC Message H
126 0 1 0 0.00% 0.00% 0.00% 0 XDR RP Ping Back
127 124 186023 0 0.00% 0.00% 0.00% 0 XDR RP backgroun
128 0 1 0 0.00% 0.00% 0.00% 0 XDR RP Test Back
129 3198 172589 18 0.00% 0.00% 0.00% 0 TCP Timer
130 39970 478452 83 0.00% 0.00% 0.00% 0 TCP Protocols
131 15953 22270133 0 0.00% 0.00% 0.00% 0 Socket Timers
132 68 74417 0 0.00% 0.00% 0.00% 0 HTTP CORE
133 236 278698 0 0.00% 0.00% 0.00% 0 Cluster L2
134 14025 2227008 6 0.00% 0.00% 0.00% 0 Cluster RARP
135 0 1 0 0.00% 0.00% 0.00% 0 COPS
136 0 2 0 0.00% 0.00% 0.00% 0 ECFM HA IPC flow
137 0 1 0 0.00% 0.00% 0.00% 0 Probe Input
138 0 1 0 0.00% 0.00% 0.00% 0 RARP Input
139 0 2 0 0.00% 0.00% 0.00% 0 REP LSL Proc
140 0 2 0 0.00% 0.00% 0.00% 0 REP BPA/EPA Proc
141 0 1 0 0.00% 0.00% 0.00% 0 Critical Auth
142 0 2 0 0.00% 0.00% 0.00% 0 Dot1x Supplicant
143 0 2 0 0.00% 0.00% 0.00% 0 Dot1x Supplicant
144 0 2 0 0.00% 0.00% 0.00% 0 Dot1x Supplicant
145 0 1 0 0.00% 0.00% 0.00% 0 MAB Framework
146 44 170 258 0.00% 0.00% 0.00% 0 IGMPSN L2MCM
147 0 5 0 0.00% 0.00% 0.00% 0 IGMPSN MRD
148 0 11 0 0.00% 0.00% 0.00% 0 IGMPSN
149 0 1 0 0.00% 0.00% 0.00% 0 IGMPQR
150 0 1 0 0.00% 0.00% 0.00% 0 IGMPSN-HA
151 16 63 253 0.00% 0.00% 0.00% 0 MLDSN L2MCM
152 0 1 0 0.00% 0.00% 0.00% 0 MRD
153 0 1 0 0.00% 0.00% 0.00% 0 MLD_SNOOP
154 0 2 0 0.00% 0.00% 0.00% 0 RETRY_REPOPULATE
155 0 2 0 0.00% 0.00% 0.00% 0 L2TRACE SERVER
156 0 1 0 0.00% 0.00% 0.00% 0 DHCP Snooping HA
157 0 2 0 0.00% 0.00% 0.00% 0 ATIP_UDP_TSK
158 254546 371537 685 0.00% 0.00% 0.00% 0 IP Background
159 35926 371217 96 0.00% 0.00% 0.00% 0 IP RIB Update
160 0 2 0 0.00% 0.00% 0.00% 0 HSRP HA
161 57415 2227008 25 0.00% 0.00% 0.00% 0 QoS stats proces
162 91265 26328068 3 0.07% 0.00% 0.00% 0 CEF: IPv4 proces
163 0 3 0 0.00% 0.00% 0.00% 0 ADJ background
164 0 1 0 0.00% 0.00% 0.00% 0 CFMPAL Process
165 0 1 0 0.00% 0.00% 0.00% 0 EPM MAIN PROCESS
166 0 1 0 0.00% 0.00% 0.00% 0 EM Background Pr
167 834 7528 110 0.00% 0.00% 0.00% 0 LOCAL AAA
168 0 2 0 0.00% 0.00% 0.00% 0 ENABLE AAA
169 0 2 0 0.00% 0.00% 0.00% 0 LINE AAA
170 0 3 0 0.00% 0.00% 0.00% 0 LDAP process
171 68 17 4000 0.00% 0.00% 0.00% 0 SpanTree Helper
172 0 2 0 0.00% 0.00% 0.00% 0 TPLUS
173 0 2 0 0.00% 0.00% 0.00% 0 REP Switch Helpe
174 12 12 1000 0.00% 0.00% 0.00% 0 crypto engine pr
175 0 1 0 0.00% 0.00% 0.00% 0 encrypt proc
176 0 4 0 0.00% 0.00% 0.00% 0 Crypto CA
177 0 1 0 0.00% 0.00% 0.00% 0 Crypto PKI-CRL
178 0 2 0 0.00% 0.00% 0.00% 0 DHCP Security He
179 0 2 0 0.00% 0.00% 0.00% 0 DiagCard1/-1
180 8 3 2666 0.00% 0.00% 0.00% 0 Online Diag EEM
181 43262 3690029 11 0.00% 0.00% 0.00% 0 PM Callback
182 12 7 1714 0.00% 0.00% 0.00% 0 VLAN Manager
183 1813 1786240 1 0.00% 0.00% 0.00% 0 dhcp snooping sw
184 0 7 0 0.00% 0.00% 0.00% 0 VTP Trap Process
185 69463 22187479 3 0.00% 0.00% 0.00% 0 DVMRP Timers
186 0 1 0 0.00% 0.00% 0.00% 0 DATA Transfer Pr
187 0 1 0 0.00% 0.00% 0.00% 0 DATA Collector
188 61042 23428170 2 0.00% 0.00% 0.00% 0 NTP
189 0 1 0 0.00% 0.00% 0.00% 0 Test AAA Client
190 20 730 27 0.00% 0.00% 0.00% 0 AAA SEND STOP EV
191 36 1200 30 0.00% 0.00% 0.00% 0 EEM ED Syslog
192 0 2 0 0.00% 0.00% 0.00% 0 EEM ED Routing
193 0 1 0 0.00% 0.00% 0.00% 0 Syslog Traps
194 0 2 0 0.00% 0.00% 0.00% 0 CTS HA
195 0 1 0 0.00% 0.00% 0.00% 0 Online Diag CNS
196 0 1 0 0.00% 0.00% 0.00% 0 Online Diag CNS
197 0 5 0 0.00% 0.00% 0.00% 0 SPAN switch
198 0 1 0 0.00% 0.00% 0.00% 0 IP SLAs Ethernet
199 0 1 0 0.00% 0.00% 0.00% 0 IP SLAs AutoEthe
200 24 198 121 0.00% 0.00% 0.00% 0 EEM Server
201 0 2 0 0.00% 0.00% 0.00% 0 EEM Policy Direc
202 20 879 22 0.00% 0.00% 0.00% 0 Syslog
203 12 2 6000 0.00% 0.00% 0.00% 0 Call Home proces
204 5961338 32901 181195 0.00% 0.00% 0.00% 0 crypto sw pk pro
205 0 3 0 0.00% 0.00% 0.00% 0 EEM ED CLI
206 0 3 0 0.00% 0.00% 0.00% 0 EEM ED Counter
207 0 3 0 0.00% 0.00% 0.00% 0 EEM ED Interface
208 0 3 0 0.00% 0.00% 0.00% 0 EEM ED IOSWD
209 0 3 0 0.00% 0.00% 0.00% 0 EEM ED None
210 0 3 0 0.00% 0.00% 0.00% 0 EEM ED OIR
211 0 3 0 0.00% 0.00% 0.00% 0 EEM ED RF
212 4 3 1333 0.00% 0.00% 0.00% 0 EEM ED SNMP
213 2080 603154 3 0.00% 0.00% 0.00% 0 EEM ED Timer
214 0 3 0 0.00% 0.00% 0.00% 0 EEM ED SNMP Obje
215 0 2 0 0.00% 0.00% 0.00% 0 EEM ED SNMP Noti
216 0 3 0 0.00% 0.00% 0.00% 0 EEM ED Test
217 4 3 1333 0.00% 0.00% 0.00% 0 EEM ED Config
218 0 3 0 0.00% 0.00% 0.00% 0 EEM ED Env
219 0 3 0 0.00% 0.00% 0.00% 0 EM ED GOLD
220 0 3 0 0.00% 0.00% 0.00% 0 EEM ED RPC
221 0 3 0 0.00% 0.00% 0.00% 0 RBM CORE
222 0 3 0 0.00% 0.00% 0.00% 0 IPv6 RIB Event H
223 0 1 0 0.00% 0.00% 0.00% 0 SNMP Timers
224 6131 396257 15 0.00% 0.00% 0.00% 0 Call Home Timer
225 829 12385 66 0.00% 0.00% 0.00% 0 SSH Event handle
226 3317 2790992 1 0.00% 0.00% 0.00% 0 Cluster Base
227 28881 11135033 2 0.00% 0.00% 0.00% 0 System polling
228 2680 371175 7 0.00% 0.00% 0.00% 0 DHCPD Database
229 635086 24110171 26 0.00% 0.03% 0.02% 0 IGMP Input
230 152 1237 122 0.00% 0.00% 0.00% 0 IP SNMP
231 148 1226 120 0.00% 0.00% 0.00% 0 PDU DISPATCHER
232 144 1224 117 0.00% 0.00% 0.00% 0 SNMP ENGINE
233 4 1 4000 0.00% 0.00% 0.00% 0 IP SNMPV6
234 0 1 0 0.00% 0.00% 0.00% 0 SNMP ConfCopyPro
235 0 1 0 0.00% 0.00% 0.00% 0 SNMP Traps
236 232319 222745315 1 0.00% 0.03% 0.02% 0 Mwheel Process
237 471931 27098714 17 0.00% 0.02% 0.00% 0 PIM Process
238 80123 164903 485 0.07% 0.01% 0.00% 1 SSH Process
239 236 90 2622 0.07% 0.21% 0.05% 2 SSH Process
show env temperature status
^
% Invalid input detected at '^' marker.
#show env temperature ?
| Output modifiers
<cr>
Chassis Temperature = 32 degrees Celsius
Chassis Over Temperature Threshold = 75 degrees Celsius
Chassis Critical Temperature Threshold = 95 degrees Celsius
Hi, can anyone share the status of this? I'm evaluating Netbox and it seems to be unable to get the environmental info from my Catalyst 4500 boxes.
Hi @hreidar. This repository is archived, please refer to the main NAPALM repo: https://github.com/napalm-automation/napalm (and make sure you're using the latest NAPALM verion available on PyPI). If the issue persists, feel free to open and issue, or submit a pull request to fix this. Thanks!
Closes #182 Ciscos 4900/4500 doesn't report I/O memory in the 'show memory stat' - code referenced to non-existing variables.