Skip to content

Commit

Permalink
add how to memo
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed Jan 17, 2025
1 parent 154d09b commit bf857a4
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docs/how_to_install_collector.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
How to install collector command
=====================================

The collector command can run in setup-hw container and bare metal linux server.
in this memo describe how to install bare metal server.

## 1.Clone code from github repository

```
$ git clone https://github.com/cybozu-go/setup-hw
```

## 2.Build & install collector command

```
$ cd setup-hw
$ make install
```

## 3.Setup config

Put a bmc-user.json file in /etc/neco/ that must have "support" user due to use the collector command.

```
{
"support": {
"password": {
"raw": "cybozu"
}
}
}
```

Put a bmc-address.json file in /etc/neco.

```
{"ipv4":{"address":"10.210.152.197","netmask":"255.255.252.0","maskbits":22,"gateway":"10.210.152.198"}}
```

please see [config.md]("config.md") file.

## 4.Check

By following the above steps, you can execute the collector command.

```
$ collector show
```

Next, see [how to generate rules](how_to_install_collector.md).

0 comments on commit bf857a4

Please sign in to comment.