Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi. How to scrip authentication Veeam #11

Open
hasd-daniel opened this issue May 13, 2020 · 0 comments
Open

Hi. How to scrip authentication Veeam #11

hasd-daniel opened this issue May 13, 2020 · 0 comments

Comments

@hasd-daniel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant