Please help a serious newbie to powershell. 🙂 Thanks to a lot of plagiarism from this community I was able to put together powershell line that outputs exactly what I need to see in the format I want to see it. It outputs snapshots older than 14 days and their sizes in GB: Get-NaVol | Get-NaSnapshot | where-object {$_.AccessTimeDT -le $Now.AddDays(-14) -and $_.Dependency -eq "" } | select TargetName,Name,Created,Total,CumulativeTotal,Dependency | ft @{Expression={$_.TargetName};Label="Volume";Width=20},@{Expression={$_.Name};Label="Name";Width=25},@{Expression={$_.Created.ToShortDateString()};Label="Created";Width=12},@{Expression={ConvertTo-FormattedNumber $_.Total DataSize "0.0"};Label="Total";Width=10},@{Expression={ConvertTo-FormattedNumber $_.CumulativeTotal DataSize "0.0"};Label="Cumulative";Width=10},@{Expression={$_.Dependency};Label="Dependency"} This works perfectly if I run it as a standalone line after I have already connected to a filer. But if I put it it in the most simple of loops it errors out - I cannot for the life of me figure out why: $pass="p@ssword" $user = "root" $NetappList=("90.0.0.2","90.0.0.3") $password = ConvertTo-SecureString $pass -AsPlainText -Force $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$password $WarningDays = 14 foreach ($np in $NetappList) { Connect-nacontroller $np -Credential $cred Get-NaVol | Get-NaSnapshot | where-object {$_.AccessTimeDT -le $Now.AddDays(-14) -and $_.Dependency -eq "" } | select TargetName,Name,Created,Total,CumulativeTotal,Dependency | ft @{Expression={$_.TargetName};Label="Volume";Width=20},@{Expression={$_.Name};Label="Name";Width=25},@{Expression={$_.Created.ToShortDateString()};Label="Created";Width=12},@{Expression={ConvertTo-FormattedNumber $_.Total DataSize "0.0"};Label="Total";Width=10},@{Expression={ConvertTo-FormattedNumber $_.CumulativeTotal DataSize "0.0"};Label="Cumulative";Width=10},@{Expression={$_.Dependency};Label="Dependency"} } Output and error: Name Address Ontapi Version ---- ------- ------ ------- 90.0.0.2 90.0.0.2 1.15 NetApp Release 8.1RC3 7-Mode: Wed Feb 15 19:28:21 PST 2012 out-lineoutput : The object of type "Microsoft.PowerShell.Commands.Internal.Format.FormatStartData" is not valid or not in the correct sequence. This is likely caused by a user-specified "format-table" command which is conflicting with th e default formatting. + CategoryInfo : InvalidData: (:) [out-lineoutput], InvalidOperationException + FullyQualifiedErrorId : ConsoleLineOutputOutOfSequencePacket,Microsoft.PowerShell.Commands.OutLineOutputCommand Would anyone happen to know why this happens or know how to fix it?? Thanks!!!
... View more
I am just finding my way around the SDK and I'm not seeing a way to do what I need to do. Basically I would like to emulate the functionality of a"stats start" command with the -I Identifier so that I can start a stats run on a system that I can check and clear on a daily basis. Something line this: stats start -I myid volume - 24 hours later - stats stop -I myid I would then have the accumulated volume statistics over the 24 hour period. I could do this by storing the daily values and doing the math from the previous day, but I'd like to be able to emulate the stats command so it's being stored in ontap on the controller. Is this possible with the SDK? If it is, examples would be VERY much appreciated.... Thanks!
... View more
I understand that there might be an (unsupported) way to get system manager 2.0 to run on 64 bit linux. If anyone has a procedure for this I'd sure appreciate seeing it - my customer is trying to hack the package with no luck - and since 64 bit linux is all they run it's hard to talk them out of trying this - with everyone understanding that it is fully unsupported. Past that - is this on the roadmap? Most people are running 64 bit these days - isn't it just a new compile? Thanks, Graham
... View more
I fixed this by turning ssl off , then running secureadmin to setup ssl again ( blowing away the previous configuration ) and then re- enabling ssl. It works now. Thanks for the replies!
... View more
I have a filer in my lab running 7.3.6 that I was using System Manager 2.0R1 on with no problem. Then I upgraded the filer to 8.0.2 and I can no longer autheticate - the connection times out, even though i can ping and ssh into the system from the same computer. Error details dont seem helpful - they are: ==ERROR== com.netapp.nwf.client.communication.ResponseException ==TIME== 2011-10-05 09:01:08,024 ==MESSAGE== Connection timed out ==DETAILS== No details are available. ==CORRECTIVE ACTION== No suggested corrective action is available. ==LOCATION== Location is not specified. ==BROWSER INFO== App Name: Netscape App Version: 5.0 (Windows) App Codename: Mozilla User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2)Gecko/20100101 Firefox/6.0.2 Platform: Win32 Cookie Enabled: true
... View more
IHAC asking what would be the "top 10" items to monitor for in ops manager when using v-series in a thin provisioned envirnemnt. I can come up with the first few pretty easily - but wonder if we havea nything offical around best practices for monitoring and alerting? Thanks, Graham
... View more