but the issue I have is it returns nothing as I'm not logged in.
Has anyone managed to get a list of Filers from DFM to run Powershell commands against? The only other way I can think of is to run Powershell remotely on the DFM server with something like "dfm host list"
In the coming days I will be releasing tons of my oncommand scripts.. I just haven't decided how to release them to the community.... But we do exactly this.. and we separate it based on group, so I can query via DFM
Here's a script to do this, but I will repost to a blog shortly.
<# .SYNOPSIS Queries all DFM controllers .DESCRIPTION
I rely on "dfm report" over dfm host list, and the same applies for "dfm report view volumes" over "dfm volume list $controller" for this type of output.
"dfm report view controllers" will get a list of controllers, and if you group controllers(by region, type, etc) within DFM, then you can run the same report against that group, as well as run commands against the group(for rolling out an option change, for example). You can also make the output more manageable by making the output format in csv by typing something like:
dfm report view -F csv controller
Then each column will be delimited by a comma, so you can use the split function to filter the output by doing something like: