Server.cshtml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. @{
  2. ViewData["Title"] = "서버 정보";
  3. }
  4. <div id="server" class="container-fluid">
  5. <div class="row row-cols-auto row-cols-sm-2 g-2">
  6. <div class="col">
  7. <h4 class="pb-2">@ViewData["Title"]</h4>
  8. <table class="table table-bordered">
  9. <colgroup>
  10. <col width="40%" />
  11. <col width="60%" />
  12. </colgroup>
  13. <tbody>
  14. <tr>
  15. <th>Environment Name</th>
  16. <td>@ViewBag.Info.EnvironmentName</td>
  17. </tr>
  18. <tr>
  19. <th>Content Root Path</th>
  20. <td>@ViewBag.Info.ContentRootPath</td>
  21. </tr>
  22. <tr>
  23. <th>Application Name</th>
  24. <td>@ViewBag.Info.ApplicationName</td>
  25. </tr>
  26. <tr>
  27. <th>OS Description</th>
  28. <td>@ViewBag.Info.OSDescription</td>
  29. </tr>
  30. <tr>
  31. <th>OS Architecture</th>
  32. <td>@ViewBag.Info.OSArchitecture</td>
  33. </tr>
  34. <tr>
  35. <th>.NET Framework Description</th>
  36. <td>@ViewBag.Info.FrameworkDescription</td>
  37. </tr>
  38. <tr>
  39. <th>Process Architecture</th>
  40. <td>@ViewBag.Info.ProcessArchitecture</td>
  41. </tr>
  42. <tr>
  43. <th>Machine Name</th>
  44. <td>@ViewBag.Info.MachineName</td>
  45. </tr>
  46. <tr>
  47. <th>Current Directory</th>
  48. <td>@ViewBag.Info.CurrentDirectory</td>
  49. </tr>
  50. <tr>
  51. <th>System Directory</th>
  52. <td>@ViewBag.Info.SystemDirectory</td>
  53. </tr>
  54. <tr>
  55. <th>Is 64 Bit OS</th>
  56. <td>@ViewBag.Info.Is64BitOperatingSystem</td>
  57. </tr>
  58. <tr>
  59. <th>Is 64 Bit Process</th>
  60. <td>@ViewBag.Info.Is64BitProcess</td>
  61. </tr>
  62. <tr>
  63. <th>Processor Count</th>
  64. <td>@ViewBag.Info.ProcessorCount</td>
  65. </tr>
  66. <tr>
  67. <th>TickCount (ms since startup)</th>
  68. <td>@ViewBag.Info.TickCount</td>
  69. </tr>
  70. <tr>
  71. <th>WorkingSet (Memory)</th>
  72. <td>@ViewBag.Info.WorkingSet MB</td>
  73. </tr>
  74. <tr>
  75. <th>Total Cpu Time</th>
  76. <td>@ViewBag.Info.TotalCpuTime</td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. </div>
  81. <div class="col">
  82. <h4 class="pb-2">CPU</h4>
  83. <table class="table table-bordered">
  84. <colgroup>
  85. <col width="40%" />
  86. <col width="60%" />
  87. </colgroup>
  88. <tbody>
  89. @foreach (var row in ViewBag.cpu)
  90. {
  91. <tr>
  92. <th>Device ID</th>
  93. <td>@row["DeviceID"]?.ToString()</td>
  94. </tr>
  95. <tr>
  96. <th>SocketDesignation</th>
  97. <td>@row["SocketDesignation"]?.ToString()</td>
  98. </tr>
  99. <tr>
  100. <th>Load Percentage</th>
  101. <td>@row["LoadPercentage"]?.ToString()</td>
  102. </tr>
  103. <tr>
  104. <th>Cores</th>
  105. <td>@row["NumberOfCores"]?.ToString()</td>
  106. </tr>
  107. <tr>
  108. <th>Current Clock Speed</th>
  109. <td>@row["CurrentClockSpeed"]?.ToString()</td>
  110. </tr>
  111. <tr>
  112. <th>AddressWidth</th>
  113. <td>@row["AddressWidth"]?.ToString()</td>
  114. </tr>
  115. <tr>
  116. <th>Architecture</th>
  117. <td>@row["Architecture"]?.ToString()</td>
  118. </tr>
  119. <tr>
  120. <th>Cores</th>
  121. <td>@row["NumberOfCores"]?.ToString()</td>
  122. </tr>
  123. <tr>
  124. <th>Thread</th>
  125. <td>@row["NumberOfLogicalProcessors"]?.ToString()</td>
  126. </tr>
  127. <tr>
  128. <th>L2 Cache Size</th>
  129. <td>@row["L2CacheSize"]?.ToString()</td>
  130. </tr>
  131. <tr>
  132. <th>L3 Cache Size</th>
  133. <td>@row["L3CacheSize"]?.ToString()</td>
  134. </tr>
  135. <tr>
  136. <th>Status</th>
  137. <td>@row["Status"]?.ToString()</td>
  138. </tr>
  139. <tr>
  140. <th>Virtualization Firmware Enabled</th>
  141. <td>@row["VirtualizationFirmwareEnabled"]?.ToString()</td>
  142. </tr>
  143. <tr>
  144. <th>VMMonitor Mode Extensions</th>
  145. <td>@row["VMMonitorModeExtensions"]?.ToString()</td>
  146. </tr>
  147. <tr>
  148. <th>Manufacturer</th>
  149. <td>@row["Manufacturer"]?.ToString()</td>
  150. </tr>
  151. <tr>
  152. <th>Description</th>
  153. <td>@row["Description"]?.ToString()</td>
  154. </tr>
  155. }
  156. </tbody>
  157. </table>
  158. </div>
  159. <div class="col">
  160. <h4 class="pb-2">Memory</h4>
  161. <table class="table table-bordered">
  162. <colgroup>
  163. <col width="40%" />
  164. <col width="60%" />
  165. </colgroup>
  166. <tbody>
  167. @foreach (var row in ViewBag.memory)
  168. {
  169. foreach (var prop in row.Properties)
  170. {
  171. if (prop.Value is not null)
  172. {
  173. <tr>
  174. <th>@prop.Name</th>
  175. <td>@prop.Value</td>
  176. </tr>
  177. }
  178. }
  179. }
  180. </tbody>
  181. </table>
  182. </div>
  183. <div class="col">
  184. <h4 class="pb-2">Disk</h4>
  185. <table class="table table-bordered">
  186. <colgroup>
  187. <col width="40%" />
  188. <col width="60%" />
  189. </colgroup>
  190. <tbody>
  191. @foreach (var row in ViewBag.disk)
  192. {
  193. <tr>
  194. <th>Index</th>
  195. <td>@row["Index"]?.ToString()</td>
  196. </tr>
  197. <tr>
  198. <th>Interface Type</th>
  199. <td>@row["InterfaceType"]?.ToString()</td>
  200. </tr>
  201. <tr>
  202. <th>Model</th>
  203. <td>@row["Model"]?.ToString()</td>
  204. </tr>
  205. <tr>
  206. <th>Size</th>
  207. <td>
  208. @{
  209. double microseconds = double.Parse(row["Size"]?.ToString());
  210. var ts = TimeSpan.FromMicroseconds(microseconds);
  211. }
  212. @ts.ToString()
  213. </td>
  214. </tr>
  215. <tr>
  216. <th>Caption</th>
  217. <td>@row["Caption"]?.ToString()</td>
  218. </tr>
  219. <tr>
  220. <th>Description</th>
  221. <td>@row["Description"]?.ToString()</td>
  222. </tr>
  223. }
  224. </tbody>
  225. </table>
  226. </div>
  227. </div>
  228. </div>
  229. @section Styles {
  230. <link rel="stylesheet" href="~/css/admin.css" asp-append-version="true" />
  231. }