Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Import-module DataOnTap, where can I find the module "DataOnTap"
2013-12-05
04:19 AM
13,214 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am kind of new to Powershell scripting using DataOnTape modules. One of scripts has this line at very beginning.
Import-module DataOnTap
Could you please tell me how this "import-module" can find "DataOnTap" on the server, and load in for the execution? Also, how to appropriately implement NetApp modules on the server?
I assume this module will be loading functions. One of functions I assume is "Connect-nacontroller", since it is in the script.
Thanks you!
Solved! See The Solution
1 ACCEPTED SOLUTION
sathi has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi netappmagic,
Have a look at this thread, it gives you a tip regarding the import module dataontap
http://www.sumedh.info/articles/netapp_dataontap_filer_powershell.php
For complete info about this, refer the document which i have attached.
Hope it may help you,
Cheers,
Hari
6 REPLIES 6
sathi has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi netappmagic,
Have a look at this thread, it gives you a tip regarding the import module dataontap
http://www.sumedh.info/articles/netapp_dataontap_filer_powershell.php
For complete info about this, refer the document which i have attached.
Hope it may help you,
Cheers,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hari,
Thanks for your message.
It seems that you attached a document about DR. Could you try it again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi netappmagic,
oops!! sorry for that, it was overlooked
You can refer the doc which i have attached.
Cheers,
Hari.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please tell me what is wrong with the following? It is from the attached document. It is complaining about missing "}". However, if I add "}" in the end, still the same. I could get solve it myself. Thanks!
PowerShell Prompt> $LUNList=Get-NaLun; ForEach ($Lun in $LUNList) { if ($LUN.Mapped)
{# since that returns a True/False, don’t need to compare}
Else {Write-Host "LUN Name ="$LUN.Path}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you tried this ?
PowerShell prompt>
$LUNList=Get-NaLun
ForEach ($LUN in $LUNList)
{
if ($LUN.Mapped)
{
# Since that returns a True/False, don’t need to compare
}
Else
{
Write-Host “LUN Name =”$LUN.path
}
}
Regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, It works if using your way. However, why one line is not working. It should work as well as the document said it should.
