Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Veyon Community Forum

  1. Home
  2. Help & Troubleshooting
  3. veyon-cli.exe networkobjects import bug?

veyon-cli.exe networkobjects import bug?

Scheduled Pinned Locked Moved Help & Troubleshooting
3 Posts 3 Posters 695 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andyvdg
    wrote on last edited by
    #1

    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
    Andy

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gerardsweeney
      wrote on last edited by
      #2

      Hi..

      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?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobydox
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        1

        Powered by NodeBB | Contributors
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups