'2020/10/14'에 해당되는 글 8건

  1. 2020.10.14 컴퓨터 득템?
  2. 2020.10.14 DHCP hostname
  3. 2020.10.14 kibana
  4. 2020.10.14 grafana
  5. 2020.10.14 zabbix
  6. 2020.10.14 prometheus
  7. 2020.10.14 linux 스토리지 정보
  8. 2020.10.14 c# nullable annotation context와 attribute?
개소리 왈왈/컴퓨터2020. 10. 14. 22:26

intel core2duo E5700 

MSI MS-7592

삼성 PC3-10600U 2GB

axle G210 256MB

WD 160GB HDD WD1600AAJS

iptime ncubic usb2.0 (RTL8188CU)

 

앞에 페넘2 스티커가 있어서 조금 기대했고(페넘2 945 쓰던 기억도 났고)

그런데 열어보니 intel 초코파이 쿨러가 있네?

헐... 그래도 DDR3네? 오오

 

했는데 막상 열어보니 E5700 ㅠㅠ

 

어떻게 써먹지?

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

USB 사운드 카드 도착!  (0) 2020.10.19
해외 배송은 갑작스럽다  (0) 2020.10.17
어쩌다 보니 득템?  (0) 2020.10.11
stormbook 14 pro 64GB 모델  (0) 2020.10.05
G840에 이어 G860..  (0) 2020.09.22
Posted by 구차니

호스트 이름을 지정을 해줄순 있는데 MAC 주소에 따라서 설정을 해야 해서 서버댓수가 많으면 무지 귀찮을 수도?

 

