Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

Pulling information from /usr/lib/vmware/vm-support/bin/swfw.sh

$
0
0

What's the best way to pull the report information in and process it?  Ideally, I'd like to place the contents into some sort of array and query through that for the different things I want (versions of components etc.).  Thanks!

 

Are there any components that people are aware of that are not contained in the output?  Seems to contain a lot of system information (bios version, disk firmware etc.)

 

$User = "root"

$Pswd = "password"

$Computer = "servername"

$plink = "s:\Putty\plink.exe"

$plinkoptions = " $Computer -l root -pw $Pswd"

 

 

# start ssh

get-vmhost $Computer | get-vmhostservice | where { $_.Key -eq "TSM-SSH" } | Start-VMHostService -confirm:$false  | Out-Null

 

 

$cmd1 = '/usr/lib/vmware/vm-support/bin/swfw.sh > /usr/lib/vmware/vm-support/bin/output.txt'

$remoteCommand = '"' + $cmd1 + '"'

 

 

$command = "echo y" + " " + "|" + " " + $plink + " " + $plinkoptions + " " + $remoteCommand

 

 

# execute remote command

$msg = Invoke-Expression -command $command

$msg

 

 

# turn off ssh

get-vmhost $Computer | get-vmhostservice | where { $_.Key -eq "TSM-SSH" } | Stop-VMHostService -confirm:$false  | Out-Null


Viewing all articles
Browse latest Browse all 180259

Trending Articles