Forum Discussion
wayney_128269
Nimbostratus
Sep 07, 2008dump Bigip config from powershell?
Does anyone know how to dump the config of a remote Bigip via powershell into a human readable text format?
thanks
- waney, define "readable". You can easily download the entire bigip.conf and bigip_base.conf files with the System.ConfigSync.download_* methods but that will give you the raw configuration file that resembles a "C" header file. If you are a developer, then this might qualify as "readable".
- wayney_128269
Nimbostratus
I want to do the equivalent of a "bigpipe list" that dumps the entire the config in a human readable format when connected to the console. When I download the config via iControl or the UI, the ucs file that is returned cannot be read by a human, it comes back with garbage characters. Is is possible to decode the ucs file? or is there another way to do the equivalent of the "bigpipe list" via powershell? - Oh, you have been using the download_configuration() method. You can use the download_file() method to download the individual config files (bigip.conf and bigip_base.conf). Here's a little app I whipped together that will emulate the "bigpipe list" command.
http://devcentral.f5.com/wiki/default.aspx/iControl/PsBigipListConfiguration.html
- wayney_128269
Nimbostratus
great, that worked. - Don_MacVittie_1Historic F5 AccountThe ones that this grabs are in text format. You can validate the downloaded files by ssh-ing to the BIG-IP and catting the actual files in /config.
- Don is correct. They are ascii files and Get-Content is a PowerShell cmdlet that is essentially the same as the DOS "type" command that echos the content of the file to the console. In PowerShell, type "Get-Help Get-Content" for more info.
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