vCenter

 View Only
  • 1.  Export snapshot report to .csv file

    Posted Jan 03, 2023 08:57 PM


    Hi Everyone,

    Trying to get the list of snapshot details associated with VM's in vCenter, want to export the information in CSV format by sending a automated mail. 

    Please suggest me for any _powercli script.



  • 2.  RE: Export snapshot report to .csv file

    Posted Jan 03, 2023 10:14 PM

    Install simply RVtools there you will find all needed info 

    also will be able to extract csv or excel file



  • 3.  RE: Export snapshot report to .csv file

    Posted Jan 03, 2023 10:52 PM

    Thank you for the information,

    We need an automated mail trigger to the admins and Server Owner's as well. Any help!



  • 4.  RE: Export snapshot report to .csv file

    Posted Jan 04, 2023 01:22 PM

    Hi 

    This should probable be in the PowerCli page but you can use 

    get-vm | get-snapshot | Select-Object vm, name,created,description | Export-Csv c:\temp\DailySnapshotReport.csv -NoTypeInformation

     to create the csv file. If you want any additional properties you will need to add to the select-object.

    You can then use the send-mailmessage command to attached the csv file. 

    Send-MailMessage -From from@domian.com -To to@domian.com -Subject "VMware Snapshot Report" -Body "VMware Snapshot Report attached"  -SmtpServer smtp_server_Address -Attachments c:\temp\DailySnapshotReport.csv


  • 5.  RE: Export snapshot report to .csv file

    Posted Jan 09, 2023 07:07 PM

    Hi,

    Thank you so much for your inputs.

    Still its not working its sending a mail like below, with out any information.

    godaba_0-1673290492430.png

    Previously we used get the mails like below.

    godaba_2-1673291050881.png

    It's happening after we upgraded the vCenter to 7.x .

    Scripts are running from a Remote Windows Server as a Schedule Tasks. 

    Other vCenter we have with 6.5 Version, reports ( automated mails) are good.

    Please suggest me, if you have any KB's.