These are chat archives for allegro/ralph

24th
Aug 2018
Alberto Valdes
@albercuba__twitter
Aug 24 2018 06:49
Hello again. I created a test budget info and now I can't delete it. Do I need to remove it directly in the database?
diedriko
@diedriko
Aug 24 2018 09:31
@vi4m hi M., I think there's a misunderstanding, we currently have a dhcp server(red hat), with mainly static entries and as comments material details, this is converted to a csv file and imported into ralph, then did some finetuning, so every asset has his mac and ip into the record. But I didn't put the raw dhcp entries into ralph, meaning there's currently nothing under the networks heading. Is it possible to generate a dhcp config from the assets (back office assets)?
Alberto Valdes
@albercuba__twitter
Aug 24 2018 12:12
Hello. Can someone please tell me where in Ralph3 can I set the warranty information for assets?
✪ vi4m Marcin Kliks
@vi4m
Aug 24 2018 13:04
@diedrikvdd can you post a screenshot of particular asset ? where this IP addresses and MAC was saved in Ralph ?
diedriko
@diedriko
Aug 24 2018 19:14
@vi4m all assets were entered as back office assets, for ip and mac I created custom field under the basic info of each asset, so we're your dhcp_agent python script looks for info under networks/dhcp, I need something similar that looks in the basic info assets page
✪ vi4m Marcin Kliks
@vi4m
Aug 24 2018 19:16
@diedrikvdd you can write custom script for it, can you code?
here’s the API for back office assets: http://ralph-demo.allegro.tech/api/back-office-assets/
custom fields are exposed through the API
should be an easy task to generate text file for it
diedriko
@diedriko
Aug 24 2018 19:22
@vi4m I know, following command yields json file with custom fields in it, just curious if you already have something like that, command curl http://0.0.0.0:8000/api/back-office-assets/?limit=5000 -H 'Authorization: Token xxxxxxxxxxxxxxxxxxxx' | python -m json.tool
✪ vi4m Marcin Kliks
@vi4m
Aug 24 2018 19:58
yes, you can use that, does it work for you?