display of the results with a mac duplicate script

I'm still pretty new to powershell scripts and have learned quite a bit from reading the code, others have implemented here on the forum and other items. Given that, I still have a lot to learn and I'm having a really frustrating issue with a small script, asked me to set up.

The purpose of the script is to try to locate the duplicate MAC addresses separately for VM, host physical NIC, and VMKernal interfaces. First, it brings together all the MAC addresses for each and stores individually. It also combines each of them in a table, so that in this way it may list the duplicates they each individually, as well as duplicates between them as well. When I run the ps1 file into powercli, I get the partial results. The VMKernel box lists the mac address, but not the name of host or portgroup related. The combined results end up completely empty. If I paste the exact content of the ps1 file into powercli directly, it goes through correctly and displays all the required information that is not there when I run the script file, with the exception of the vmkernal host and name new portgroup. For some reason we won't not display information at all. I noticed that the amount of extra empty lines displayed in the combo box are as many lines of results that come through when I just paste the script in. So it's like we know it is data, but just can not visually display for some reason any and I honestly don't know enough to understand why. I guess its some sort of in the form of question, and I hope someone can tell me what I'm doing wrong.

Is attached a copy of the script, and copy/paste between the powercli window runs the script and also simply paste the script into the window. Of course, my poor coding style makes it semi difficult to read when I just paste the contents of the script in powercli.

Note: according to the vmworld session I attended with LucD as one of the hosts, I apoligize for killing puppies with my continued use of the write-host I have not had time to study alternatives and not me used them as well.

I really appreciate any help that anyone can provide me with


Great idea for a script.

I think that your problem is with this line

$combineddup = $combinedreport | Object-group Mac | where {$_.} {Group - gt 1}

who should I be

$combineddup = $combinedreport | Object-group Mac | where {$_.} {Group.Count - gt 1}

I have attached a revised version of the script with a few other changes I would like to suggest. Take a look.

Do not hesitate to ask if some of my proposed amendments are unclear.

On puppies, you're excused for the first 10 scripts that you post in this community

Tags: VMware