[링크 : http://www.iorchard.net/2016/11/03/dhcp_set_hostname.html]

[링크 : http://itwiki.kr/w/리눅스_dhcpd.conf]

[링크 : https://blog.naver.com/namelessda/114773026]

 

The use-host-decl-names statement
use-host-decl-names flag;
If the use-host-decl-names parameter is true in a given scope, then for every host declaration within that scope, the name provided for the host declaration will be supplied to the client as its hostname. So, for example,

    group {
      use-host-decl-names on;

     host joe {
        hardware ethernet 08:00:2b:4c:29:32;
          fixed-address joe.fugue.com;
      }
    }

is equivalent to

     host joe {
        hardware ethernet 08:00:2b:4c:29:32;
          fixed-address joe.fugue.com;
        option host-name "joe";
      }
An option host-name statement within a host declaration will override the use of the name in the host declaration.
It should be noted here that most DHCP clients completely ignore the host-name option sent by the DHCP server, and there is no way to configure them not to do this. So you generally have a choice of either not having any hostname to client IP address mapping that the client will recognize, or doing DNS updates. It is beyond the scope of this document to describe how to make this determination.

[링크 : https://linux.die.net/man/5/dhcpd.conf]

'프로그램 사용 > PXE(네트워크 부트)' 카테고리의 다른 글

pxe boot  (0) 2023.06.21
DHCP / BOOTP / TFTP  (4) 2010.04.27
PXE 부팅하기  (0) 2010.04.25
PXE를 통한 우분투/XP 설치  (0) 2009.12.09
Posted by 구차니

 

Kibana는 Elastic Stack을 기반으로 구축된 오픈 소스 프론트엔드 애플리케이션으로, Elasticsearch에서 색인된 데이터를 검색하고 시각화하는 기능을 제공합니다

[링크 : https://www.elastic.co/kr/what-is/kibana]

 

 

[링크 : https://www.elastic.co/kr/kibana]

[링크 : https://www.elastic.co/kr/downloads/kibana]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
grafana  (0) 2020.10.14
zabbix  (0) 2020.10.14
prometheus  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

prometheus와 이야기가 많이 언급되서 찾아보는 중.

그나저나 다나와 깃 허브 내용이라니.. ㄷㄷㄷ

 

[링크 : https://danawalab.github.io/common/2020/03/17/Common-Dashboard.html]

[링크 : https://www.44bits.io/ko/keyword/grafana]

 

홈페이지 가서 보니 웹이라고 해서 php 이런걸로 된줄 알았는데 deb로 받게 되어있다.

단순 홈페이지가 아니라 WAS와 동적 페이지의 조합인가?

[링크 : https://grafana.com/]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
zabbix  (0) 2020.10.14
prometheus  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

snmp와 ipmi agent를 기본 제공하는 듯?

다만 intel architecture 서버 중에 HP와 Dell을 언급하는데

redfish는 아니고 ipmitool을 이용하는 걸까?

 

IPMI agent
To get important data from hardware, a Zabbix server supports IPMI agents, which are present by default on Intel architecture servers like HP iLO and Dell DRAC.

The items available through IPMI agents vary in each hardware, but these are the most common:

Temperature of the CPU and chassis
Fan speed
System voltages
State of the physical disk
Maintenance LED status

[링크 : https://www.zabbix.com/snmp_ipmi_agent]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
grafana  (0) 2020.10.14
prometheus  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

바이너리를 다운로드 받아서 그냥 아무런 옵션 주지 않고 실행한뒤

http://localshost:9090 으로 접속하면 된다.

 

cpu 정도는 보이는데 memory나 network는 잘 안보이고, 그래프도 실시간 업데이트는 안되는 것 같다.

[링크 : https://prometheus.io/docs/prometheus/latest/getting_started/]

[링크 : https://prometheus.io/download/]

 

모니터링 할 타겟에는 node exporter를 설치하면 되는데, 윈도우일 경우 WMI exporter라는 비공식 port가 있는 것으로 보인다.

[링크 : https://prometheus.io/docs/guides/node-exporter/]

[링크 : https://github.com/prometheus-community/windows_exporter]

  [링크 : https://medium.com/@essem_dev/프로메테우스와-그라파나로-개발-서버-모니터링하기-8942aea724b3]

  [링크 : https://hyunki1019.tistory.com/127]

 

+

클러스터에 그러면.. node exporter를 설치하고 전부 설정해야 한다는건데... ㄷㄷ

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
grafana  (0) 2020.10.14
zabbix  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니
Linux2020. 10. 14. 12:47

lshw 를 통해서는 아래와 같이 제조사 정도의 정보 밖에 없고

모델명이나 시리얼은 나오지 않는다.

$ sudo lshw -class storage
  *-storage                 
       description: Non-Volatile memory controller
       product: NVMe SSD Controller SM981/PM981
       vendor: Samsung Electronics Co Ltd
       physical id: 0
       bus info: pci@0000:3a:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
       configuration: driver=nvme latency=0
       resources: irq:16 memory:92300000-92303fff
  *-storage
       description: Non-Volatile memory controller
       product: SK hynix
       vendor: SK hynix
       physical id: 0
       bus info: pci@0000:3b:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: storage pm msi msix pciexpress nvm_express bus_master cap_list
       configuration: driver=nvme latency=0
       resources: irq:16 memory:92200000-92203fff memory:92205000-92205fff memory:92204000-92204fff

 

사용중인 노트북에는 nvme가 2개가 있는데

/dev/nvme0로 잡히고

/sys/block/nvme0n1/devices

/sys/block/nvme1n1/devices 하위에

model, serial 등이 내가 nvme 모델명, nvme 시리얼 값이다.

/sys/block/nvme0n1/device$ ll
합계 0
drwxr-xr-x  4 root root    0 10월 14 09:29 ./
drwxr-xr-x  3 root root    0 10월 14 09:29 ../
-r--r--r--  1 root root 4096 10월 14 12:45 address
-r--r--r--  1 root root 4096 10월 14 12:45 cntlid
-r--r--r--  1 root root 4096 10월 14 12:45 dev
lrwxrwxrwx  1 root root    0 10월 14 09:31 device -> ../../../0000:3a:00.0/
-r--r--r--  1 root root 4096 10월 14 12:45 firmware_rev
-r--r--r--  1 root root 4096 10월 14 09:29 model
-r--r--r--  1 root root 4096 10월 14 12:45 numa_node
drwxr-xr-x 13 root root    0 10월 14 09:29 nvme0n1/
drwxr-xr-x  2 root root    0 10월 14 12:45 power/
-r--r--r--  1 root root 4096 10월 14 12:45 queue_count
--w-------  1 root root 4096 10월 14 12:45 rescan_controller
--w-------  1 root root 4096 10월 14 12:45 reset_controller
-r--r--r--  1 root root 4096 10월 14 09:29 serial
-r--r--r--  1 root root 4096 10월 14 12:45 sqsize
-r--r--r--  1 root root 4096 10월 14 12:45 state
-r--r--r--  1 root root 4096 10월 14 12:45 subsysnqn
lrwxrwxrwx  1 root root    0 10월 14 09:29 subsystem -> ../../../../../../class/nvme/
-r--r--r--  1 root root 4096 10월 14 12:45 transport
-rw-r--r--  1 root root 4096 10월 14 09:29 uevent

 

[링크 : https://unix.stackexchange.com/questions/273971/how-to-get-hard-disk-information-on-linux-terminal]

'Linux' 카테고리의 다른 글

bash 배열  (0) 2020.12.04
find -mmin  (0) 2020.12.04
linux page cache  (0) 2020.01.13
dmesg 시간 환산하기  (0) 2020.01.07
screen 사용법  (0) 2019.12.18
Posted by 구차니
Programming/c# & winform2020. 10. 14. 10:30

string?는 nullable한 string 변수를 사용하겠다는 의미인데

그냥 빌드하면 다음과 같은 경고를 내뱉는다.

warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

 

이 경우에는 아래와 같이 #nullable 어노테이션 컨텍스트를 이용해서 알려주면 경고가 뜨지 않게 된다.

using System;
using System.IO;

class test
{

static void Main()
{
string manyLines=@"This is line one
This is line two
Here is line three
The penultimate line is line four
This is the final, fifth line.";

using (var reader = new StringReader(manyLines))
{
#nullable enable
    string? item;
    do {
        item = reader.ReadLine();
        Console.WriteLine(item);
    } while(item != null);
}
}
}

[링크 : https://stackoverflow.com/questions/55492214/]

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/nullable-references]

 

특성(attribute)

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/programming-guide/concepts/attributes/]

 

+

내용만 보면. java annotation에 대응되는건 attribute이고

c#의 annotation은 compiler directive에 가까운 것 같기도 하고... 조금 더 찾아봐야겠다.

[링크 : https://stackoverflow.com/questions/553857/]

 

+

#define 처럼 #이니까 directive 맞네 -_-

Posted by 구차니