vNAM!

Gentlemen.

I'm Explorer vNAM and need your expert opinion.

I have a module of UCS-E 'without' a hypervisor and want to build as a standalone Windows Server. Is it possible to install vNAM on such server and activate its features?

Kind regards

Amol.

No it won't. You will need virtualized environment or VMWare ESXi server, where you can deploy the NAM software a host machine. Or you can have RHEL with KVM.

On the ESXi server, you can use the vNAM EGGS image (nam - app - x86_64.6 - 0 - 2.ova) to be deployed as a host. Once connected to the VMware ESXi server, choose file > deploy OVF model vsphere, menu bar, point to the EGG image to install.

In the same way on operating system RHEL KVM choose and deploy the .iso image to install.

-Thank you

Vinod

* Note encourages contributors, and it's really free. **

Tags: Cisco Network

Similar Questions

  • Removal of PE_PATCHED. EMS

    Someone who has experience with PE_PATCED. EMS? I use trend titanium as my all-inclusive protection software. He now permanently took over this PE_PATCHED. Small businesses and States that my explorer.exe file and winlogon.exe is infected, but cannot be resolved - access denied. Any ideas?  What happens if I use flash-drives etc.  It will get infected?

    Hello

    If you use a flash drive to copy or transfer the data, it can also be infected.

    I suggest you follow the steps in the link below and check if that fixes: http://threatinfo.trendmicro.com/vinfo/virusencyclo/default5.asp?VName=PE%5FPATCHED%2ESMA&VSect=Sn

    If this is not the case, check with the manufacturer and check if there is update patches to remove the virus.

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • BlackBerry smartphones, what will happen if I restore my OLD BB data in the new system of BB?

    I'm planing to change my BB device, my BB Curve 9360 for BB Curve 9220.

    My question is that if I backup that my old data from my Curve 9360 then restore it in the new one, BB Curve 9220 will I have my BB PIN remain the same as in my Curve 9360 ot I have to use a new one in the curve 9220?

    Can I put the 9220 Curve with the latest OS from my BB Curve 9360?

    Are there opportunities that I could use my old BB PIN in my BB Curve 9360 instead of the new?

    Thank you: to vname in my Vns

    If you bought a pin code customized for BBM you can keep that. However, the BlackBerry pin code does not change. There is a white label under the battery that has your PIN on it. No way to change that.

  • We must register if the trigger was disable

    Hi all

    Will have one of the scenarios,

    If the trigger has been disabled, then we need to insert another table through trigger for the details of the audit, if possible.

    Please tel me your suggestion...

    I thank in advance

    If I understand, you want to detect when a person turns off a trigger?  What if a person disabled, for example by causing an error in an addiction? It is difficult to trigger detection.

    Anyway if the first case, you could add a DDL on "AFTER ALTER" trigger on the schema or DB you want to monitor.  I wouldn't not recommend myself well.  But something like...

    create or replace trigger AASCH_TRIGGER after alter on schema

    declare

    vOwner varchar2 (30);

    VNAME varchar2 (30);

    vType varchar2 (30);

    vStatus varchar2 (50);

    Start

    Select ora_dict_obj_owner, ora_dict_obj_name, ora_dict_obj_type

    in vOwner, vname, vType

    Double;

    If ora_dict_obj_type = "TRIGGER" then

    Select the STATE

    in vStatus

    from user_triggers

    where trigger_name = VNAME;

    If vStatus <> 'ACTIVE' then

    -Do something, e-mail or other

    end if;

    end if;

    end;

    /

  • task in the Scheduler

    I have created a program, set the arguments and then created work using dbms_scheduler. Now I want to run this job with different values in a table and set the loop as below to define the different arguments. But I get the error as indicated. Please help me

    Start

    for rec loop (select name from project_tables)

    dbms_scheduler.set_job_argument_value (job_name = > 'myjob', argument_name = > 'VNAME', argument_value = > rec);

    end loop;

    end;

    Error report:

    ORA-06550: line 3, column 1:

    PLS-00306: wrong number or types of arguments in the call to 'SET_JOB_ARGUMENT_VALUE '.

    If you want to process in parallel, you can try something like DBMS_PARALLEL_EXECUTE. I gave the example of DBMS_PARALLEL_EXECUTE below, and I guess that your work is very well suited for the use of DBMS_PARALLEL_EXECUTE.

    -Test table creation

    CREATE TABLE test_parallel

    (

    Eid NUMBER

    DEPTNO NUMBER,

    job_id NUMBER,

    sess_id NUMBER

    );

    -Insertion of nulls, later the task updates the row

    INSERT INTO test_parallel

    SELECT NULL, deptno, NULL, sess_id FROM dept;

    -Logics of business you want to run in parallel

    CREATE OR REPLACE

    PROCEDURE test_parellel_update)

    p_start_id NUMBER,

    p_end_id NUMBER,

    p_jobid NUMBER)

    AS

    BEGIN

    UPDATE test_parallel

    SET eid = eid + 10,

    job_id = p_jobid,

    session_id = SYS_CONTEXT ('USERENV', 'SESSIONID')

    WHERE deptno BETWEEN p_start_id AND p_end_id.

    END;

    -Parallel jobs that is used to call the procedure that includes all the logic of the enterprise

    CREATE OR REPLACE

    PROCEDURE proc_parallel_task)

    p_jobid NUMBER)

    AS

    l_stat VARCHAR2 (200);

    l_loopcnt NUMBER: = 0;

    l_status NUMBER;

    BEGIN

    DBMS_PARALLEL_EXECUTE. CREATE_TASK ('ANNEDMUND_TASK');

    ((- There are three ways to create a pieces, 1) CREATE_CHUNKS_BY_ROWID, 2.) CREATE_CHUNKS_BY_NUMBER_COL, 3) CREATE_CHUNKS_BY_SQL

    -If you want to create a piece using ROWID uses CREATE_CHUNKS_BY_ROWID

    -If you want to create a piece using the column sequence number using CREATE_CHUNKS_BY_NUMBER_COL

    -If you want to create a piece using the sql query using CREATE_CHUNKS_BY_SQL

    DBMS_PARALLEL_EXECUTE. CREATE_CHUNKS_BY_NUMBER_COL ('ANNEDMUND_TASK', - task name

    'SCOTT',                                                            -- Owner name

    'DEPT', - Table name to create a pieces

    "DEPTNO", based on which column you want to create a pieces

    4 - pieces how you want to treat each parallel working

    );

    -: start_id,: end_id is the placeholder for the value of the segment.

    l_stat: = ' BEGIN test_parellel_update(:start_id,:end_id,:p_jobid); END;';

    -With parallel task execution how many jobs you want (I said 4)

    DBMS_PARALLEL_EXECUTE. RUN_TASK ('ANNEDMUND_TASK', l_stat, DBMS_SQL. NATIVE, 4);

    -Get the status of employment

    l_status: = DBMS_PARALLEL_EXECUTE. TASK_STATUS ('ANNEDMUND_TASK');

    -Make a loop and check whether or not the work has been completed

    WHILE (l_status! = DBMS_PARALLEL_EXECUTE.) FINISHED)

    LOOP

    DBMS_PARALLEL_EXECUTE. RESUME_TASK ('ANNEDMUND_TASK');

    l_status: = DBMS_PARALLEL_EXECUTE. TASK_STATUS ('ANNEDMUND_TASK');

    END LOOP;

    DBMS_PARALLEL_EXECUTE. DROP_TASK ('ANNEDMUND_TASK');

    END;

    Finally, you can call the proc_parallel_task procedure in a job.

    Here is the url of the document that is explained DBMS_PARALLEL_EXECUTE

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/d_parallel_ex.htm#ARPLS233

  • File Image store in BLOB column Oracle 6i form

    Hi all

    I want to save the image file into the BLOB column using oracle forms 6i. I used READ_IMAGE_FILE to retrieve image at the point of the image on the forms, but all save the image file recording is not in the type BLOB in a corresponding table column.

    Please help and guide me in this regard.

    Atif Zafar

    Here's a code example

    declare
        filename varchar2(256);
        VNAME varchar2(100);
    begin
        SELECT LIC_SERVER_NAME INTO VNAME --- DESTINATION SERVER / PC NAME START WITH "//". eXAMPLE //SERVER-NAME
        FROM PATH_TABLE;
    
        filename:=GET_FILE_NAME(File_Filter=> 'JPG Files (*.jpg)|*.jpg|');
        read_image_file(filename, '', 'CUST.TXT_VOTER_ID_CARD');
        host ('cmd /c copy "'||filename||'" "'||VNAME||'/CNG_SOFT/voter_id_card/'||'\'||:CUST.AD_CODE||'.jpg',NO_SCREEN);
    end;
    

    Hope this helps

    Hamid

  • Read XML with different schema definitions

    Hello

    I have a XML stored in an XMLTYPE table and I have no problem to read the first part (ELMAHeader)

    WITH t AS(
    SELECT XMLTYPE(
    q'[<?xml version = '1.0' encoding = 'UTF-8'?>
    <ELMAKM xsi:noNamespaceSchemaLocation="./KM/01.00/ELMAKM_000001.xsd" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:km="http://www.zivit.de/KiStA/KiStAM/V1.0/KiStA-KiStAM-Anfrage">
       <ELMAKOM>
          <ELMAHeader ELMAKMVersion="1">
             <AuthSteuernummer>BG</AuthSteuernummer>
             <AccountID>11</AccountID>
             <KundeneigeneID>1</KundeneigeneID>
             <Verarbeitungslauf>PROD</Verarbeitungslauf>
             <ErstellungsDatum>2014-09-16</ErstellungsDatum>
             <ErstellungsZeit>11:00:27.7</ErstellungsZeit>
          </ELMAHeader>
          <ELMAVerfahren>
             <KISTA_KM_ANTW UUID="0345" OrdBegriff="SLD" 
             xsi:schemaLocation="http://www.zivit.de/KiStA/KM/01.00-r000001 ./KM/01.00/ELMAKM_KISTA_000001.xsd" 
             xmlns="http://www.zivit.de/KiStA/KM/01.00-r000001" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             xmlns:k="http://www.zivit.de/KiStA/Std/01.00-r000001">
                <KiStAV_DL Zulassungsnummer="2"/>
                <KiStAV Zulassungsnummer="2" Name="SLD"/>
                <Antwort xsi:type="AntwortArt3" UUID="0f" KdOrdBegriff="4">
                   <ReturnCode>1</ReturnCode>
                   <Anlass Datum="2014-08-11" Grund="1"/>
                   <PersAngabe>
                      <Person>
                         <k:NName>B</k:NName>
                         <k:VName>Y</k:VName>
                         <k:GebDt>1944-10-11</k:GebDt>
                      </Person>
                      <Adresse xsi:type="k:InlandsAdresse">
                         <k:Str>A-Str.</k:Str>
                         <k:HausNr>5</k:HausNr>
                         <k:Ort>M</k:Ort>
                         <k:Plz>8</k:Plz>
                      </Adresse>
                   </PersAngabe>
                </Antwort>
             </KISTA_KM_ANTW>
          </ELMAVerfahren>
       </ELMAKOM>
    </ELMAKM>]') x FROM dual
    )
    SELECT  x
           ,elma.ELMAKMVersion
           ,elma.AuthSteuernummer
           ,elma.AccountID
           ,elma.KundeneigeneID
    FROM    t
           ,XMLTABLE(
                '/ELMAKM/ELMAKOM/ELMAHeader'
                PASSING t.x
                COLUMNS ELMAKMVersion       VARCHAR2(8)     PATH '@ELMAKMVersion'
                       ,AuthSteuernummer    VARCHAR2(10)    PATH 'AuthSteuernummer'
                       ,AccountID           VARCHAR2(10)    PATH 'AccountID'
                       ,KundeneigeneID      VARCHAR2(10)    PATH 'KundeneigeneID'
                ) elma
    ;
    

    But how can I read the second part (ELMAVerfahren)? I tried several selects, but I get no results, for example

    WITH ...
    SELECT  x
           ,elma.UUID
    FROM    t
           ,XMLTABLE(
                XMLNAMESPACES(
                    DEFAULT './KM/01.00/ELMAKM_KISTA_000001.xsd'
                    ,'http://www.zivit.de/KiStA/KiStAM/V1.0/KiStA-KiStAM-Anfrage' AS "km"
                    ,'http://www.zivit.de/KiStA/Std/01.00-r000001' AS "k"
                    ),
                '/ELMAKM/ELMAKOM/ELMAVerfahren/KISTA_KM_ANTW'
                PASSING t.x
                COLUMNS UUID       VARCHAR2(8)     PATH '@UUID'
                ) elma
    

    Version of DB

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    Concerning

    Marcus

    Hi Marcus,

    If you declare a namespace by default using the with XMLNamespaces clause, it will apply to all items not qualified, referenced by the XQuery expression.

    In your attempt, ELMAKM, ELMAKOM and ELMAVerfahren are treated as part of the namespace by default, which is false as nodes are in any workspace names.

    To manage this kind of situation, where there is default redefinitions of namespace in the tree, you must declare a prefix:

    SELECT x

    elma. UUID

    T

    XMLTABLE)

    XMLNamespaces ('http://www.zivit.de/KiStA/KM/01.00-r000001' as "ns0")

    , ' / ELMAKM/ELMAKOM/ELMAVerfahren / ns0:KISTA_KM_ANTW.

    PASSAGE t.x

    UUID VARCHAR2 COLUMNS (8) PATH '@UUID '.

    ) elma

    ;

  • ORA-06550, PLS-00306: wrong number or types of arguments in the call to ' |'

    Hi all

    Please help me about this error, if I comment the threshold (in the color of the thickness)

    ERROR on line 19:

    ORA-06550: line 19, column 25:

    PLS-00306: wrong number or types of arguments in the call to ' |'

    ORA-06550: line 19, column 3:

    PL/SQL: Statement ignored

    DECLARE

        TYPE nametable IS TABLE OF CHAR(10) INDEX BY BINARY_INTEGER;

        vname NAMETABLE

        CURSOR cf

        IS

          SELECT ename

            FROM emp;

        i     NUMBER;

    START

        OPEN cf;

        i := 1;

        LOOP

            FETCH cf INTO Vname (i);

            EXIT WHEN cf%NOTFOUND;

            i := i + 1;

        END LOOP;

        CLOSE cf;

    dbms_output. Put_line ('Name is ' || VNAME );

        FOR n IN 1.. VNAME . County LOOP

    dbms_output. Put_line ('Name is ' || VNAME (n));

        END LOOP;

    END ;


    Thank you

    VNAME is an associative array. You can not use in DBMS_OUTPUT. Put_line as such. You need to loop through what you did in the code after the DBMS_OUTPUT and print each element of the array individually.

  • Check the string value when using xdoxslt

    Hello

    I'm new to the BEEP and will have questions in writing this simple code for a model RTF. In plain language, that's what I want to do:

    If (instr(FirstName,'concern',0) > 0 and instr(LastName,'concern',0) > 0 and instr(MiddleName,'concern',0) > 0) then the VNAME variable value "

    on the other

    If (instr(LastName,'1-',0) > 0), then set VNAME variable FirstName

    on the other

    the value of VNAME variable FirstName + "" + name

    Finally... show the VNAME variable

    ===========

    I wrote it, but it doesn't work:

    declared variable... Initialize it to x.

    <? xdoxslt:set_variable($_XDOCTX,_'v_RTPMName',_'x')? >

    String value of control-> - error.

    <? If: (xdoxslt:Instr (lower(coFirstName|| coMiddleName || coLastName), "abuses", 0) > 0)? >

    <? xdoxslt:set_variable($_XDOCTX,_'v_RTPMName',_'')? >

    <? end if? >

    write the variable

    <? xdoxslt:get_variable($_XDOCTX,_'v_RTPMName')? >

    Thanks for the help!

    For a quick overview,.

    InStr is belong to the xdofx family, must be used in this way instead of xdoxslt:Instr()

    For example: If condition 1 0 otherwise true back

    0 then 1 or 0 end if? >

  • Practice schedules!

    Hello

    can someone help me with the below question.

    Q: for a given emp, view ename, sal and sal_status

    low: 0 to 2000

    medium: 2001 to 3000

    top > 3000

    I don't know how to print a sal_status, I wrote the sub program but I think that its correct and it gives lots of error messages too.

    DECLARE

    number of Veno: = & empno;

    VNAME emp.ename%type;

    vsal emp.sal%type;

    Vstatus varchar (5);

    BEGIN

    Select ename, sal

    IN VNAME, vsal

    WCP

    where empno = veno;

    If (sal < = 2000) THEN

    dbms_output.put_line ("Low");

    another (sal between 2001 AND 3000) THEN

    dbms_output.put_line ("medium");

    ON THE OTHER

    dbms_output.put_line ('High');

    ENDIF;

    END;

    /


    Help, please.

    Hello

    working with PL/SQL when a simple SQL statement enough is a very bad idea. You simply use a SELECT statement:

    SELECT ename
    sal

    CASE WHEN sal<=>

    THEN "LOW".

    Sal WHEN<=>

    THEN "WAY.

    ELSE 'HIGH '.

    END sal_status

    WCP

    WHERE empno = & given_empno

    ;

    (Note: assuming that "sal is not null')

    Best regards

    Bruno Vroman.

  • Spend multiple values with parameter of stored procedure

    CREATE TABLE VTEST_INSERT)

    NUMBER OF MY_ID,

    COLUMN1 VARCHAR2 (50)

    );

    -SELECT * FROM VTEST_INSERT;

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (1, 'TEST1');

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (2, "TEST2");

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (3, "TEST3");

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (4, "TEST4");

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (5, 'TEST5');

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (1, "TEST6");

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (2, 'TEST7');

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (3, "TEST8");

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (4, 'TEST9');

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (5, "TEST10");

    CREATE OR REPLACE

    PROCEDURE VTEST_INSERT_SP (vid in VARCHAR2, vname IN VARCHAR2)

    AS

    BEGIN

    DELETE FROM VTEST_INSERT WHERE MY_ID IN (vid);

    INSERT INTO VTEST_INSERT (MY_ID, COLUMN1) VALUES (vid, vname);

    END;

    /

    EXEC VTEST_INSERT_SP(1,'TEST999');

    This set works well above. But I want to be able to pass multiple values VNAME. so, something like:

    EXEC VTEST_INSERT_SP(1,'TEST999','TEST888','TEST777');

    any help is appreciated. Thank you.

    This would make many inserts each with the same vid and values of different VNAME.

    Try something like this

    1. SET SQLBLANKLINES
    2. ALTER SESSION SET PLSQL_WARNINGS = ' ENABLE: ALL ';
    3. DROP TABLE vtest_insert;
    4. CREATE TABLE vtest_insert (vid NUMBER, vname VARCHAR2 (20));
    5. INSERT ALL
    6. IN vtest_insert (vid, vname) VALUES (1, "yyyy")
    7. IN vtest_insert (vid, vname) VALUES (1, "bb")
    8. IN vtest_insert (vid, vname) VALUES (1, "cccccc")
    9. IN vtest_insert (vid, vname) VALUES (2, "ddd")
    10. IN vtest_insert (vid, vname) VALUES (2, 'ee')
    11. SELECT * FROM .dual 'PUBLIC '.
    12. SELECT * FROM vtest_insert;
    13. CREATE or REPLACE TYPE vnames_tab_ty IS TABLE OF VARCHAR2 (20)
    14. /
    15. DISPLAY ERRORS;
    16. CREATE OR REPLACE PROCEDURE vtest_insert_sp
    17. (
    18. p_vid IN vtest_insert.vid%TYPE,
    19. p_vnames IN vnames_tab_ty
    20. )
    21. DEFINE AUTHID
    22. IS
    23. BEGIN
    24. DELETE FROM vtest_insert WHERE the vid = p_vid;
    25. FORALL idx IN p_vnames. FIRST... p_vnames. LAST
    26. INSERT INTO vtest_insert (vid, vname) VALUES (p_vid, p_vnames (idx));
    27. END vtest_insert_sp;
    28. /
    29. DISPLAY ERRORS;
    30. >
    31. DECLARE
    32. Vnam vnames_tab_ty;
    33. vid vtest_insert.vid%TYPE.
    34. BEGIN
    35. BK.vid: = 1;
    36. BK.vnames: is vnames_tab_ty ('vn-01', 'vn-02', 'vn-03');.
    37. vtest_insert_sp (p_vid-online bk.vid, p_vnames-online bk.vnames).
    38. COMMIT;
    39. BK.vid: = 2;
    40. BK.vnames: is vnames_tab_ty ('vn-04', 'vn-05', 'vn-06', 'vn-07');.
    41. vtest_insert_sp (p_vid-online bk.vid, p_vnames-online bk.vnames).
    42. COMMIT;
    43. END;
    44. /
    45. SELECT * FROM vtest_insert;

    Which produces the following output

    Table created.

    5 rows created.

    VNAME VID

    ---------- --------------------

    1-aaaa

    1 bb

    1 cccccc

    2 ddd

    2 EA

    Type of creation.

    No errors.

    Created procedure.

    No errors.

    PL/SQL procedure successfully completed.

    VNAME VID

    ---------- --------------------

    1 VL-01

    1 VL-02

    1 VL-03

    2 vn-04

    2 vn-05

    2 vn-06

    2 vn-07

    7 selected lines.

    SQL >

    Kind regards

    Dariyoosh

  • How to hide a listbox control when a radio button has been selected

    Hi there, I'm trying to find a way to hide a list box when an option button is selected. Any help would be greatly appreciated.

    "-" is not a comment delimiter.

    I get a syntax error when you enter or save your code.

    The code should look like this:

    Var VNAME = "IndustryList";

    var v = this.getField (vName) / / IndustryList is the name of the list box.

    error control for the field name

    if(v == null) app.alert ("field of error for access to the"+ VNAME, 1, 0 ");

    If (event.tartet.value == 'NonIndustry') {}

    NonIndustry is the name of the radio button choice;

    v.Display = display.hidden

    }

  • Paid ESXi 4.1 will allow me to do this?

    IM considering upgrading the free vSphere Hypervisor, to a paid version.

    I spent over 2 hours on the vmware Web site last night and was left puzzled and frustrated by all the different versions, editions and licenses, air-conditioned and equipped with similar Vnam

    All I want is...

    vSphere for one host (with only 4 core cpu and 12 GB ram).

    Ability to run at least 20 VM

    Possibility to use the third party such as Veeam backup software or connection vRanger (I understand does not work with free Esxi)

    Ability to use command line tools to automate backups too

    Also I need to ESXi 4.1, because ESXi 5 does not appear to install it on my new server :/

    Am I right in thinking VMware vSphere Essentials Kit would do all this?

    Yes, I think that the Essentials edition fits your needs.

    To be able to run backup applications mentioned and/or CLI automation, will make a paid license.

    André

  • MAC address grabbing PowerCLI - creating virtual machines-

    I'm trying to create a script which will create x number of VMs, enter the mac address of the NETWORK adapter on the newly created virtual e1000 computer and then add it to a CSV file.  When I run my script, I get an error "property"macaddress"is not found on this object; Make sure that there is and can be defined.

    What I am doing wrong?

    Here's what I have so far:

    $newvms = import-csv $importfile

    $objreport = @)

    $Report = import-csv $importfile | Select-object *, macaddress

    $newvms | %{


    $vname = $($_.) Host name)

    New-VM-name $vname - VMhost $vmhost ResourcePool - $pool - DiskMB $disksize - $memsize MemoryMB - NumCpu $cpu DiskStorageFormat - slim - $datastore - ID $os - NetworkName Datastore $nic0-location $location

    $macnic1 = get-NetworkAdapter - vm $vname | where {$_ game-match "e1000"} | Select-object MacAddress

    #$Report.hostname = $($_.) Host name)
    $Report.macaddress = $macnic1

    New-NetworkAdapter - VM $vname NetworkName - $nic1 - StartConnected-Type vmxnet3
    New-NetworkAdapter - VM $vname NetworkName - $nic2 - StartConnected-Type vmxnet3
    $objreport += $Report
    }

    $objreport | Export-csv $outputfile - NoTypeInformation

    It seems to work when I change

    $Report = import-csv $importfile | Select-object *, macaddress

    TO

    $Report = "" | Select-object hostname, macaddress

    But I need the content of the $importfile

    Thanks in advance

    CJ

    Hello, cjcurts-

    You can adjust the code of Luke a little so that it exports the original info as well as the MAC address.  It would be something like:

    ## save the imported info$colVMInfoFromCSV = Import-Csv $importfile## add a NoteProperty to the info (later to be a "column" at Export-Csv time)$colVMInfoFromCSV | Add-Member -MemberType NoteProperty macaddress -value $null$colVMInfoFromCSV | %{    $vname = $($_.Hostname)    New-VM -name $vname -VMhost $vmhost -ResourcePool $pool -DiskMB $disksize -MemoryMB $memsize -NumCpu $cpu -DiskStorageFormat thin -Datastore $datastore -GuestID $os -NetworkName $nic0 -Location $location
    
        $macnic1 = Get-NetworkAdapter -vm $vname | where {$_.type -match "e1000"} | select-object MacAddress
    
        ## put the MAC address in this "row" of the collection of info (this object in the array of objects)    $_.macaddress = $macnic1
    
        New-NetworkAdapter -VM $vname -NetworkName $nic1 -StartConnected -Type vmxnet3    New-NetworkAdapter -VM $vname -NetworkName $nic2 -StartConnected -Type vmxnet3}
    
    ## export the info, which now contains the MAC address info as well as the original info$colVMInfoFromCSV | Export-Csv $outputfile -NoTypeInformation
    

    Who uses the Add-Member cmdlet to add a NoteProperty in the original news and fills then each 'line' with the corresponding MAC address information.  It is in fact setting a value for the "macaddress" for the given custom object property.  It exports then all the info to the "outputfile".

  • Percentage of the Total of column

    Hello

    I'm trying to calculate the percentage of the total of the column for each month. I am using the syntax below by counting (Num) where PRP = 'Y' and the GROUP = 'No' and divide that number by the total number for the month:

    <? County (current-group () [NAME = xdoxslt:get_variable($_XDOCTX,_'vName') and PRP = 'Y'])
    (and GROUP = 'No'] / NUM) div count (current - group () [PRP = 'Y'])? >

    Can anyone help understand where the problem lies?

    Thank you

    You get an error when you use the code you listed?

    Try this:

    Thank you
    Bipuser

Maybe you are looking for