F5 Sites
  • F5.com
  • F5 Labs
  • MyF5
  • NGINX
  • Partner Central
  • Education Services Portal (ESP)
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
GroupsEventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Articles
  3. Technical Articles

iControl 101 - #15 - System Services

This installment of iControl 101, I'll focus on the System Service interface where you can have full control of the running state of all the services on the system. Initialization This article...
Published May 29, 2008
Version 1.0
101
application delivery
automation
basic
dev
devops
events
getting started
iControl
iRules
Joe_Pruitt's avatar
Joe_Pruitt
Joined September 22, 2004
View Profile
mariogolf_57851's avatar
mariogolf_57851
Icon for Nimbostratus rankNimbostratus
Apr 09, 2010

 

This routine returns a failure: Cannot convert a struct to a string.

 

 

can you assist please?

 

 

Thank you very much for the previous example. Very helpful!

 

 

:)

 

 

 

----------------------------------------------------------------------------

 

Subroutine: set_service

 

Purpose: Sets the service status for a service

 

----------------------------------------------------------------------------

 

sub set_service()

 

{

 

my ($servicetype, $serviceaction) = (@_);

 

 

print "servicetype $servicetype, serviceaction $serviceaction\n";

 

if (!($servicetype)) { &usage(); }

 

if (!($serviceaction)) { &usage(); }

 

 

$soapResponse = $System->set_service

 

(

 

SOAP::Data->name(services => [$servicetype]),

 

SOAP::Data->name(service_action => [$serviceaction])

 

);

 

if ( $soapResponse->fault )

 

{

 

print $soapResponse->faultcode, " ", $soapResponse->faultstring, "\n";

 

}

 

else

 

{

 

&get_service_status($servicetype);

 

}

 

return(0);

 

}

 

Help guide the future of your DevCentral Community!

What tools do you use to collaborate? (1min - anonymous)

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesTraining & Certification

SUPPORT

Manage SubscriptionsProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

©2026 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information