olan025
Enthusiast
Enthusiast

Script Repository?

Jump to solution

Hey VMWare,

How about a VMWare Script Repository? or maybe a 3rd party. Seems like there are many good people willing to share out there scripts..

maybe this exists and my newbness misses it.

0 Kudos
1 Solution

Accepted Solutions
heyitspablo
VMware Employee
VMware Employee

Folks,

Glad this came up,, I agree our scripting repository needs a lot of help.. Smiley Wink

Right now we have 3 repositories we keep track of

  1. 1. Sample code in the product docs

  2. 2. Sample code developed by VMware http://www.vmware.com/communities/content/developer/samplecode/

  3. 3. Sample code developed by Community http://communities.vmware.com/community/developer/utilities?view=documents

As an interim solution we will be organizing #3 by language.. ie PowerShell, Java, Perl etc... Its not perfect, but hope it helps finding a script you need.

In the future we need to look at a real solution,,, please send us your comments, feedback...

-Pablo

Keep up with latest info on vSphere PowerCLI http://blogs.vmware.com/vipowershell - Follow me on Twitter @heyitspablo

View solution in original post

0 Kudos
16 Replies
dconvery
Champion
Champion

From what I have seen, there is a bunch of scripts posted in various forms throughout the forums. For example, in this section and the perl section, people will either attach or post the contents of their script and others will troubleshoot / change / enhance the posted script. You can do an advanced search if you are looking for a particular function.

Also, check out http://blogs.vmware.com/vipowershell for scripts, etc.

Dave

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
admin
Immortal
Immortal

Here are the options today:

First, we have the Community Sample Code forum. It doesn't get a whole lot of traffic currently as you can see.

As for external resources, poshcode.orghas a lot of good generic PowerShell code, as well as a good bit of stuff specific to VMware.

These communities are not devoted to developer/scripter activities per se, they are mainly to support our products like Workstation and ESX. Developer activity is not the top priority as you can see from our continued code formatting problems. Can you give suggestions of what you would like to see if we were to have something else? Something forum style? Something wiki style? Something else?

Thanks

halr9000
Commander
Commander

As Carter mentioned, Poshcode.org is a PowerShell-specific site which is in use by many today. There are very big plans for this site. There is a dev team of...5 I think, plus a project manager. The project has support from PowerShellCommunity.org (which I represent) and implicit support from Microsoft. We aim to build a "CPAN for PowerShell".

What's there today is just a highly modified pastebin which works great but is not representative of the final product which will be built out at http://www.codeplex.com/PoshCode. If you'd like to learn more, listen to PowerScripting Podcast episodes 38 and 40 where we had some very detailed discussions with the devs. Ep 40 even has Jeffrey Snover weighing in.

http://powerscripting.wordpress.com/2008/08/25/episode-38-poshcode-and-powershellplus/

http://powerscripting.wordpress.com/2008/09/07/episode-40-poshboard-part-duex/






Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
I_C
Enthusiast
Enthusiast

Something like a svn/cvs system. Something searchable with versioning. Smiley Happy

0 Kudos
olan025
Enthusiast
Enthusiast

My thoughts were something like the Hey scripting Guy thingy that another vendor has that i'll leave unmentioned... Smiley Happy

From what i see (which is cloudy and limited), there are several "categories" of scripts. VM Management, Datastore Management, VMhost Management, etc etc,

I know the site I mentioned is scripts published by the vendor themselve, wherein here they are community.

I think the VIToolkit forum is reaching a point where there's a good amount of info in here and it would be helpful to break it out by category,, and allow scripts to be posted in a specific format. I've posted some to the "Documents" section, but this is a general location for anything classified as a doc.

My gut is that it would quickly form into a nice repository of very useful scripts.

My $.02

-- Added -

Thanks to halr9000 and the others on the 3rd party stuff... I've used evernote.com just to store my own.... I'll have to look at poshcode and check out your podcasts between fantasy football podcasts and screaming at government spending my money... Smiley Happy

0 Kudos
dconvery
Champion
Champion

Hey Carter -

The new viops.vmware.com board may be a good spot to start a script repository. The idea there is that any doc posted is reviewed and approved before final publishing... It may be too big of an undertaking to review and approve, but it is an idea.

The idea of a wiki is a good one as well. This version on the forum software really does stink when you are trying to post lines of code directly into the thread.

