UCMDB and UD Practitioners Forum (Previously CMS)
cancel
Showing results for 
Search instead for 
Did you mean: 

uCMDB - DDM Pattern NTCMD

SOLVED
Go to solution
Highlighted
Christian Doll
Collector

uCMDB - DDM Pattern NTCMD

Hello,

anybody out there who can deliver me a sample how to use ntcmd protocol in discovery patterns...?

Thanks

Chris
10 REPLIES
Amit Bandekar
Honored Contributor

Re: uCMDB - DDM Pattern NTCMD

What are you specifically looking for? If you need samples, there are already OOB patterns available in discovery such as the "Host Connection by NTCMD" and "Host Resources by NTCMD".

--Amit
Christian Doll
Collector

Re: uCMDB - DDM Pattern NTCMD

I would like to do something like this:

client = Framework.createClient(props)

client.ExecCMD("AnyCommand like ver")

But I am a little confused which properties to specify for the creation of the client object and of how to use the DynamicCredential object correct.

Regards
Chris
Christian Doll
Collector

Re: uCMDB - DDM Pattern NTCMD

By the way, some of the sample from the documentation seems not to work, the embedded pattern editor tells me to do not use deprecated objects and so on... I use ucmdb 8

Thats the reason why I want to have a simple sample.

client = Framework.getClientFactory(ClientsConsts.SNMP_PROTOCOL_NAME)
createClient()

Thats what the validator does not like. Further does the constant ClientsConsts.NTCMD_PROTOCOL_NAME exist and where is it documented?

Amit Bandekar
Honored Contributor

Re: uCMDB - DDM Pattern NTCMD

You need the Discovery SDK reference.It has the documentation (including the constants that you need). You can request for the version 8 from HP Support.

--Amit
Christian Doll
Collector

Re: uCMDB - DDM Pattern NTCMD

hello amit,

thanks for your help. I will request it from hp... so it can take some time.

You cannot post it here, can you?

Amit Bandekar
Honored Contributor

Re: uCMDB - DDM Pattern NTCMD

I have for the 7.0 version, from what i heard lot has changed since then.

--Amit
Christian Doll
Collector

Re: uCMDB - DDM Pattern NTCMD

Can you post it? I will also request the new one from hp.

Thanks
Amit Bandekar
Honored Contributor
Solution

Re: uCMDB - DDM Pattern NTCMD

Here you go..attached.

--Amit
Christian Doll
Collector

Re: uCMDB - DDM Pattern NTCMD

Thanks for your help ;-)

Christian Doll
Collector

Re: uCMDB - DDM Pattern NTCMD

Requesting SDK API from HP
//Add this to "OnDomLoad" event