GithubHelp home page GithubHelp logo

gmagella / powershell Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 8 KB

My Personal Powershell Library for your delight (I sure hope so)

Home Page: https://geraldomagellajunior.wordpress.com/

PowerShell 100.00%
powershell script zerto devops

powershell's Introduction

PowerShell

This repository will be used to park my public powershell scripts. Please leverage them in any way you like. If you find any issues, please feel free to correct, get in touch or raise a "issue" here @github

ZertoVPGConfigExport.ps1 (https://github.com/Gmagella/PowerShell/blob/master/ZertoVPGConfigExport.ps1) This script can be used to export Zerto VPGs so you can edit their settings, change IP Settings and etc in bulk (in excel for example) and then import using ZertoVPGConfigImport.ps1

ZertoVPGConfigImport.ps1 (https://github.com/Gmagella/PowerShell/blob/master/ZertoVPGConfigImport.ps1) This script can be used to Import Zerto VPG configuration you've previously exported and edited (change IP Settings, etc).

powershell's People

Contributors

gmagella avatar

Stargazers

 avatar  avatar

Watchers

 avatar

powershell's Issues

I am unable to import IPs in to VPG

I am unable to import IPs in to VPG, below is the error message i am getting, kindly help.

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Exception : System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
TargetObject : System.Net.HttpWebRequest
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ErrorDetails : {"Message":"failed parsing 3536269a-e0be-4b31-af50-d450085f61d7.network-18641 3536269a-e0be-4b31-af50-d450085f61d7.network-18670 3536269a-e0be-4b31-af50-d450085f61d7.network-18671 as a
valid Network identifier"}
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , C:\Users\XXXXX\Desktop\New folder\ZertoVPGConfigImport.ps1: line 278
PipelineIterationInfo : {}
PSMessageDetails :

CommitVPGSettingURL:https://10.xx.xx.xx:9669/v1/vpgSettings/bf34e6e7-5720-4ba4-a023-3ca37bdbf829/commit
59369708-16cd-4676-b05b-9be784b38287.073ef3c6-78b8-4a44-9cd1-6be65d1c9459
VPG:Canada-POC VPGEditOutcome=PASSED
Waiting 5 seconds before processing next VPG

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.