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.0mariogolf_57851
Apr 08, 2010Nimbostratus
Can you provide an example in PERL for this function pls:
PS > $SSHAccess = New-Object -TypeName iControl.SystemServicesSSHAccess_v2PS > $SSHAccess.state = "STATE_DISABLED"PS > $SSHAccess.addresses = (, "10.10.10.10")PS > $Services.set_ssh_access_v2($SSHAccess)PS > $Services.get_ssh_access_v2() state addresses ----- --------- STATE_DISABLED {10.10.10.10}PS > $SSHAccess.state = "STATE_ENABLED"PS > $SSHAccess.addresses = (, "ALL")PS > $Services.set_ssh_access_v2($SSHAccess)PS > $Services.get_ssh_access_v2() state addresses ----- --------- STATE_ENABLED {ALL}