Giter Club home page Giter Club logo

Comments (5)

timabrmsn avatar timabrmsn commented on July 30, 2024

Hi @ishackigozi,

This was due to the change in py42 1.19.3 which moved all the c42api/v3 endpoints to a standardized api versioning scheme in the cloud.

Since support for on-premises installations is end-of-life at the end of this month, we won't be altering new versions of py42 for on-premise deployments, but you should be able to downgrade your py42 installation to revert to the previous urls compatible with your on-premise server:

pip uninstall py42
pip install py42==1.19.2

I should also note that the CLI version 1.11.1 updates the minimum py42 requirement to 1.19.3, so CLI version 1.11.0 will also be the latest you'll be able to upgrade to for on-premise servers.

from code42cli.

ishackigozi avatar ishackigozi commented on July 30, 2024

Thank you so much. Works Like a Charm

from code42cli.

ishackigozi avatar ishackigozi commented on July 30, 2024

Hello Tim,
I am trying to deactivate several devices. For some reason, I used the same format of the columns for the .csv file obtained from running this command.
code42 devices list --active -f CSV > output.csv

I included the devices I wanted to deactivate in a .csv and run the command "code42 devices bulk deactivate List.csv -f CSV > deactivation_results.csv"

In the deactivation_results.csv, I am getting this error

False: The device with GUID 'SRA2030008499 SRA2030008499 Active 2022-02-09T11:13:36.269-05:00 2021-02-03T15:28:09.802-05:00 8.2.1 win 10.0.19041 7.90E+17' was not found.

Please advise on how I am supposed to have the columns in the .csv

Thanks Again,
Ishac

from code42cli.

timabrmsn avatar timabrmsn commented on July 30, 2024

Two things I see here:

  • The userUid in the error was converted to scientific notation (7.90E+17), which tells me this was probably edited with Excel. Use the following steps to import the CSV to make sure Excel isn't converting the large number uids: https://support.code42.com/Incydr/Admin/Monitoring_and_managing/Import_CSV_reports_to_Microsoft_Excel
  • The columns in the error aren't separated by commas, so make sure after editing the file is saved/exported to CSV correctly with commas separating each column. You might want to open the file in a plain text editor to make sure it looks similar to this:
computerId,guid,name,osHostname,status,lastConnected,creationDate,productVersion,osName,osVersion,userUid
123456789,987654321182727,DESKTOP-ABCDEFG,DESKTOP-ABCDEFG,"Active, Deauthorized",2020-12-28T09:13:27.910Z,2020-09-10T13:40:22.188Z,8.5.0,win,10.0.17134,9233020000000000
123456789,987654321182727,DESKTOP-XYZ123,DESKTOP-XYZ123,"Active, Deauthorized",2019-12-23T10:59:22.114Z,2019-12-04T10:03:48.252Z,7.4.0,win,10.0,9233020000000000

from code42cli.

ishackigozi avatar ishackigozi commented on July 30, 2024

Hello, My apologies for not communicating ahead of time.
I was able to get the csv file. Although, the deactivation does not work
Any pointers please.
deactivation_results.csv

from code42cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.