Dave

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
admin
Immortal
Immortal

Stink is one way of putting it, especially when you want a family-friendly forum Smiley Happy

Thanks for the VI-OPS suggestion, I'll have to check in to that, they keep asking me to write articles for them.

0 Kudos
dconvery
Champion
Champion

Yeah, Chambers is relentless that way 🐵

Dave

************************

"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."

Bill Watterson, cartoonist, "Calvin and Hobbes"

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
heyitspablo
VMware Employee
VMware Employee

Folks,

Glad this came up,, I agree our scripting repository needs a lot of help.. Smiley Wink

Right now we have 3 repositories we keep track of

  1. 1. Sample code in the product docs

  2. 2. Sample code developed by VMware http://www.vmware.com/communities/content/developer/samplecode/

  3. 3. Sample code developed by Community http://communities.vmware.com/community/developer/utilities?view=documents

As an interim solution we will be organizing #3 by language.. ie PowerShell, Java, Perl etc... Its not perfect, but hope it helps finding a script you need.

In the future we need to look at a real solution,,, please send us your comments, feedback...

-Pablo

Keep up with latest info on vSphere PowerCLI http://blogs.vmware.com/vipowershell - Follow me on Twitter @heyitspablo
0 Kudos
yorkie
Hot Shot
Hot Shot

Relentless Chambers here!

How's it going with that script repository - did one get set up... I can't see on on VIOPS.

We are currently planning a revamp of VIOPS for Jan 09 - if we need a dedicated zone, now is the time to say!

Ciao

Steve

0 Kudos
halr9000
Commander
Commander

What kind of features are we talking about? I'm afraid you'll have to "sell" VIOPS to me here.






[PowerShell MVP|https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], VI Toolkit forum moderator

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
yorkie
Hot Shot
Hot Shot

That won't be necessary Smiley Happy

Looks like Pablo posted some good links

Steve

Message was edited by: yorkie

0 Kudos
halr9000
Commander
Commander

Actually, I have to disagree. It is very tedious to create documents. The barrier to entry is high enough that your volunteer rate will stay low, IMO.

We have about 15 VMware scripts here: http://poshcode.org/?lang=&q=vmware

I've blogged a few, as have several others in the community.






[PowerShell MVP|https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], VI Toolkit forum moderator

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
yorkie
Hot Shot
Hot Shot

Sorry, Hal, what do you disagree with? Sorry if I'm not keeping up... Smiley Wink

How is it tedious? It takes minutes to create a doc and post code into it? It is a pain to paste in images, but you can attach a document if you like.

I looked at that link you posted and it nearly blinded me - ouch! Do you get a free pair of sunglasses with your membership? :smileylaugh:

The reasons why people do and don't contribute to any collaboration site are complex and many. As I work for VMware I think it's my job to work a bit harder to make it a bit easier for the reader / consumer, which means it takes me a bit longer to write a document and I expect my fellow contributors to keep to the same standard - and if that puts some folks off then so be it.

it is kind of a Darwinian result because the contributors who are willing to invest their time (still only minutes) are worth hundreds of random postings.

Horses for courses, I guess. :smileygrin:

0 Kudos
admin
Immortal
Immortal

I have to agree with Hal that we're not going to see much of this on the communities as they exist today. Documents are really hard to deal with and the lack of a good wiki is another serious limitation.

I think the two key elements are:

1. Really simple to contribute and update. Poshcode may be ugly, but it's got the contribution part right.

2. Some easy mechanism for the good stuff to bubble up to the top. Stackoverflow.com has a good model here.

P.S. I'm not ignoring your mail, I promise I'll write back some time Smiley Happy

0 Kudos
wila
Immortal
Immortal

Hi,

Interesting topic you guys have as I've been working on something like this over the weekend.. have a look at a preview here;

http://www.vi-toolkit.com/wiki

I still have to do a LOT of work there, but hopefully I won't be the only one contributing to the content. Smiley Wink

Basically this is a plain mediawiki site with a theme, so if you are comfortable using wikipedia then this will work for you.

I have been using mediawiki sites for myself and customers with much success for posting code snippets and all.

In my opinion it is very easy to use and very flexible.

Depending on the needs it can grow in any direction and it is no problem for example to add a subversion server for source code version control.

All feedback is welcome



--

Wil

edit: do'h fixed a typo in the URL

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos