| 
									
										
										
										
											2020-11-13 15:00:12 -05:00
										 |  |  | {% extends 'dcim/device/base.html' %} | 
					
						
							| 
									
										
										
										
											2018-11-02 14:42:15 -04:00
										 |  |  | {% load static %} | 
					
						
							| 
									
										
										
										
											2017-07-14 16:07:28 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  | {% block title %}{{ object }} - Status{% endblock %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block head %} | 
					
						
							|  |  |  | <script type="text/javascript" src="{% static 'status.js' %}" onerror="window.location='{% url 'media_failure' %}?filename=status.js'"></script> | 
					
						
							|  |  |  | {% endblock %} | 
					
						
							| 
									
										
										
										
											2017-07-14 16:07:28 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							| 
									
										
										
										
											2021-04-30 15:55:37 -07:00
										 |  |  |         <div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |             <div class="card"> | 
					
						
							| 
									
										
										
										
											2021-08-24 14:53:21 -07:00
										 |  |  |                 <div class="card-overlay"> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                     <div class="spinner-border" role="status"> | 
					
						
							|  |  |  |                         <span class="visually-hidden">Loading...</span> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                 <h5 class="card-header">Device Facts</h5> | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							|  |  |  |                     <table class="table"> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Hostname</th> | 
					
						
							|  |  |  |                             <td id="hostname"></td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">FQDN</th> | 
					
						
							|  |  |  |                             <td id="fqdn"></td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Vendor</th> | 
					
						
							|  |  |  |                             <td id="vendor"></td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Model</th> | 
					
						
							|  |  |  |                             <td id="model"></td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Serial Number</th> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                             <td> | 
					
						
							|  |  |  |                                 <code id="serial_number"></code> | 
					
						
							|  |  |  |                             </td> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">OS Version</th> | 
					
						
							|  |  |  |                             <td id="os_version"></td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr class="align-middle"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                             <th scope="row">Uptime</th> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                             <td> | 
					
						
							|  |  |  |                                 <div id="uptime-duration"></div> | 
					
						
							|  |  |  |                                 <div id="uptime" class="small text-muted"></div> | 
					
						
							|  |  |  |                             </td> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                         </tr> | 
					
						
							|  |  |  |                     </table> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2017-07-14 16:07:28 -04:00
										 |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-04-30 15:55:37 -07:00
										 |  |  |         <div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |             <div class="card"> | 
					
						
							| 
									
										
										
										
											2021-08-24 14:53:21 -07:00
										 |  |  |                 <div class="card-overlay"> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                     <div class="spinner-border" role="status"> | 
					
						
							|  |  |  |                         <span class="visually-hidden">Loading...</span> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                 <h5 class="card-header">Environment</h5> | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							|  |  |  |                     <table class="table"> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr id="status-cpu" class="bg-light"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                             <th colspan="2"><i class="mdi mdi-gauge"></i> CPU</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr id="status-memory" class="bg-light"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                             <th colspan="2"><i class="mdi mdi-chip"></i> Memory</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr id="status-temperature" class="bg-light"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                             <th colspan="2"><i class="mdi mdi-thermometer"></i> Temperature</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr id="status-fans" class="bg-light"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                             <th colspan="2"><i class="mdi mdi-fan"></i> Fans</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr id="status-power" class="bg-light"> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                             <th colspan="2"><i class="mdi mdi-power"></i> Power</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  |                         <tr class="napalm-table-placeholder d-none invisible"> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-03-13 14:15:23 -07:00
										 |  |  |                     </table> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2017-07-17 12:58:13 -04:00
										 |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2017-07-14 16:07:28 -04:00
										 |  |  |     </div> | 
					
						
							|  |  |  | {% endblock %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-21 10:19:13 -07:00
										 |  |  | {% block data %} | 
					
						
							|  |  |  |     <span data-object-url="{% url 'dcim-api:device-napalm' pk=object.pk %}?method=get_facts&method=get_environment"></span> | 
					
						
							| 
									
										
										
										
											2017-07-14 16:07:28 -04:00
										 |  |  | {% endblock %} |