-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File shares info not writing to IT Glue, much like was happening with the AD one #13
Comments
I am getting no errors just showing me in green under each share File Shares flex asset configuration file found! But nothing showing in IT-Glue |
Same thing is happening to me, anything new in here? |
It appears that it wasn't passing the org_id information to the correct part of the script. I was able to force it to work by changing line 232 in the FileShares.ps1 script to be as follows: |
Mikekanet, after I make that change I get the error C:\fileshares\FileShares.ps1 : ERROR: File Shares flex asset configuration file was found. Please create one and
|
Nevermind, figured out the solve for my earlier comment but still not working overall. Everything is green it just doesn't put the data in IT Glue |
There are a couple of bugs in the fileshares.ps1 file but after fixing those so I have correct data I now get
Code is currently Should be |
I also found a couple of instances for the server/diskpath where it looks like the code was expecting the routine to be run against multiple machines. However the samples /command line show it being run against one machine. As a result, looping through server results in referencing an array when there is only one value so $currentserver=$server[$i] ends up as a null value instead of the current server name. After I changed the above, i still find that the $api__body.attributes.traits.servers is blank after the $api_body = formatapidata is called. At that point $post has the server name in it, but the server gets lost when api_body is created. |
There seems to have been an update to the ActiveDirectory.ps1 with the new Initialize-ActiveDirectoryFlexAsset.ps1 command being recently introduced. Is that accurate?
Prior, trying the ActiveDirectory.ps1 ran fine but it never updated IT Glue. Now that this new command to ensure the AD Flex Asset is properly created, it runs just fine.
I'm having the same issues with the FileShares.ps1. It seems to be grabbing all the correct info about file shares on the server that is run, but never actually writes to IT Glue and gives no error. Any suggestions?
I'll have a peak at the Initialize-ActiveDirectoryFlexAsset.ps1 code in the meantime.
Thanks,
The text was updated successfully, but these errors were encountered: