Server.cshtml 10 KB

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