Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bingoohuang authored Jun 11, 2019
1 parent 09a5480 commit eb4a186
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,43 @@ Usage of ./sysinfo:
## demo:
```bash
➜ sysinfo git:(master) sysinfo
+---+----------+--------+--------------+-------+--------+----------+--------------------------------------+------------------+----------------+
| # | HOSTNAME | UPTIME | UPTIME HUMAN | PROCS | OS | PLATFORM | HOST ID | PLATFORM VERSION | KERNEL VERSION |
+---+----------+--------+--------------+-------+--------+----------+--------------------------------------+------------------+----------------+
| 1 | bogon | 114161 | 32 hours | 415 | darwin | darwin | 7c8bb636-e593-3ce4-8528-9bd24a688851 | 10.14.5 | 18.6.0 |
+---+----------+--------+--------------+-------+--------+----------+--------------------------------------+------------------+----------------+

+---+-------+----------+-----------------+
| # | TOTAL | FREE | USED PERCENTAGE |
+---+-------+----------+-----------------+
| 1 | 16GiB | 770.7MiB | 59.88% |
+---+-------+----------+-----------------+

+---+-------------+--------------+--------+------------------------------------------+-------+------+
| # | PHYSICAL ID | VENDOR ID | FAMILY | MODEL NAME | CORES | MHZ |
+---+-------------+--------------+--------+------------------------------------------+-------+------+
| 1 | | GenuineIntel | 6 | Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz | 6 | 2200 |
+---+-------------+--------------+--------+------------------------------------------+-------+------+

+---+-----------------+--------------+--------+----------+----------+----------+--------------+
| # | PATH | DEVICE | FSTYPE | TOTAL | USED | FREE | USED PERCENT |
+---+-----------------+--------------+--------+----------+----------+----------+--------------+
| 1 | / | /dev/disk1s1 | apfs | 233.5GiB | 149.1GiB | 81.72GiB | 64.59% |
| 2 | /private/var/vm | /dev/disk1s4 | " | " | 2GiB | " | 02.39% |
+---+-----------------+--------------+--------+----------+----------+----------+--------------+
+---+----------------+-------------------+----------------------------------------------+
| # | INTERFACE NAME | HARDWARE ADDR | ADDRS |
+---+----------------+-------------------+----------------------------------------------+
| 1 | en5 | ac:de:48:00:11:22 | fe80::aede:48ff:fe00:1122/64 |
| 2 | en0 | f0:18:98:a5:12:27 | fe80::49:dfcf:6bf2:7a96/64 192.168.162.95/24 |
| 3 | awdl0 | 46:20:fa:ed:57:2c | fe80::4420:faff:feed:572c/64 |
| 4 | en8 | 00:e0:4c:68:1d:97 | fe80::4d:5ead:7376:4e97/64 192.168.217.47/24 |
+---+----------------+-------------------+----------------------------------------------+
```
```bash
Last login: Mon Jun 10 16:10:25 2019 from 192.168.218.9
[root@BJCA-device ~]# ./sysinfo
Expand Down Expand Up @@ -49,42 +86,6 @@ Last login: Mon Jun 10 16:10:25 2019 from 192.168.218.9
+---+----------------+-------------------+-----------------------------------------------+
```
```bash
Last login: Mon Jun 10 15:46:17 2019 from 192.168.218.9
[root@BJCA-device ~]# ./sysinfo
+-------------+-----------------+-------+---------+-------------+--------------------------------------+------------------+-----------------------+
| HOSTNAME | UPTIME | PROCS | HOST OS | PLATFORM | HOSTID | PLATFORM VERSION | KERNEL VERSION |
+-------------+-----------------+-------+---------+-------------+--------------------------------------+------------------+-----------------------+
| BJCA-device | 948412(10 days) | 223 | linux | bjca-device | fbe926a2-ade0-5bb0-9e37-04d4c439354d | 3.0 | 3.10.0-862.el7.x86_64 |
+-------------+-----------------+-------+---------+-------------+--------------------------------------+------------------+-----------------------+
+-----------+----------+---------------------+
| TOTAL MEM | FREE MEM | MEM USED PERCENTAGE |
+-----------+----------+---------------------+
| 7.572GiB | 5.704GiB | 16.79% |
+-----------+----------+---------------------+
+----------------+--------------+--------+-------------------------------------------+-------+------+
| CPU PHYSICALID | VENDORID | FAMILY | MODEL NAME | CORES | MHZ |
+----------------+--------------+--------+-------------------------------------------+-------+------+
| 0 | GenuineIntel | 6 | Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz | 8 | 3900 |
+----------------+--------------+--------+-------------------------------------------+-------+------+
+---+--------------------------------------+-------+--------+------------+-----------+-----------+-----------+
| # | DEVICE | PATH | FSTYPE | DISK TOTAL | DISK USED | DISK FREE | DISK USED |
+---+--------------------------------------+-------+--------+------------+-----------+-----------+-----------+
| 1 | /dev/mapper/centos_bjca--device-root | / | xfs | 899.6GiB | 1.808GiB | 897.7GiB | 0.20% |
| 2 | /dev/sda1 | /boot | " | 1014MiB | 141.9MiB | 872.1MiB | 14.00% |
+---+--------------------------------------+-------+--------+------------+-----------+-----------+-----------+

+---+----------------+-------------------+-----------------------------------------------+
| # | INTERFACE NAME | HARDWARE ADDR | ADDRS |
+---+----------------+-------------------+-----------------------------------------------+
| 1 | team0 | 04:d4:c4:39:35:4e | 192.168.221.46/24 fe80::6d4:c4ff:fe39:354e/64 |
+---+----------------+-------------------+-----------------------------------------------+
```
```bash
[footstone@fs01-192-168-126-182 ~]$ ./sysinfo
+---+----------------------+---------+--------------+-------+-------+----------+--------------------------------------+------------------+-----------------------+
Expand Down

0 comments on commit eb4a186

Please sign in to comment.