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 via these methods, the actual changes are not written to disk.
Is there any way to save these changes to disk that is similar to the "bigpipe save" command line option? The closest I could find was the ITCMSystem.ConfigSync interface which is equivalent to the "bigpipe config save" command line.
Thanks,
Conrad
- Conrad,
/** * An enumeration of save flags used in configuration save. * * SAVE_FULL Saves a complete configuration that can be used to set up a device from scratch. * SAVE_COMMON Saves only a configuration that can be replicated to other devices. * SAVE_HIGH_LEVEL_CONFIG Saves only the high-level configuration (virtual servers, pools, members, monitors...) * SAVE_BASE_LEVEL_CONFIG Saves only the base configuration (VLANs, self IPs). * **/ enum SaveMode { SAVE_FULL, SAVE_COMMON, SAVE_HIGH_LEVEL_CONFIG, SAVE_BASE_LEVEL_CONFIG };
- Conrad_Link_166
Nimbostratus
Joe,!/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);
- Great, thanks for the post!
my $SAVE_FULL = 0; my $SAVE_COMMON = 1; my $SAVE_HIGH_LEVEL_CONFIG = 2; my $SAVE_BASE_LEVEL_CONFIG = 3; ... $cfgsync->save_configuration("bigip.conf", $SAVE_HIGH_LEVEL_CONFIG);
$cfgsync->save_configuration("bigip.conf", "SAVE_HIGH_LEVEL_CONFIG");
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