Array Setup and Networking
1825025 Members
3209 Online
109678 Solutions
New Discussion юеВ

Re: PowerShell Module

 
jrich52352
Trusted Contributor

Re: PowerShell Module

weird, i've tested with both 3 and 4, and it doesnt populate the quotes as it should, but it does run correctly when i give it the quotes.

the code was last published on the 22nd.

I'll clear out everything i've got and run a few more tests.

jrich52352
Trusted Contributor

Re: PowerShell Module

do you tab complete it and then slap quotes around it or have you been typing it out?

jrich52352
Trusted Contributor

Re: PowerShell Module

Just made a modification to the utility.ps1, which might help fix the issue, not completely, you'll still have to manually add quotes, but it should at least make that work now.

also, make sure you are connected to the unit first, I just realized that if its not connected it wont create the param, i'll have to find a way around this.

casey_jones
New Member

Re: PowerShell Module

Justin,

So far so good. I have not tried it with the script variables but definitely works when manually specifying with quotes.

Thanks!

jrich52352
Trusted Contributor

Re: PowerShell Module

Great let me know if you run in to any other issues

kallen27
New Member

Re: PowerShell Module

Would it be possible to get a self-contained version (ZIP file) that could be installed via USB w/o Internet access?

clint_mcguire
Occasional Advisor

Re: PowerShell Module

If you go to this GitHub link you can click Download Zip (button is the last one on the right). 

jrich523/NimblePowerShell ┬╖ GitHub

jrich52352
Trusted Contributor

Re: PowerShell Module

you could also install it locally and then zip up the Nimble folder in your module folder inside your my documents. The advantage there is you dont get any of the unnecessary stuff

agnostic_comput
New Member

Re: PowerShell Module

This is incredible. Nice work Justin. How did you make such a beautiful animated gif?

Oh the powershell module is cool too.

Is your module signed?     Want to try this out.

jrich52352
Trusted Contributor

Re: PowerShell Module

Gifcam

and no its not signed, i dont have the $300 to drop on a code signing cert... you're welcome to buy one for me

agnostic_comput
New Member

Re: PowerShell Module

I just may it's that cool!

Sorry I didn't mean to come off like a jerk just wanted to know.

jrich52352
Trusted Contributor

Re: PowerShell Module

well maybe the nimble folks can pitch in and get me one since im doing the work for them

aherbert23
Trusted Contributor

Re: PowerShell Module

Justin, you can get one pretty cheap from StartCom. That's where I got mine. They provide free trusted SSL certs for websites. The code signing ones are free too, but you have to have a second level ID check which is like $50.

jrich52352
Trusted Contributor

Re: PowerShell Module

very cool, i'll have to check that out!

mikeelam57
Occasional Advisor

Re: PowerShell Module

I am working with Nimble PowerShell module, and am curious if it can allow you to work with volume collections? The volume that I am wanting to snap/clone has SQL Databases. I want to be able to have the snapshot VSS aware so the databases can be brought online in a good state. Any recommendations?

Thanks,

jrich52352
Trusted Contributor

Re: PowerShell Module

Volume Collection snapshot was added to the new-nssnapshot

also is anyone using this on 2.0.7.0?

I just updated and it seems like it broke the new-nsvolume?

clint_mcguire
Occasional Advisor

Re: PowerShell Module

Hey Justin,

Can you add Set-NSVolumeACL?

I've tried to use $acl = Get-NSVolumeACL <vol>

$acl.InitiatorGrp = "<new acl>"

$acl.set

But it doesn't update the properties on the Array. 

It will update the value of the object in PowerShell, can be demonstrated by running $acl before and after the $acl.InitiatorGrp...  Also, $acl.set doesn't throw an error.

mikeelam57
Occasional Advisor

Re: PowerShell Module

I believe Justin already included a way to update the ACL for Nimble Volumes.

Add-NSInitiatorGroupToVolume -InitiatorGroup (String) -Volume (string) -Access Volume

Mike

mikeelam57
Occasional Advisor

Re: PowerShell Module

Justin,

I am wanting to update arrays to 2.x, are we safe to utilize the same module?

Mike

clint_mcguire
Occasional Advisor

Re: PowerShell Module

Right!

Thanks,

jrich52352
Trusted Contributor

Re: PowerShell Module

Its not safe but im working on the module now, because I need it too. I should hopefully have something posted by tomorrow.

I dont know why, but i've stopped getting emails when there are new messages so i apologize about the delays!

i'll have to poke around my profile

ramkump2
New Member

Re: PowerShell Module

Hi Justin

I am trying to replicate the volume collection can it be done? Ive tried doing it but it just creates the volume collection snapshots and does not replicate it.

Ive tried -replicate as a common parameter but doesn't work

New-NSSnapshot -name repl -VolumeCollection xxxxxxxxxxxx -replicate

Thanks


    New-NSSnapshot [-Name] <String> [-VolumeCollection] <String> [-Description
    <Object>] [-Online] [-Writable] [<CommonParameters>]


DESCRIPTION
    Takes a new snapshot of a specified volume, allowing you to control if its
    writeable and if its online or not.

jrich52352
Trusted Contributor

Re: PowerShell Module

I didnt impliment any replication functionality, because I didnt have any way to test it.

I dont work at the same company any more and dont currently have access to any nimble storage to write/test any additions.

I hope to get access to a unit in the not to distant future.

ramkump2
New Member

Re: PowerShell Module

Hi Justin,

I wonder if its as easy as adding another switch like online and writeable in the snap ps script just call it replicate not really sure as I am not a powershell expert so would appreciate any help and I can test it here, might be useful for other users too. At the moment I've written another script using the powershell ssh module but would rather use this method if we can get it working.

Thanks


jrich52352
Trusted Contributor

Re: PowerShell Module

So, the CommonParameters has to do with cmdletbinding, and its for stuff like -verbose

http://technet.microsoft.com/en-us/library/hh847884.aspx

As far as adding replication, thats not a feature of the snapshot, so it would end up as a separate cmdlet.

its probably not too horrible to write, but without having access to a pair of units, I wouldnt be able to test it.