marksman icon indicating copy to clipboard operation
marksman copied to clipboard

[Question] Can anyone confirm Marksman works with version 5.x of SnipeIT?

Open dwildey opened this issue 4 years ago • 20 comments

Can anyone confirm Marksman works with version 5.x of SnipeIT?

dwildey avatar Nov 17 '20 17:11 dwildey

I don't think it does, I actually forgot about Marksman since we run it in the background on login. I just checked it and I get the following error: Unhandled Exception: Newtonsoft.Json.JsonReaderException: Could not convert string to boolean: etc

emike09 avatar Nov 17 '20 18:11 emike09

Thanks for the info.

dwildey avatar Nov 18 '20 22:11 dwildey

Yup can confirm this no longer work on 5.x. We ran into the same issue. @emike09/ @dwildey Did you find a solution for this?

icolombage avatar Jan 22 '21 21:01 icolombage

@icolombage Have not upgraded yet due to this fact nor have I had time to test. However, we need an agent so will have to figure something out.

dwildey avatar Jan 22 '21 22:01 dwildey

Any update ?

rickardhildingsson avatar Feb 26 '21 22:02 rickardhildingsson

Disclaimer: I am not a programmer

I've found that if you change line 45 in Category.cs in the SnipeSharp project from:

public bool eula { get; set; }

to

public string eula { get; set; }

that this will get the agent working on 5.x

ReticentRobot avatar Mar 18 '21 18:03 ReticentRobot

Disclaimer: I am not a programmer

I've found that if you change line 45 in Category.cs in the SnipeSharp project from:

public bool eula { get; set; }

to

public string eula { get; set; }

that this will get the agent working on 5.x

Hello, I can't find the file "Category.cs". Can you confirm its location?

FRP974 avatar Mar 27 '21 10:03 FRP974

https://github.com/Scope-IT/SnipeSharp/blob/master/SnipeSharp/Endpoints/Models/Category.cs

You'll then need to build the SnipeSharp project, and then the marksman project (SnipeSharp is a dependency, it should bring it in to the marksman project automatically) - as per the Developer instructions here: https://github.com/Scope-IT/marksman

ReticentRobot avatar Mar 27 '21 13:03 ReticentRobot

I haven't been able to get in touch with the developer to see about getting this working again, so have started my own version of the project. You can download it here if you are interested: https://github.com/ReticentRobot/SnipeAgent

ReticentRobot avatar Apr 02 '21 16:04 ReticentRobot

@ReticentRobot Nice Job! I hadn't had a chance to look but suspected it was SnipeSharp since that's the foundation. Glad you were able to take the time and recompile. I am sure others will appreciate your efforts as much as I do.

dwildey avatar Apr 02 '21 16:04 dwildey

Thanks! I've been meaning to pick up a programming project to get back into learning again, so I guess this is as good as any :). Next up is to try to recreate the agent as a windows service and collect the API key, base URL, Location, and Company during install so that manual editing of the config file is no longer needed.

ReticentRobot avatar Apr 02 '21 16:04 ReticentRobot

@ReticentRobot thanks for the solution, it works with snipe-it version 6

eddy445 avatar Jan 20 '23 06:01 eddy445

@ReticentRobot Do you still have your compiled version of this available for download?

vantzs avatar Sep 18 '23 06:09 vantzs

@ReticentRobot Greetings! Is there any chance to get your compiled version still? It seems the Error is still an issue.

Schnatsu avatar Sep 19 '23 10:09 Schnatsu

I think I have it somewhere - I will try to get this back up today

ReticentRobot avatar Sep 19 '23 12:09 ReticentRobot

Does anyone happen to know the filename? Not coming up with anything obvious on my initial search.

Apologies for deleting, didn't realize it was still in use. If I can't find it, I can probably get it redone and rebuilt soon.

ReticentRobot avatar Sep 19 '23 13:09 ReticentRobot

Does anyone happen to know the filename? Not coming up with anything obvious on my initial search.

Apologies for deleting, didn't realize it was still in use. If I can't find it, I can probably get it redone and rebuilt soon.

Sir, if you can get this working again, I would be very grateful! Seems that the snipe-it plugin list even mentions your program but it goes to a 404 :(

jarrydstan avatar Sep 25 '23 23:09 jarrydstan

I've opened a ticket to see if GitHub can restore this repository

ReticentRobot avatar Sep 26 '23 13:09 ReticentRobot

Just noting here that GitHub was able to restore it. Apologies for not posting that news earlier, I posted elsewhere but forgot about this thread.

ReticentRobot avatar Jan 23 '24 22:01 ReticentRobot

Just noting here that GitHub was able to restore it. Apologies for not posting that news earlier, I posted elsewhere but forgot about this thread.

Will deploy today and test, thank you!!

jarrydstan avatar Jan 23 '24 22:01 jarrydstan