tag:blogger.com,1999:blog-2269516327950490847.post8577235340611690954..comments2023-03-28T08:39:06.775-04:00Comments on vNugglets: Get VMHost FC HBA WWN Info Most Quickly with PowerCLIAC (@allen_crawford)http://www.blogger.com/profile/05360032132878174436noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-2269516327950490847.post-13640197829504178522017-05-02T17:12:33.293-04:002017-05-02T17:12:33.293-04:00Hey, Ken-
Glad that you found it to be useful. A...Hey, Ken-<br /><br />Glad that you found it to be useful. And, fast, for sure! CheersMattBoren (@mtboren)https://www.blogger.com/profile/08371304528581535245noreply@blogger.comtag:blogger.com,1999:blog-2269516327950490847.post-57322890307780086582017-04-17T16:32:40.868-04:002017-04-17T16:32:40.868-04:00Pretty cool and gets the job done fast!
Thanks!!!...Pretty cool and gets the job done fast!<br /><br />Thanks!!!!<br /><br />KenAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2269516327950490847.post-90424705040135468622016-07-07T19:05:35.044-04:002016-07-07T19:05:35.044-04:00Hello, Anonymous-
No need to populate variable, y...Hello, Anonymous-<br /><br />No need to populate variable, you just need to call the function with a parameter (or pipe objects to the function).<br /><br />So, after you have defined the function in your PowerShell session (by dot-sourcing a .ps1 file that contains the function definition, or by pasting the function definition into your session), you invoke the function. Like:<br />## use param explicitly:<br />Get-VMHostHBAWWN -VMHostName myhost0.dom.com<br /><br />## or, pipe an object to the function:<br />Get-VMHost myhost0.dom.com | Get-VMHostHBAWWN<br /><br />Keep in mind, this function is getting the WWNs of fiber-channel HBAs in the host. So, of course, it only returns info for VMHosts with fiber-channel HBAs in them (nothing is returned for a VMHost with no FC HBA).<br /><br />How about now -- how's the function do for you?MattBoren (@mtboren)https://www.blogger.com/profile/08371304528581535245noreply@blogger.comtag:blogger.com,1999:blog-2269516327950490847.post-22803922345598844072016-06-16T15:00:24.202-04:002016-06-16T15:00:24.202-04:00same here, where do I need to enter the cluster or...same here, where do I need to enter the cluster or host variables - it's not prompting me when I run the script.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2269516327950490847.post-15471637010297251192015-03-09T20:07:25.133-04:002015-03-09T20:07:25.133-04:00Hello, Andrew-
Aw, man -- that's no fun. So,...Hello, Andrew-<br /><br />Aw, man -- that's no fun. So, you are doing something like:<br />Get-Cluster someCluster0 | Get-VMHostHBAWWN<br /><br />and, getting no output?<br /><br />I assume that the VMHosts involved in the query do have at least one fiber channel HBA in them -- is that the case?<br />MattBoren (@mtboren)https://www.blogger.com/profile/08371304528581535245noreply@blogger.comtag:blogger.com,1999:blog-2269516327950490847.post-43290267472082179412015-02-25T16:44:44.641-05:002015-02-25T16:44:44.641-05:00It runs, but no output, no errorsIt runs, but no output, no errorsAnonymoushttps://www.blogger.com/profile/16227353684054886175noreply@blogger.com