[董俊强]
文档是用来在connector组件采集数据时用curl命令拿数据
# truesight
## 获取token
curl -X POST \
http://:80/bppmws/api/authenticate/login \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'username=admin&password=admin&tenantName=BMCRealm'
## 拿到对应主机的监控项,可根据拿到的监控项和夏洛克系统里的监控项作对比,可验证页面上对应主机及主机监控项是否加载齐全
### 拿到主机列表信息,等同于在bmc主机上运行 pw device list 命令,
mekkatorque/truesight ,编译:CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
运行 ./main -h 192.168.31.77
### 根据拿到的主机IP
curl -X GET \
'http://192.168.31.77:80/bppmws/api/Device/192.168.31.44,192.168.31.45/metadata?idType=IPAddress' \
-H 'Authorization: authToken LtNiuHIrFNg0Li1nvTuZ9Por8ok='
# kafka