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 18 years ago
Version 1.0mariogolf_57851
Nimbostratus
16 years agoCan 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}