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
6 Replies
- 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".
-Joe - 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?
thanks - 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
Click here
It takes as a parameter the file in the "/config" directory you would like to download. It then downloads it to the current directory and then displays the contents of the file.
Hope this helps!
-Joe - wayney_128269
Nimbostratus
great, that worked.
What does Get-Content actually do? What format are the conf files encoded in?
thanks - 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. - 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.
The file you request will be downloaded and stored in your current directory. You should be able to open it up in notepad or whatever text editor you prefer.
-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
