Forum Discussion
mclaugmi_59816
Nimbostratus
Apr 24, 2008Using Powershell to backup configuration on a LTM or GTM
When I try to connect to a ltm I receive the following error
Initialize-f5.icontorl : could not initialize connection with supplied information at c:\psscripts\systeminfo.ps1:166 char:34 * $success = initialize-f5.icontrol <<<< -hostname $g_bigip -usernaem $g_uid -password $g_pwd: Exception caught
I know the username and password are correct, my question is should I be connecting to the management port (which is not currently in use) or can I use the inside interface as a connection point.
Thanks in advance for any assistance
2 Replies
- You should be using the management address that the web gui running under. This error means that one of two things occurred.
1) A https connection to the contents of $g_bigip could not be made.
2) You are running through a proxy server (the snapin doesn't natively support proxy servers right now).
3) The supplied credentials were not valid for a connection to https://$g_bigiip/iControl/iControlPortal.cgi.
Unfortuantely I can't really offer much more guidance as I can't test your connectivity. I would suggest you try connecting with a browser with $g_bigip, $g_uid, and $g_pwd to make sure it's valid. If that works and the powershell pieces doesn't, then I'm at a loss on where to go next since asll it is trying to do is establish a ssl connection the same way the browser would.
-Joe - I hate it when that happens! Glad things are working!
If you haven't already, check out the latest iControl tech tips that I've written. I'm using PowerShell exclusively to illustrate how to use some of the methods. Arrays of Inbound structures can be a bit tricky, so those tech tips might help you out.
Cheers!
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
