Is there an easy way to query a DFM server remotely? I'd like to grab some data on demand (Current CPU). I could do that via SNMP without too much trouble, but I'd rather not let all the clients directly poll the filers.
The DFM server already has that information, and I can poll it on the machine itself with something like 'dfm report filers-ops <filer>'. I'd rather let the clients hit this machine so there's no performance impact on the filers if something goes wrong. Is there a way of getting that same data from a remote host without setting up accounts and automated logins? I thought I might be able to run the dfm software on the client directly, but if I can, I'm missing how to specify the server that it contacts...
The web reports are fine, but I don't want to scrape them through the normal display. If I can get the raw data from the DFM server via http/snmp/other, that would be good.
Thanks.
You can hit the DFM server with an HTTP request to send you the data it would have shown you in the filers-ops report, but in a different form, such as comma-separated values.
Use a URL like
http://%7Bdfm-server%7D:8080/dfm/report/filers-ops?output-format=xls
You can pass arguments to filter the list by filer, or by group, however you like.
- Brian
| -----Original Message----- | From: A Darren Dunham [mailto:ddunham@taos.com] | Sent: Friday, October 19, 2007 2:13 PM | To: toasters@mathworks.com | Subject: Query DFM server? | | Is there an easy way to query a DFM server remotely? I'd | like to grab some data on demand (Current CPU). I could do | that via SNMP without too much trouble, but I'd rather not | let all the clients directly poll the filers. | | The DFM server already has that information, and I can poll | it on the machine itself with something like 'dfm report | filers-ops <filer>'. I'd rather let the clients hit this | machine so there's no performance impact on the filers if | something goes wrong. Is there a way of getting that same | data from a remote host without setting up accounts and | automated logins? I thought I might be able to run the dfm | software on the client directly, but if I can, I'm missing | how to specify the server that it contacts... | | The web reports are fine, but I don't want to scrape them | through the normal display. If I can get the raw data from | the DFM server via http/snmp/other, that would be good. | | Thanks. | | -- | Darren Dunham | ddunham@taos.com | Senior Technical Consultant TAOS | http://www.taos.com/ | Got some Dr Pepper? San Francisco, | CA bay area | < This line left intentionally blank to confuse you. > |
On Fri, Oct 19, 2007 at 02:31:57PM -0700, Hackworth, Brian wrote:
You can hit the DFM server with an HTTP request to send you the data it would have shown you in the filers-ops report, but in a different form, such as comma-separated values.
Use a URL like
http://%7Bdfm-server%7D:8080/dfm/report/filers-ops?output-format=xls
Great. That'll work perfectly. Grabbing it as a csv will make it easy for my needs.
And now I understand the relationship with the reports that I see on screen.
Is the web query format documented somewhere? For instance, I don't need it, but is there an equivalent to the -q option for removing the header lines?
Thanks!
| > Use a URL like | > | > http://%7Bdfm-server%7D:8080/dfm/report/filers-ops?output-format=xls |
...
| | Is the web query format documented somewhere? For instance, | I don't need it, but is there an equivalent to the -q option | for removing the header lines?
There's a little bit of documentation in the online help text. See, for example, "dfm report view help".
Once you know the trick, you can map from the documentation:
The options are -g <group-id or group-name> -F <output-format> -l <lines> -q (quiet)
To the URL equivalent:
http://localhost:8080/dfm/report/filers-ops?output-format=xls&quiet=1
- Brian
On Fri, Oct 19, 2007 at 03:48:57PM -0700, Hackworth, Brian wrote:
Once you know the trick, you can map from the documentation:
The options are -g <group-id or group-name> -F <output-format> -l <lines> -q (quiet)
To the URL equivalent:
http://localhost:8080/dfm/report/filers-ops?output-format=xls&quiet=1
Sweet. That helps considerably.
Thank you again.
Yes, Operations Manager (formerly known as DFM) is a licensable product. One of our folks will get in touch with you.
Thanks Subbiah
-----Original Message----- From: Jack Lyons [mailto:jack1729@gmail.com] Sent: Friday, October 19, 2007 4:17 PM Cc: toasters@mathworks.com Subject: DFM
Is DFM an additonal product to buy? Anyone know the pricing?