jorgedlcruz / veeam_grafana

Scripts and other herbs for Veeam and Grafana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi. How to scrip authentication Veeam

hasd-daniel opened this issue · comments

Hi
I have a question. How to script can authentication for collect information from Veeam Server. When i run from remote server was error:
[root@HD-HA-LDC-MON-SVR01 veeam_grafana]# pwsh veeam-stats.ps1
Get-PSSnapin: /root/veeam_grafana/veeam-stats.ps1:40
Line |
40 | if (!(Get-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue) …
| ~~~~~~~~~~~~
| The term 'Get-PSSnapin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
| path was included, verify that the path is correct and try again.

Get-VBRServerSession: /root/veeam_grafana/veeam-stats.ps1:92
Line |
92 | $OpenConnection = (Get-VBRServerSession).Server
| ~~~~~~~~~~~~~~~~~~~~
| The term 'Get-VBRServerSession' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
| if a path was included, verify that the path is correct and try again.

Connect-VBRServer: /root/veeam_grafana/veeam-stats.ps1:97
Line |
97 | Connect-VBRServer -Server $BRHost
| ~~~~~~~~~~~~~~~~~
| The term 'Connect-VBRServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
| a path was included, verify that the path is correct and try again.

Get-VBRServerSession: /root/veeam_grafana/veeam-stats.ps1:105
Line |
105 | $NewConnection = (Get-VBRServerSession).Server
| ~~~~~~~~~~~~~~~~~~~~
| The term 'Get-VBRServerSession' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
| if a path was included, verify that the path is correct and try again.

Write-Error:
Error: BRHost Connection Failed

I don't see anything about user/password for login veeam server

Thank alot