I need to get all the data VLAN of Vcenters worth of clusters

Hiya,

I know that my goodwill is probabily come up a little short but well I'll ask!

I have multiple vcenters, with hundreds of VLANs (literally)

What I have to do is extract, by cluster:

Name of the cluster

Beaches of available within the cluster network

VLAN ID

As I say, if someone can provide a script to do this, it would be much appreciated.

Concerning

Stu

Of course, capture the output in a variable and run this variable to the Export-Csv cmdlet.

$report = foreach($cluster in Get-Cluster){
    foreach($esx in (Get-VMHost -Location $cluster)){
        foreach($pg in (Get-VirtualPortgroup -VMHost $esx)){
            Select -InputObject $pg @{N="Cluster";E={$cluster.Name}},
            @{N="VMHost";E={$esx.Name}},
            @{N="Portgroup";E={$pg.Name}},
            @{N="VLAN";E={$pg.VlanId}},
            @{N="IP";E={
                    $adapter = Get-VMHostNetworkAdapter -VMHost $esx | where {$_.PortgroupName -eq $pg.Name}
                    if($adapter){
                        [string]::Join(',',($adapter.IP | %{$_}))
                    }
                }}
        }
    }
}

$report | Export-Csv "C:\Temp\report.csv" -NoTypeInformation -UseCulture

Tags: VMware

