Skip to end of metadata
Go to start of metadata

Use the createAgentByObject API to create a new Backup Agent for the entered host server.

########====CDP Server Configuration Start====######## #set CDP server host name $HOST="10.230.131.25"; #set CDP server to access API $PORT="9443"; #set CDP user $USER="admin"; #set CDP user password $PASS="admin"; ########====CDP Server Configuration End====######## $agentObj->description = "addAgentAPItest"; $agentObj->hostname = "10.230.131.25"; $agentObj->portNumber = "9443"; #Create a new Backup Agent. try{ $client = new soapclient("https://$HOST:$PORT/Agent?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1 ) ); $response=$client->createAgentWithObject(array('agent'=>$agentObj)); var_dump($response); exit(0); } catch (SoapFault $exception) { echo $exception; exit(1); }

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.