veyon-cli.exe networkobjects import bug?
This is driving me crazy.
I export all locations and computers:
veyon-cli.exe networkobjects export veyon-objects.csv format "%type%;%name%;%host%;%location%"
I get a CSV that looks like this including line breaks.
Location;Room 01;; Computer;Template;10.10.6.4:11102;Room 01 Computer;05 Lab;10.10.6.5:11102;Room 01 Computer;06 Lab;10.10.6.6:11102;Room 01 Computer;07 Lab;10.10.6.7:11102;Room 01 Computer;08 Lab;10.10.6.8:11102;Room 01 Computer;09 Lab;10.10.6.9:11102;Room 01 Computer;10 Lab;10.10.6.10:11102;Room 01
If I import this file again everything is fine.
veyon-cli.exe networkobjects clear veyon-cli.exe networkobjects import veyon-objects.csv format "%type%;%name%;%host%;%location%"
It imports all rooms and computers.
If however, I take a different CSV file I made myself sticking to the format and try and import it
Location;;Room 02; Computer;Room 02;Template;10.10.8.4:11102 Computer;Room 02;05 Lab;10.10.8.5:11102 Computer;Room 02;06 Lab;10.10.8.6:11102 Computer;Room 02;07 Lab;10.10.8.7:11102 Computer;Room 02;08 Lab;10.10.8.8:11102 Computer;Room 02;09 Lab;10.10.8.9:11102 Computer;Room 02;10 Lab;10.10.8.10:11102
It will import the room and the very last computer but nothing else. In fact if I have multiple rooms in the file it will only import the very last room and the very last computer in that room.
Found this on the forum but it's old and no one answered: veyon-ctl networkobjects import bug ?
Thanks in advance
Using the newest one, my import looks like;
set curpath=%~dp0 set curpath=%curpath:~0,-1% set cli="%ProgramW6432%\Veyon\veyon-cli.exe" set loc="Art & Design 07" %cli% networkobjects remove %loc% %cli% networkobjects import "%curpath%\Art & Design 07.csv" location %loc% format "%%name%%,%%host%%,%%mac%%"
The CSV looks like:
WSARTD07-01,WSARTD07-01.school.domain,AA:BB:CC:DD:EE:FF WSARTD07-02,WSARTD07-02.school.domain,AA:BB:CC:DD:EE:FF WSARTD07-03,WSARTD07-03.school.domain,AA:BB:CC:DD:EE:FF
Is that any use?
tobydox last edited by
The line ending issue has been fixed in 4.4.1 (no more duplicate line endings + proper CRLF line endings on Windows). Thank you for sharing your findings here!