Similar Questions

  • Need to get all the text of the particular applied character style

    Can someone help me I need to get all the texts of the particular applied character style

    app.findTextPreferences.appliedCharacterStyle = 'style1 Character. "

    app.findTextPreferences.appliedCharacterStyle = 'style1 Character. "

    var mf = app.activeDocument.findText ();

    var myText = ";

    for (var i = 0; i)<>

    myText is myText + mf [i] .silence;.

    }

    Alert (MyText);

  • get all the dates in a beach in oracle resultset

    Hello
    I need to know how to do all the dates in a date range in Oracle11g query resultset.

    It should be something similar to the following pseudocode

    Select "All DATES" of? where date between TO_DATE('date-val','format') and TO_DATE ('date-val', ' format').

    It may require a different logic, but if I give a range like 5 February 2011, March 2, 2011
    It must return me all dates in this range in the result set.
    IE resultset = February 5, 2011, February 6, 2011,... February 28, 2011, March 1, 2011, 2 March 2011

    Hello

    You are looking for something like this?

    SQL> with a as (select to_date('05-FEB-2012','dd-MON-yyyy') start_date,
      2                   to_date('02-MAR-2012','dd-MON-yyyy') end_date from dual)
      3  select a.start_date + level - 1 dt
      4  from a
      5  connect by level <=  to_date('02-MAR-2012','dd-MON-yyyy') -
      6    to_date('05-FEB-2012','dd-MON-yyyy') + 1
      7  order by level;
    
    DT
    -----------
    05-FEB-2012
    06-FEB-2012
    07-FEB-2012
    08-FEB-2012
    09-FEB-2012
    10-FEB-2012
    11-FEB-2012
    12-FEB-2012
    13-FEB-2012
    14-FEB-2012
    15-FEB-2012
    
    DT
    -----------
    16-FEB-2012
    17-FEB-2012
    18-FEB-2012
    19-FEB-2012
    20-FEB-2012
    21-FEB-2012
    22-FEB-2012
    23-FEB-2012
    24-FEB-2012
    25-FEB-2012
    26-FEB-2012
    
    DT
    -----------
    27-FEB-2012
    28-FEB-2012
    29-FEB-2012
    01-MAR-2012
    02-MAR-2012
    
    27 rows selected.
    
    SQL>
    
  • I need to erase all the data from my old 5 iPhone

    I bought a new 6 iPhone more. I transferred all of my 5s (32 GB, iOS 9.2.1 I don't know the speed of the processor).   Now, I want to erase all personal data on it, or maybe take it back to the factory.  I give the phone to my niece.  Currently, the 5s is still active on my Verizon carrier.

    I have been in support of Verizon, but am no where.  I came by the Apple Support page first, but the problems they had to choose, was not there.  So, I finally did here.  Please, could someone at least tell me where to find the information needed to get rid of the 5?  It would be highly appreciated.

    Thank you

    Barb M.

    Try what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • socket InputStream does not get all the data, please help

    I've been doing stuff of network on blackberry for quite awhile, but still using the http connection.

    I have to use the socket for a piece of my application connection, but could not do the work.

    This code is what I do

    String url =

    "socket: / / ' + rmserver + ': ' + rmport;

    Socket SocketConnection = Connector.open (url) (SocketConnection);

    socket.setSocketOption (SocketConnection.KEEPALIVE, 1);

    OutputStream = socket.openOutputStream ();

    InputStream = socket.openInputStream ();

    send something here using outputstream

    int

    If (f > 0) {}

    do somwthing

    }

    AV is always 0.

    I don't know that my server sends data successfully. I run the network packet capture tool etheal on the MDS Server, I can see given reached MDS Server, but they never come to my device app.

    The outputstream works very well, I can send data from my application and my server code gets all of them.

    Where should I check? If it is http, I can turn on the debugging http on MDS log and see all network traffic, but for the socket connection, data packet is not connected (or I missed where it is).

    Is someone can you please tell me where I should go to understand why?

    Please try the suggestion to remove the check mark on InputStream.available.

  • PowerCLI Script to get all the data in a row store...

    Hi all

    What I'm trying to accomplish is to get this type of output:

    Cluster, host, WWN1, WWN2, Datastore1, Datastore2,..., data store DatastoreX

    So 1 row for each host, with attached all warehouses of data in the same row

    Number of data warehouses can vary from 1 to 30.

    So far, I have created this script:

    $clusters = Get-Cluster | sort
    
    
    
    $StorageInfo = @()
    
    
    
    foreach ($cluster in $clusters){
        Write-Host $cluster
        
        $VMHosts = Get-Cluster $Cluster | Get-VMhost | sort
        foreach ($VMHost in $VMHosts){
            $Vendor = "" 
            $VMhostname = $VMHost.Name
            $WWN1 = "{0:x}" -f ($vmhost.ExtensionData.config.storagedevice.HostBusAdapter | Where { $_.Key -match "FibreChannelHba" })[0].PortWorldWideName
            $WWN2 = "{0:x}" -f ($vmhost.ExtensionData.config.storagedevice.HostBusAdapter | Where { $_.Key -match "FibreChannelHba" })[1].PortWorldWideName
            
            if ( ($vmhost.ExtensionData.config.StorageDevice.ScsiLun | Where { $_.Key -match "Disk"}).count -gt 1 ){
                $Vendor = ($vmhost.ExtensionData.config.StorageDevice.ScsiLun | Where { $_.Key -match "Disk" -and $_.Model -notmatch "Block Device"})[0].Vendor
                } else { 
                $Vendor = ($vmhost.ExtensionData.config.StorageDevice.ScsiLun | Where { $_.Key -match "Disk" -and $_.Model -notmatch "Block Device"}).Vendor
                }
            
            $Datastores = $VMHost | Get-Datastore | sort
            foreach ($Datastore in $Datastores){
                        
                $myObj = @()
                $myObj = "" | Select Farm,HostName,WWN1,WWN2,Vendor,Datastore
                $myObj.Farm = $Cluster.Name
                $myObj.HostName = $VMhostname
                $myObj.WWN1 = $WWN1
                $myObj.WWN2 = $WWN2
                $myObj.Vendor = $Vendor
                $myObj.Datastore = $Datastore.name
                               
                $StorageInfo += $myObj
                }
            }
        }
        
    $StorageInfo | convertto-csv -NoTypeInformation | Out-File ./Storage-info.csv    
    
    
    

    But this gives me a line by the data store, as well as several lines for each host.

    Could someone point me to a method how to proceed?

    Thank you and best regards,

    Harold

    You can use the Join function

    Something like that

    $clusters = Get-Cluster | sort
    $StorageInfo = @()
    
    foreach ($cluster in $clusters){
        Write-Host $cluster
        $VMHosts = Get-Cluster $Clusters | Get-VMhost | sort    foreach ($VMHost in $VMHosts){
            $Vendor = ""
            $VMhostname = $VMHost.Name
            $WWN1 = "{0:x}" -f ($vmhost.ExtensionData.config.storagedevice.HostBusAdapter | where { $_.Key -match "FibreChannelHba" })[0].PortWorldWideName
            $WWN2 = "{0:x}" -f ($vmhost.ExtensionData.config.storagedevice.HostBusAdapter | where { $_.Key -match "FibreChannelHba" })[1].PortWorldWideName
    
            if ( ($vmhost.ExtensionData.config.StorageDevice.ScsiLun | where { $_.Key -match "Disk"}).count -gt 1 ){
                $Vendor = ($vmhost.ExtensionData.config.StorageDevice.ScsiLun | where { $_.Key -match "Disk" -and $_.Model -notmatch "Block Device"})[0].Vendor
            } else {
                $Vendor = ($vmhost.ExtensionData.config.StorageDevice.ScsiLun | where { $_.Key -match "Disk" -and $_.Model -notmatch "Block Device"}).Vendor
            }
    
            $Datastores = [string]::Join(',',($VMHost | Get-Datastore | sort | %{$_.Name}))
    
            $myObj = "" | Select Farm,HostName,WWN1,WWN2,Vendor,Datastore
            $myObj.Farm = $Cluster.Name
            $myObj.HostName = $VMhostname        $myObj.WWN1 = $WWN1        $myObj.WWN2 = $WWN2        $myObj.Vendor = $Vendor        $myObj.Datastore = $Datastores
            $StorageInfo += $myObj    }
    }
    
    $StorageInfo | convertto-csv -NoTypeInformation | Out-File ./Storage-info.csv 
    
  • get all the date of end of months between two dates

    Hi all, I'll try to find together the date of end of months between two dates.
    I have the following data in a table

    WITH AS's Data1
    (
    SELECT To_Date('4/30/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual UNION ALL
    SELECT To_Date('5/01/2009','mm/dd/yyyy') dt, "TEST2" lname FROM dual UNION all
    SELECT To_Date('5/02/2009','mm/dd/yyyy') dt, "TEST3" lname FROM dual UNION all
    SELECT To_Date('5/03/2009','mm/dd/yyyy') dt, "TEST4" lname FROM dual UNION all
    SELECT To_Date('5/04/2009','mm/dd/yyyy') dt, "TEST5" lname FROM dual UNION all
    SELECT To_Date('5/05/2009','mm/dd/yyyy') dt, "TEST6" lname FROM dual UNION ALL
    SELECT To_Date('5/31/2009','mm/dd/yyyy') dt, 'TEST7' lname FROM dual UNION all
    SELECT To_Date('6/01/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual

    )

    I would like to write an application that gives you all the end date for months between two dates
    for example, if you give the date 9/1/4 and 5/6/9, the output should be
    DT          LNAME
    -------------------
    4/30/2009   TEST
    IF I give you the dates 01/04/09 AND 01/06/09, THEN output should be
    DT          LNAME
    -------------------
    4/30/2009   TEST
    5/31/2009   TEST7
    as you can see, I want all the end dates of months between two dates by giving the output.

    If I give you 06/05/09 and 05/06/09, and then does so no output because there is no end of month between these two dates.
    Similarly, if I give you 30/04/09 and 30/04/09 then output should be 30/04/09 because it is an end of month date

    anyone can help to write a query. Thank you very much

    Jin
    Not sure if you need subquery, analytical functions for this.
    According to me, which should solve your purpose.

    WITH data1 AS
    (
    SELECT To_Date('4/30/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual UNION ALL
    SELECT To_Date('5/01/2009','mm/dd/yyyy') dt, 'TEST2' lname FROM dual UNION all
    SELECT To_Date('5/02/2009','mm/dd/yyyy') dt, 'TEST3' lname FROM dual UNION all
    SELECT To_Date('5/03/2009','mm/dd/yyyy') dt, 'TEST4' lname FROM dual UNION all
    SELECT To_Date('5/04/2009','mm/dd/yyyy') dt, 'TEST5' lname FROM dual UNION all
    SELECT To_Date('5/05/2009','mm/dd/yyyy') dt, 'TEST6' lname FROM dual UNION ALL
    SELECT To_Date('5/31/2009','mm/dd/yyyy') dt, 'TEST7' lname FROM dual UNION all
    SELECT To_Date('6/01/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual 
    
    )
    select distinct last_day(dt) dt,lname
      from data1
     where dt between &start_date and &end_date
       and last_day(dt) <= &end_date
    
    also, i have another request. how would i do this without using the data i provided. lets say,
     i tell you, give me alll the months end between two dates using dual in the from clause of a query.
    how would you do this in a query or pl/sql? thanks again
    

    Can be like that

    with data1 as(
    select &start_date+level-1 dt from dual
    connect by level <= &end_date-&start_date+1)
    select distinct last_day(dt)
      from data1
     where dt between &start_date and &end_date
       and last_day(dt) <= &end_date
     order by last_day(dt)
    

    See you soon!
    Bobin

    Published by: Buga added query for updated the need

  • Not to get all the data

    Hello

    I have the query below, but the output for the not available column data appears not all data with a condition_id which is not null.

    Does anyone have ideas that I might need to try?
    SELECT I.SKU_ID, 
     I.DESCRIPTION, 
     TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY') expiry_dt, 
     SUM(CASE WHEN I.CONDITION_ID IS NOT NULL THEN QTY_ON_HAND ELSE 0 END) AS Unavailable, 
     SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END) AS Available, 
     P_ILV.SUM_QTY_DUE + (NVL(P_ILV.SUM_TL,0) * NVL(S.USER_DEF_NUM_3,0)) AS Sum_Qty_Due, 
     ROUND(ITXN_ILV.AVG_QTY, 2) AS Avg_Qty, 
     ROUND(SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END)/CASE WHEN ITXN_ILV.AVG_QTY = 0 THEN 1 ELSE ITXN_ILV.AVG_QTY END,2) AS Days_Worth_Stock 
    
    FROM INVENTORY I 
    JOIN SKU S 
    ON (I.SKU_ID = S.SKU_ID AND I.DESCRIPTION = S.DESCRIPTION) 
    JOIN (SELECT P.SKU_ID, SUM (CASE WHEN P.TRACKING_LEVEL NOT LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) AS SUM_QTY_DUE, 
      SUM(CASE WHEN P.TRACKING_LEVEL LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) SUM_TL 
     FROM PRE_ADVICE_LINE P 
    WHERE P.QTY_RECEIVED IS NULL 
    GROUP BY P.SKU_ID) P_ILV 
    ON (S.SKU_ID = P_ILV.SKU_ID) 
    JOIN (SELECT ITXN.SKU_ID, SUM(ITXN.UPDATE_QTY)/(CEIL(TO_DATE($P{To_Date},'DD-Mon-YYYY') - TO_DATE($P{From_Date},'DD-Mon-YYYY')) + 1) AVG_QTY 
     FROM INVENTORY_TRANSACTION ITXN 
    WHERE ITXN.CODE = 'Shipment' 
     AND ITXN.DSTAMP BETWEEN TRUNC(TO_DATE($P{From_Date},'DD-Mon-YYYY')) AND TRUNC(TO_DATE($P{To_Date},'DD-Mon-YYYY')+ 1) - 1/86400 
    GROUP BY ITXN.SKU_ID) ITXN_ILV 
    ON (S.SKU_ID = ITXN_ILV.SKU_ID) 
    GROUP BY TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY'), I.SKU_ID, I.DESCRIPTION, P_ILV.SUM_QTY_DUE, NVL(P_ILV.SUM_TL,0), NVL(S.USER_DEF_NUM_3,0), ITXN_ILV.AVG_QTY, 2 
    ORDER BY I.SKU_ID
    Thank you, Sam.

    Published by: Sam Mardell on May 8, 2009 06:25

    OK Sam, here's the modified query, try this please:

    SELECT I.SKU_ID,
         S_ILV.DESCRIPTION,
         TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY') expiry_dt,
         SUM(CASE WHEN TRIM(I.CONDITION_ID) IS NOT NULL THEN QTY_ON_HAND ELSE 0 END) AS Unavailable,
         SUM(CASE WHEN TRIM(I.CONDITION_ID) IS NULL THEN QTY_ON_HAND ELSE 0 END) AS Available,
         P_ILV.SUM_QTY_DUE + (NVL(P_ILV.SUM_TL,0) * NVL(S_ILV.USER_DEF_NUM_3,0)) AS Sum_Qty_Due,
         ROUND(ITXN_ILV.AVG_QTY, 2) AS Avg_Qty,
         ROUND(SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END)/CASE WHEN  ITXN_ILV.AVG_QTY = 0 THEN 1 ELSE ITXN_ILV.AVG_QTY END,2) AS Days_Worth_Stock
      FROM INVENTORY I
      JOIN (SELECT S.SKU_ID, MAX(S.DESCRIPTION) DESCRIPTION, SUM(S.USER_DEF_NUM_3) USER_DEF_NUM_3
                FROM SKU S
               GROUP BY S.SKU_ID) S_ILV
         ON (I.SKU_ID = S_ILV.SKU_ID)
      LEFT JOIN (SELECT P.SKU_ID, SUM (CASE WHEN P.TRACKING_LEVEL NOT LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) AS SUM_QTY_DUE,
          SUM(CASE WHEN P.TRACKING_LEVEL LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) SUM_TL
        FROM PRE_ADVICE_LINE P
       WHERE P.QTY_RECEIVED IS NULL
       GROUP BY P.SKU_ID) P_ILV
       ON (I.SKU_ID = P_ILV.SKU_ID)
     LEFT JOIN (SELECT ITXN.SKU_ID, SUM(ITXN.UPDATE_QTY)/(CEIL(TO_DATE($P{To_Date},'DD-Mon-YYYY') -  TO_DATE($P{From_Date},'DD-Mon-YYYY')) + 1) AVG_QTY
          FROM INVENTORY_TRANSACTION ITXN
       WHERE ITXN.CODE = 'Shipment'
          AND ITXN.DSTAMP BETWEEN TRUNC(TO_DATE($P{From_Date},'DD-Mon-YYYY')) AND TRUNC(TO_DATE($P{To_Date},'DD-Mon-YYYY')+ 1) - 1/86400
         GROUP BY ITXN.SKU_ID) ITXN_ILV
       ON (I.SKU_ID = ITXN_ILV.SKU_ID)
     GROUP BY TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY'), I.SKU_ID, S_ILV.DESCRIPTION, P_ILV.SUM_QTY_DUE, NVL(P_ILV.SUM_TL,0), NVL(S_ILV.USER_DEF_NUM_3,0), ITXN_ILV.AVG_QTY, ROUND(ITXN_ILV.AVG_QTY, 2)
     ORDER BY I.SKU_ID
    

    Published by: Seanmacgc on May 12, 2009 10:37

  • Need to transfer all the data/program/music of old notebook Notebook again.

    Hello

    I am planing to buy a new laptop PC: Hp pavilion Dv6-6190SE or Dv6-6166TX is Dv6-6168TX.

    I have Hp pavilion Dv6 - 2177ca and plan to sell before you buy a new laptop.

    I have some data/programs/music and software on the Dv6 - 2177 ca, I need to be on my new laptop.

    I thought I'd take a backup using Windows7 backup of the Dv6 - 2177 ca and restoration for the new laptop.

    Do you think it will work?

    Will you please suggest me the best alternatives to transfer my programs/data/music/contacts whole without installing them again manually because it is a very painful process.

    Will you please answer soon because I'm going to buy this new Pc soon.

    P.S. Please also tell me if the Dv6 Dv6-6190SE-6166TX or Dv6-6168TX have backlit keyboard. I tried to communicate with the local people of Hp in my country, but they are of course not themselves and advise me to search the Internet. That's kind of weird because they themselves do not know what they are selling.

    sailare wrote:

    How about you than mere transfer option windows in Windows 7?
    It will transfer at least my music play stops, Photos, etc.?

    I tried to ask them, but the laptop are sealed inside it models box and display are turned off. Backlit keyboard cannot be determined.

    @Erico:

    You wrote:

    I suggest to download, install and use the free version of Macrium Reflect. Back up your files to an external drive.

    I have no idea how this program will back up my files from the free version does not support files and folders.

    Do you think that Windows Easy Transfer will work in this case?

    Macrium Reflect allows cloning. Once you have a cloned partition, you can see inside the clone and recover files and folders from it. Here is a well written tutorial from the how-to Geek on the subject.

    I have a Belkin Windows Easy Transfer cable and have used it a few times. My results with Windows Easy transfer, and that is why my preference is the use of a cloning utility instead. Macrium Reflect has never failed me, and I've used dozens of times.

    Best regards

    ERICO

  • Get all the metadata (custom &amp; OOTB) for content in

    Hi all
    I need to get all the values of metadata for a piece of content in the content server. I tried using the DOC_INFO_BY_NAME service and got the result set and I am able to retrieve the values by specifying the metadata as dataObject.get ("dSecutiryGroup");
    No, I want to know if there is a service that can fetch an object that can be iterated and we can have all the metadata and its value.

    Thank you.

    See the prototypes of the class of the methods (interface)

    public interface DataResultSet
    {
        //
        // Methods
        //
        boolean hasField(java.lang.String p1) { }
    
        oracle.stellent.ridc.model.DataResultSet.Field getField(java.lang.String p1) { }
    
        oracle.stellent.ridc.model.DataResultSet.Field getField(int p1) { }
    
        java.util.List getFields() { }
    
        void setFields(java.util.List p1) { }
    
        void addField(oracle.stellent.ridc.model.DataResultSet.Field p1, java.lang.String p2) { }
    
        void removeField(java.lang.String p1) { }
    
        void addRow(oracle.stellent.ridc.model.DataObject p1) { }
    
        void addRow(java.util.List p1) { }
    
        void insertRow(oracle.stellent.ridc.model.DataObject p1, int p2) { }
    
        void insertRow(java.util.List p1, int p2) { }
    
        void removeRow(int p1) { }
    
        java.util.List getRows() { }
    }
    

    This, you can use getFields() or getField(int p1) and then use the oracle.stellent.ridc.model.DataResultSet.Fieldattributes.

  • How to load all the data without uncheck Journalized data only option?

    Hi all

    Currently, I have configured an option only logged data for many game data and interface.

    But I need to load all the data (once) without clear logged Data Only. After that it will work with the CDC.

    Please help me on this.

    ARO
    EBA

    Hi Eba

    Another way is to copy the source data to another table (two copies).
    If you have 10 source table and then create another 10 tables in doubles in the backend.
    Now truncate these original paintings. Then insert the data in table duplicated in the original table. Now CDC will detect these are inserted.
    But I guess you have more than 300 paintings, which is again difficult to manage.

  • All the dates in a month gave a date

    Hi... maybe it's simple, but I'm not able to get my mind around.

    Given a date, how to get all the dates this month, from beginning to end this month, in order... just by using a SQL SELECT statement... not PL/SQL

    Thank you

    Published by: dcentgye on October 1st, 2008 16:13

    Here's the way->

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    Elapsed: 00:00:00.61
    satyaki>
    
    satyaki>
    satyaki>select trunc(to_date('&dt','DD-MON-YYYY'),'MONTH') + rownum - 1
      2  from dual
      3  connect by rownum <= trunc(add_months(to_date('&dt','DD-MON-YYYY'),1),'MONTH') -
      4                       trunc(to_date('&dt','DD-MON-YYYY'),'MONTH');
    Enter value for dt: 23-AUG-2008
    old   1: select trunc(to_date('&dt','DD-MON-YYYY'),'MONTH') + rownum - 1
    new   1: select trunc(to_date('23-AUG-2008','DD-MON-YYYY'),'MONTH') + rownum - 1
    Enter value for dt: 23-AUG-2008
    old   3: connect by rownum <= trunc(add_months(to_date('&dt','DD-MON-YYYY'),1),'MONTH') -
    new   3: connect by rownum <= trunc(add_months(to_date('23-AUG-2008','DD-MON-YYYY'),1),'MONTH') -
    Enter value for dt: 23-AUG-2008
    old   4:                      trunc(to_date('&dt','DD-MON-YYYY'),'MONTH')
    new   4:                      trunc(to_date('23-AUG-2008','DD-MON-YYYY'),'MONTH')
    
    TRUNC(TO_
    ---------
    01-AUG-08
    02-AUG-08
    03-AUG-08
    04-AUG-08
    05-AUG-08
    06-AUG-08
    07-AUG-08
    08-AUG-08
    09-AUG-08
    10-AUG-08
    11-AUG-08
    
    TRUNC(TO_
    ---------
    12-AUG-08
    13-AUG-08
    14-AUG-08
    15-AUG-08
    16-AUG-08
    17-AUG-08
    18-AUG-08
    19-AUG-08
    20-AUG-08
    21-AUG-08
    22-AUG-08
    
    TRUNC(TO_
    ---------
    23-AUG-08
    24-AUG-08
    25-AUG-08
    26-AUG-08
    27-AUG-08
    28-AUG-08
    29-AUG-08
    30-AUG-08
    31-AUG-08
    
    31 rows selected.
    
    Elapsed: 00:00:00.35
    

    Kind regards.

    LOULOU.

  • I had a hard drive crash and had to move all the data again. Now, I get an error saying that my Visa is not an authorized version. How can I find the product key to reactivate?

    Vista Product Code question

    I had a hard drive crash and had to move all the data again.  Now, I get an error saying that my Visa is not an authorized version.  How can I find the product key to reactivate?  I don't have the sticker on the back and the software I have does not have the code?  I bought this laptop DELL at Best Buy a little more than a year.

    Thank you.

    Hello

    This problem may occur if you make a significant hardware change. See the link provided below.

    Error message when you start Windows Vista: "your activation period has expired".

    http://support.Microsoft.com/kb/925616

    If the OS came preinstalled Dell you may need to contact Dell technical support for assistance.
    http://support.Dell.com/support/topics/global.aspx/support/win7_support/win7_portal?c=us&CS=04&l=en&s=BSD

  • Move the user off the system disk folders? Envy of all the data on E, so need to move directories user E. not individually, but in the world. If all new users, I create will have their user and docs folder on E.

    Got a new laptop with win 7 home premium pre-installed. Using the language of win 7... I have decreased the volume of HDD to 55 GB.  Made new simple volumes. I want all the data personal on E, so need to move user directories to E. No individually change the location tab on dozens of files, but in the world. If all new users, I create will have their user and docs folder on E from the gitgo.

    Under XP, I could just change the 'My Documents' link on each desktop, go to the e. * instead of c *. *, but with win7?

    As a Windows Home Server and most wise OS facilities, the system drive is isolated and a drive of 2 or 3 for everything else.  Get a problem? Just restore the system drive.

    You need the answer?

    Thank you
    Tom
    PS Microsoft: This backup/do imaging software, why don't we name the image so many can all be stored on easily in one place without having to go and rename it or move them elsewhere?

    Hello TomZork,

    Thanks for posting on the Microsoft answers Forum.

    In another forum, I found the instructions to move folders of users to another drive.
    You can follow the post here. This is attributed to Jimmie R. Houts.

    Article:
    You can move the entire folder C:\Users to another drive quite easily once windows is installed:

    1. Boot from the installation media and access the command prompt (I think you need to click on fix everything first)
    2. Use Robocopy to copy C:\Users to D:\Users: robocopy c:\Users d:\Users /mir /xj
      a. /mir says robocopy to mirror directories, this will copy all files and permissions
      b. /xj is very important, it means robocopy does not follow the points of junction. If you forget this, you will have a lot of trouble.
    3. Make sure that the files copied successfully
    4. Delete c:\Users
    5. Create the junction pointing d:\Users: mklink /d c:\Users d:\Users

    That's all. I used this process for Vista RTM with no problems.

    Here's an article that explains as well. Just use robocopy instead of xcopy as it does in the article in order to avoid possible ntfs permissions problems.

    Update: because I discovered the hard way, I thought I would mention also that if you plan on switching "Program Data", or "Program Files" with this method, you will be disappointed to know that everything works as expected, but the windows updates will install is no longer. I don't know if this problem has been fixed in Win 7.

    With the foregoing, it is not a Microsoft forum or Web site so you will have to use at your own risk. I also recommend to do a system restore point before making any changes in directories that you can then go back to a previous state.

    Please reply back and let us know if these suggestions help you to solve your problem, then to benefit others.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Hi, I am told by a website mFirefox is out of date so I can't get all the features. I continue to download an update, but it continues still to be. Could you please help me. Thank you.

    Hi, I am told by a website mFirefox is out of date so I can't get all the features. I continue to download an update, but it continues still to be. Could you please help me. Thank you.

    Download the latest version of Firefox to:

    Uninstalling Firefox

    Install Firefox on Windows

    Check and tell if its working.

Maybe you are looking for