Forum Discussion
Conrad_Link_166
Nimbostratus
May 21, 2004saving changes made via ITCMLocalLB.Class
I'm using the ITCMLocalLB.Class iControl functions to modify external string classes (using add_string_class_members and delete_string_class_members). I've found that after adding or removing entries ...
Conrad_Link_166
Nimbostratus
May 27, 2004Joe,
Thanks. I've got this working, but have a few questions about how to do this better:
1. Is there any way to avoid specifying the filename to save_configuration and have it fallback to the default? This would be useful in particular for the SAVE_HIGH_LEVEL_CONFIG SAVE_BASE_LEVEL_CONFIG.
2. Is there any way with SOAP::Lite to programatically access the ITCMSystem.ConfigSync.SaveMode declaration so the numeric equivalent doesn't have to be hardcoded?
BTW, here's a shortened example of how I got this to work:
!/usr/bin/perl -w
use SOAP::Lite on_fault => sub { my($soap, $res) = @_;
die ref $res ? $res->faultstring : $soap->transport->status, "\n"; };
$proxy='https://user:pass@bigiphost/iControl/iControlPortal.cgi';
sub SOAP::Transport::HTTP::Client::get_basic_credentials { return 'user' => 'pass'; }
$class = SOAP::Lite
-> service("$proxy?WSDL=ITCMLocalLB.Class");
$cfgsync = SOAP::Lite
-> service("$proxy?WSDL=ITCMSystem.ConfigSync");
$class->add_string_class_members("myclass", ["mystring"]);
$cfgsync->save_configuration("/config/bigip.conf", 2);
Thanks,
Conrad
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
