Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Highlighted
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
Is there a way to script something that will show what LUNS are under which volumes?
I know you can do it with Systems Manager, but I'd like to see something more like a tree hierarchy...
Volume Name
-Luna
-Lunb
-Lunc
Volume Name
-Luna
-Lunb
Etc
Make sense?
Solved! See The Solution
View By:
17 REPLIES 17
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
Please do a search for one of my posts. We wrote something a while ago that should give you what you want
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
Here, I'll save you the trouble - https://communities.netapp.com/thread/23684
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
I actually saw that script, but it doesnt seem to output the info I was hoping/looking for....
I would like to see the volume name and then the specific LUNS associated to that volume under it. Preferably exported to XLS or a CSV file.
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
If I get some time, I will try to come up with a little bit of a sample... Not much free time these days..
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Justin,
Yes, you can do it, But it can get little tricky, you can use awk script to run against it. Can you please paste the output of qtree status?
Thanks
RK
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
*cough* awk *cough* :-)
native powershell is the way to go....
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
I see what u mean .. but with very little effort it will give the result Justin wanted.
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
I have to be honest.. Not that i'm against it, but onCommand Reporting 1.1 seems to do a really nice job at it.
I love powershell, but heck, I can't compete with Cognos Developers...
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
We do a lot of cloning of volumes from Prod to test/QA. The volumes contain a tun (spelled it like that on purpose) of luns that are un-needed when we do the clone, so we go in and delete the un-needed luns.
Long story short, the DBA's ask to refresh a DB, which is usually one or 2 luns and since we clone the whole volume, and each volume has a tun of luns, its kind of a pain to find the volume...
With a script that populates what Volume has which Luns, I could go in and filter the LUN name and bingo bango.... easy.