Similar Questions

  • How to use the adapter from the wall with my Mac Pro laptop?

    How to use the adapter from the wall with my Mac Pro laptop?

    The AC wall connector is not compatible with the outlet on the MBP?  As the MBP charger will work from 100v to 240v, a transformer is necessary.  You need a converter that connects to the power outlet home and is compatible with your MBP.  You can buy the Apple travel kit:

    http://www.Apple.com/shop/product/MD837AM/A/Apple-world-travel-adapter-Kit

    Or you can use a single specific converter for the geographical area:

    http://www.Amazon.com/orei-grounded-universal-adapter-Singapore/DP/B004SCSV2U/re f = sr_1_4? ie = UTF8 & qid = 1460735377 & sr = 8-4 & keywords = us + in + uk + power + adapter

    (it is a UK USA example)

    Or you can get the converter that adapts the charger directly:

    http://www.Amazon.com/HIOTECH%C2%AE-extension-charger-connecting-specification/d p/B00MA48JZW/ref = sr_1_3? ie = UTF8 & qid = 1460735486 & sr = 8-3 & keywords = us + in + uk + power + ad aptor + apple + charger + cord

    (again, this is for a UK plug.)

    Ciao.

  • When I subtract two numbers DBL and try to compare the result with another DBL, it fails

    I found a curious problem with subtraction and compare numbers DBL in LabVIEW (8.6). Here's how it works:

    1. subtract two numbers DBL such that the result is not incorporated. (Say, 3.2 - 3.1)

    2. compare the result with a constant/control that is on the result of the subtraction (in the example, 0.1)

    3 see the output of the comparison.

    If the result of the subtraction is an integer, the Boolean result is (as expected). If the result is not complete, the comparison fails.

    (Now, if I simply compare two floating point numbers, it works, so the issue is not with the node comparison itself, but with the data that is entered to the node). Can someone understand why this happens? It's unexpected, it's a pretty serious bug.

    It is provided with all programming languages. Numbers do not have an exact binary floating-point representation. This has been discussed endlessly. Never use the equal function with floats. You can use the function in the range and force.

  • Computer started to delay the result with a click of a button, etc. by seveal seconds.

    Have aw computer laptop Dell Inspiron 1501 XP SP3. Computer started to delay the result with a click of a button, etc. by seveal seconds.  A ran the anti-virus, malware search, keylogers search and found nothing.  The delay also occurs when you use an application such as CorelDRAW, Word, WordPerfect programs, etc.  any ideas what is happening or where to look? Thank you.

    You experience this delay all the time, or they occur from time to time?

    Could complete you the following procedure to obtain information about your current system and post here, so I can be more specific in suggestions.
    0 close the programs as open as you can before the first step.
    1 copy the following line below exactly as it appears:
    Taskpad cmd /C /V > tempo & tempo notebook
    2. press on + R
    3. paste copied line run window and press enter or click Ok.
    4 copy all the information from the Notepad window. (The list can be long, you can use + a combination to select all)
    5 paste info copied to the next reply.
    6. after that you can close the Notepad window.

  • Hi, I just bought a PC and I want to start editing with it.   What should I do, cancel my account and open a new one or what?  I have the composition with my mac.

    Hi, I just bought a PC and I want to start editing with it.   What should I do, cancel my account and open a new one or what?  I have the composition with my mac

    You can have Creative Cloud installed and signed in on two computers as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the website of Adobe using your Adobe ID, download the creative application Cloud, then download the applications you want to use.

    You can download the Adobe Creative Cloud Desktop App from here:
    Creative cloud help | Creative cloud desktop.

    After installing the desktop creative cloud application, you will need to sign in with a login password and Adobe. Then you can install applications. This link provides more information and step by step instructions, if you need: CC help | Download, install, update or uninstall applications

    If you get a new computer, simply log out of creative cloud over one of the other and log on to the new.  Connect, disconnect you and | Adobe Creative Cloud desktop app

    Guinot

  • Can we hide/show the mouse with an Action or Script?

    Hi all

    I'm developing a simulation using boxes to click in Captivate 4, on Windows XP. If the user clicks in the right place, the slide continues and shows the user what to do. If the user clicks on the exact spot, the simulation goes directly to the next slide. The problem is, successful or not, when the user moves to the next slide, saved the mouse pointer displayed on the slide. If I hide the mouse, then it remains hidden, even if the user clicks outside the box too many times and the simulation continues to show the user what to do. It's like things on the screen just select or click on themselves.

    I know the visibility of the mouse is used differently in the timeline to other objects. This isn't a particularly big deal, as long as there is a way to control the visibility of the mouse for simulations (one of the main points of sale of Captivate). Is there a way to control the visibility of the mouse with an Action or Script?

    The current settings for my click boxes are:

    clickbox_settings.png

    I tried to assign an Action (several actions, really) to hide, display, activate or deactivate the mouse but the mouse doesn't seem to be available to do!

    action_settings_show_w_droplist_rsz.png

    Am I missing something?

    Thank you

    ~ jeff

    Jeff,

    No problem, looks like an argument anyway you look at it. With the idea of image of concealment, just to clarify, you shouldn't have to reframe the context if you can get out with the help of the entire background graphic. All your background images are already in the library of backgrounds folder, so if you drag and drop the background image of the library on the slide, you can instantly use it as a picture rather than just a background image object.

    Just a thought, again in the case that it helps.

    d

  • I need script to remove the line with 2 points, another script to remove next lines

    I need script to remove the line with 2 points, another script to remove next lines of two scripts needed help please

    Thanks in advance

    Concerning

    Lakshmiganth

    Scroll through each pathitem and look at the length of his pathPoints group.  If the length is equal to 2 and then use the remove() method to remove it.  For example (this is rough, off the top of my head):

    var lines = new Array();

    for (i = 0;  I have< app.activedocument.pathitems.length; ="" i++)="">

    If (app.activeDocument.pathItems [i].pathPoints.length == 2) {}

    Lines.push (App.activeDocument.pathItems [i]);

    }

    }

    for (i = 0;  I have< lines.length; ="" i++)="">

    Lines [i]. Remove();

    }

  • APEX 4.0 IE8 - definition of value with dynamic Action - no display of the result

    Hello

    I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

    Event: change

    Rype of selection items

    Article: P77_item_1

    Condition: No strings attached

    Real Actions: The value

    Action: Set

    Set type: PL/SQL function body

    : P77_item_2: = Y;

    Page items to submit P77_item_1

    Items affected

    Items of Type selection

    Elements P77_item_2

    I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

    I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

    Thank you!

    Le_di wrote:

    I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

    Event: change

    Rype of selection items

    Article: P77_item_1

    Condition: No strings attached

    Real Actions: The value

    Action: Set

    Set type: PL/SQL function body

    : P77_item_2: = Y;

    Page items to submit P77_item_1

    Items affected

    Items of Type selection

    Elements P77_item_2

    I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

    I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

    Do not have access to an instance of APEX 4.0 to study, but any code of "PL/SQL function body" must include a RETURN clause:

    :p77_item_2 := 'Y';
    return :p77_item_2;
    
  • Display of the results of the query with the column names unknown

    I use this code to grab the headers of columns in a select * statement. (I never know what table is queried out of 12 000 or more.) I want to make a loop on the column headers, then the query results in a web page table.

    < cfoutput >
    < cfset colHeaderNames = ArrayToList (recordset1.getColumnList ()) / >
    #colHeaderNames #.
    < / cfoutput >

    Is there a similar method or suggestions for the release of the results of the query - now that I know the column headings?

    If I understand correctly, you can do something like the code below.

  • How to create an item of the display of the Image with functions Apex?

    Hi everyone :)

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report, I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    But I remember that I was able to create items in reports with the functions of the Apex, I think they were APEX_ITEM package, so I want to know if there is a way to create the '+' display Image + element with a function of APEX.

    Thank you.

    Diego (SniperCat) wrote:

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report

    Always specify if "report" means the report standard or interactive.

    I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    This post was obsolete when it was written. Use the built-in support of BLOB.

    Resizing of the declarative BLOB images in reports is simple using CSS. Add a style sheet with:

    td[headers="PHOTO"] img {
      display: block;
      width: 40px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }
    

    where the value of the PHOTO in the attribute selector is the ID of the image column table header. Define only a single dimension (in this case the width) will scale the image with the correct proportions. (Background, padding and border properties are just eye candy...)

    However, the scaling of the images in the browser in this way is a huge waste of bandwidth and product of lower quality images than to create good scaled down versions using image tools. Image download megapixel and then to reduce them to the size of the thumbnail result in needlessly pushing millions of bytes which will never be seen.

    For better performance and image quality, and where you need specific image scaling of the best approach is to use the ORDImage database object to produce thumbnail and preview automatically versions. Unfortunately, this is not possible in Oracle XE as multimedia is not included :-(.

  • Display of the results of calculation of data provided by the user in the dynamic text field

    Hi people,

    I am trampled on this one... Sorry...

    So, I'm working on a calculator, hitting a button, will display results based on the user data. I can get all the math to work OK, and he retraces perfectly.

    Now, the question becomes it to display on the fla itself.

    (The strange thing is, I had to keep all the data in the function. If I took it out, I would get all kinds of errors NaN and others. "But keep it within the service does the job very well.)

    What I'm missing here? I tried to do a total.set_Text = refundAmt; - but no luck. (The name of the instance to the box in the FLA file is 'total')

    Here is my code:

    ------

    trace_btn.addEventListener (MouseEvent.CLICK, showStuff);

    function showStuff (evtObj:MouseEvent): void {}

    var theSalary:Number = parseFloat (this ["inputSalary"] .text);

    var theDaysYouWorked:Number = parseFloat (this ["inputDaysYouWorked"] .text);

    var theEligibleDays:Number = parseFloat (this ["inputEligibleDays"] .text);

    var refundAmt:Number = theSalary * 0.005 / theDaysYouWorked * theEligibleDays;

    var lawyerFee20:Number = refundAmt * 0.80;

    var lawyerFee25:Number = refundAmt * 0.75;

    var lawyerFee30:Number = refundAmt * 0,70;

    var lawyerFee35:Number = refundAmt * 0.65;

    trace (refundAmt, "$" refundAmt.toFixed (2), "$" + lawyerFee20.toFixed (2), "$" + lawyerFee25.toFixed (2), "$" + lawyerFee30.toFixed (2), "$" + lawyerFee35.toFixed (2));

    }

    -------

    If I try to start another function, the results are not part of the scope, so I can't access it.

    Thoughts? Thanks in advance!

    N

    large.

    Please mark this thread as answered, if you can.

  • Display of the results of the new record

    Hello world

    I am new to Coldfusion, so I need a little hand holding. Here's what I'm trying to do with two tables in a SQL Server 2005 database issue:

    Suppliers
    CompanyID
    Company
    Contact
    Address
    State


    States
    StateID
    StateAbbrev
    StateName

    The status in the suppliers Table line is a FK link to the StatesID line in the States table.

    I use a drop-down menu to add the new provider on the Web site. I am able to insert the new provider very well, that is wonderful.

    My problem, however, is on the results page. After the new record is inserted, the user is automatically transferred to a results page where they can see the new provider.

    For the State, he sees the StateID of the States table. All that is fine and dandy, but I would like to be able to show "NJ" instead of "5" in the State.

    No help for me on this... Of course love... do all the time!


    But I'm a little excited...

    I think you just need to use a join in the query that returns the new information suppier. Here's the basic idea

    SELECT s.Company, s.Contact, s.Address, s.CompanyID, st. StateAbbrev
    PROVIDER s INNER JOIN States st WE s.State = st. StateID
    WHERE s.Supplier = #IDOfNewSupplier #.

  • Random display of the results of the query (no repeat)

    First of all, I'm new to ColdFusion, so please forgive me if the answer to this is blantantly obvious, if not totally impossible. Here's my problem.

    I queries a database with several hundreds records. The query will return an average of 10-15 records. Then, I want to display 2 of these files at random. I have so much work. The only problem is that every so often, the 2 folders that are displayed are the same record. I need avoid this outcome. The 2 folders should be always different.

    Here is a simplified version of my code:

    < CFQUERY "queryname" datasource = name = 'Datasourcename' >
    SELECT * FROM residential
    WHERE ListingOfficeName = 'Steve Realty.
    < / CFQUERY >

    < cfset randRecordsList = ">
    < cfloop from = '1' to '2' index "i" = = >
    < cfset randVal = randRange(1,queryname.recordCount) >
    < cfset randRecordsList = listAppend (randRecordsList, randVal) >
    < / cfloop >

    < cfloop list = "" #randRecordsList # "index 'i' = >"
    < cfoutput >
    #queryName.FieldName1 #.
    #queryName.FieldName2
    #.
    #queryName.FieldName3 # < br >
    < / cfoutput >
    < / cfloop >

    Any help would be appreciated. Thanks in advance.

    Here's the general idea. You can handle the specifics.

    generate a list of numbers.
    maxnum = 15;
    numlist = "";
    for (i = 1; I lte maxnum; I = i + 1)
    numlist = listappend (numlist, i);

    randomnums will be two random numbers
    RandomNums = "";
    x = true;
    While (x is true) {}
    ThisNum = plageAleatoire (1, maxNum);
    If (ListFind (RandomNums, ThisNum) is false)
    RandomNums = ListAppend (RandomNums, ThisNum);

    If (ListLen (RandomNums) 2)
    x = false;
    }

  • Page Firefox displays not the bar with file/edit/tools in space isn't empty

    My third bar below the address of the Web site space is empty no no display of the icons of file/edit/tools so I can not print
    Furgol loaded sites

    This has happened

    Don't know how many times

    is 01-08-2010

    Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.

    Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

  • Void total line display in the results

    Hello

    I have a report that has 7 columns. I'm a subtotal for SUBLOC, Dept, person - combined. They all will change only together. For example, the report will look like below

    Location FY Pimnt SubLoc Dept person ID
    2007 0700 205000 CAR3 OSDA RICKS ABCDEFG
    1234567 2008 0700 205000 CAR3 OSDA RICKS
    2009 0700 CAR3 205000 OSDA RICKS AB12345
    2007 0700 CAR3 205000 OSDA RICKS CD00000
    Total-
    2007 0700 205000 WAS3 OSDA RICKS ABCDEFG
    1234567 2008 0700 205000 WAS3 OSDA RICKS
    2009 0700 WAS3 205000 OSDA RICKS AB12345
    2007 CD00000 0700 WAS3 205000 OSDA RICKS
    Total-



    Currently, this is how it is displayed. I want the Total row to look like the following

    Location FY Pimnt SubLoc Dept person ID
    2007 0700 205000 CAR3 OSDA RICKS ABCDEFG
    1234567 2008 0700 205000 CAR3 OSDA RICKS
    2009 0700 CAR3 205000 OSDA RICKS AB12345
    2007 0700 CAR3 205000 OSDA RICKS CD00000
    Total of CAR3OSDARICKS-
    2007 0700 205000 WAS3 OSDA RICKS ABCDEFG
    1234567 2008 0700 205000 WAS3 OSDA RICKS
    2009 0700 WAS3 205000 OSDA RICKS AB12345
    2007 CD00000 0700 WAS3 205000 OSDA RICKS
    Total of WAS3OSDARICKS-

    How can I 'CHAT' data and bring it as a legend in the line of subtotal for display purpose? Help, please. Thank you.

    Hello

    Create a dummy column, in which concatenate the columns you want to display in the subtotal and hide the dummy column.
    Now go to rotate the view, add the dummy column and other dimensions in the section lines, add the measure to the measure.
    put the dummy column as the first column of the pivot display lines section.
    For the dummy column select the sub total (after).

    Thank you
    Vino

Maybe you are looking for