Automation

 View Only
Expand all | Collapse all

Script Repository?

  • 1.  Script Repository?

    Posted Oct 01, 2008 04:23 PM

    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.



  • 2.  RE: Script Repository?

    Posted Oct 01, 2008 07:10 PM

    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



  • 3.  RE: Script Repository?

    Posted Oct 01, 2008 10:48 PM

    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



  • 4.  RE: Script Repository?

    Posted Oct 02, 2008 12:12 AM

    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)



  • 5.  RE: Script Repository?

    Posted Oct 02, 2008 12:57 AM

    Something like a svn/cvs system. Something searchable with versioning. :smileyhappy:



  • 6.  RE: Script Repository?

    Posted Oct 02, 2008 02:31 AM

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

    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... :smileyhappy:



  • 7.  RE: Script Repository?

    Posted Oct 02, 2008 11:10 AM

    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



  • 8.  RE: Script Repository?

    Posted Oct 02, 2008 03:23 PM

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

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



  • 9.  RE: Script Repository?

    Posted Oct 02, 2008 03:29 PM

    Yeah, Chambers is relentless that way :o)

    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"



  • 10.  RE: Script Repository?

    Posted Dec 06, 2008 11:01 AM

    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



  • 11.  RE: Script Repository?

    Posted Dec 07, 2008 04:15 PM

    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



  • 12.  RE: Script Repository?

    Posted Dec 07, 2008 05:57 PM

    That won't be necessary :smileyhappy:

    Looks like Pablo posted some good links

    Steve

    Message was edited by: yorkie



  • 13.  RE: Script Repository?

    Posted Dec 07, 2008 06:23 PM

    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



  • 14.  RE: Script Repository?

    Posted Dec 07, 2008 06:45 PM

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

    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:



  • 15.  RE: Script Repository?

    Posted Dec 07, 2008 08:28 PM

    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 :smileyhappy:



  • 16.  RE: Script Repository?

    Posted Dec 07, 2008 09:40 PM

    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. :smileywink:

    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



  • 17.  RE: Script Repository?
    Best Answer

    Posted Oct 02, 2008 04:10 PM

    Folks,

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

    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