-
1. Re: how can add Multiple parameters in NSH scrip job with BSA Webservice ?
Santhosh Kurimilla Jan 8, 2016 2:59 AM (in response to Luo yingrui)Once you have created your NSH Script job, assuming you have saved your parameter values in and as parameter1,2,3:
# CLITunnelService for setting parameters for NSH Script job
cmdParameters = [jobGroup, jobName, 0, parameter1]
cliTunnelResult = cliTunnelClient.service.executeCommandByParamList('NSHScriptJob','addNSHScriptParameterValueByGroupAndName',cmdParameters)
cmdParameters = [jobGroup, jobName, 1, parameter2]
cliTunnelResult = cliTunnelClient.service.executeCommandByParamList('NSHScriptJob','addNSHScriptParameterValueByGroupAndName',cmdParameters)
cmdParameters = [jobGroup, jobName, 2, parameter3]
cliTunnelResult = cliTunnelClient.service.executeCommandByParamList('NSHScriptJob','addNSHScriptParameterValueByGroupAndName',cmdParameters)
-
2. Re: how can add Multiple parameters in NSH scrip job with BSA Webservice ?
Luo yingrui Jan 11, 2016 12:57 AM (in response to Santhosh Kurimilla)Hello Santhosh Kurimilla,
thank you for your swift reply.
In my way ,i used soap console to call bbsa webservice with CLITunnelService for two parameters such as:
##################Request##################
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://bladelogic.com/webservices/framework/xsd" xmlns:clit="http://bladelogic.com/webservices/skeleton/clitunnel">
<soapenv:Header>
<xsd:transactionId>?</xsd:transactionId>
<xsd:sessionId>urn:uuid:DC086B17724C64BEC71452491792672</xsd:sessionId>
</soapenv:Header>
<soapenv:Body>
<clit:executeCommandByParamList>
<!--Optional:-->
<clit:nameSpace>NSHScriptJob</clit:nameSpace>
<!--Optional:-->
<clit:commandName>addNSHScriptParameterValueByGroupAndName</clit:commandName>
<!--Zero or more repetitions:-->
<clit:commandArguments>/CP_TEST</clit:commandArguments>
<clit:commandArguments>Script_test_soap</clit:commandArguments>
<clit:commandArguments>0</clit:commandArguments>
<clit:commandArguments>11.11.175.12</clit:commandArguments>
</clit:executeCommandByParamList>
</clit:executeCommandByParamList>
<!--Optional:-->
<clit:nameSpace>NSHScriptJob</clit:nameSpace>
<!--Optional:-->
<clit:commandName>addNSHScriptParameterValueByGroupAndName</clit:commandName>
<!--Zero or more repetitions:-->
<clit:commandArguments>/CP_TEST</clit:commandArguments>
<clit:commandArguments>Script_test_soap</clit:commandArguments>
<clit:commandArguments>1</clit:commandArguments>
<clit:commandArguments>5</clit:commandArguments>
</clit:executeCommandByParamList>
</soapenv:Body>
</soapenv:Envelope>
#################################
##################Response###############
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns6:executeCommandByParamListResponse xmlns:ns6="http://bladelogic.com/webservices/skeleton/clitunnel">
<ns6:return>
<ns3:classInstance xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns3:classInstance>
<ns3:comments xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd">No comments</ns3:comments>
<ns3:executionTime xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd">0</ns3:executionTime>
<ns3:list xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns3:list>
<ns3:memoryUsed xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd">0</ns3:memoryUsed>
<ns3:realInputArguments s818:type="s819:string" xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s818="http://www.w3.org/2001/XMLSchema-instance" xmlns:s819="http://www.w3.org/2001/XMLSchema">/CP_TEST</ns3:realInputArguments>
<ns3:realInputArguments s820:type="s821:string" xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s820="http://www.w3.org/2001/XMLSchema-instance" xmlns:s821="http://www.w3.org/2001/XMLSchema">Script_test_soap</ns3:realInputArguments>
<ns3:realInputArguments s822:type="s823:string" xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s822="http://www.w3.org/2001/XMLSchema-instance" xmlns:s823="http://www.w3.org/2001/XMLSchema">0</ns3:realInputArguments>
<ns3:realInputArguments s824:type="s825:string" xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s824="http://www.w3.org/2001/XMLSchema-instance" xmlns:s825="http://www.w3.org/2001/XMLSchema">11.11.175.12</ns3:realInputArguments>
<ns3:returnValue s826:type="s827:string" xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s826="http://www.w3.org/2001/XMLSchema-instance" xmlns:s827="http://www.w3.org/2001/XMLSchema">DBKey:SJobModelKeyImpl:2015020-8-2218700</ns3:returnValue>
<ns3:success xmlns:ns3="http://bladelogic.com/webservices/model/clitunnel/xsd">true</ns3:success>
</ns6:return>
</ns6:executeCommandByParamListResponse>
</soapenv:Body>
</soapenv:Envelope>
######################
You can see only the parameter "11.11.175.12" is ok ,the "5" is not exist.MaybeI i used the incorrect syntax format, i don't know why.