How to get the attributes of node when you query the TQL via java API
Hello
I'm trying to pick up a hierarchy of IC using a TQL. I created a TQL on uCMDB and am now questioning him through the uCMDB java API. The TQL is simple and queires a hierarchy containing a Node (Server) containing the disks, file systems, interfaces and IP addresses.
My code snippet is:
UcmdbService ucmdbService = CMDBConnection.createCMDBService();
TopologyQueryService queryService = ucmdbService.getTopologyQueryService();
Topology topology = queryService.executeNamedQuery("BasicTopologyView");
Collection
for (TopologyCI node : allCIs) {
System.out.println("Node is " + node.getPropertyValue("display_label") + "(" +node.getId().getAsString() + ") ... " + node.getPropertyValue("display_label")
+ " ... " + node.getPropertyValue("TenantOwner")+ " ... " + node.getPropertyValue("discovered_os_name"));
}
The output I get is
The node is/usr (18de9fd759680f10b4f1d3567fb0f5e5)... / usr... null null
The node is/tmp (18eaac5d8ec14e45874029f25011a13c)... / tmp... null null
Whatever properties I question are coming as null. Is there a way I can say uCMDB what I expect from each node to the execution of the attributes.
Thanks in advance.
Peyrot
This problem is now resolved. The correct way to proceed, queryProperties method is used when querying of the node.
node.queryProperties(props);
When the accessories is a string containing all of the appropriate properties you want to take to uCMDB.
Tags: Notebooks
Similar Questions
-
How to get past "run OneNote print" when you ask to print?
When you send a document to print, I get the message that I need to run OneNote before printing. How can I go about it? I have a lot of documents sent to the printer this way, but not printing.
Hi, Norma.
Have you tried the steps described in the previous post?
I suggest you to refer to the article and set the default printer for printing:
Change the programs that Windows uses by default
http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default
Change default programs using Set Program Access and computer defaults
Let us know the results.
-
How to get the information via the API Rest Socialcast challenges?
Hello
Is it possible to get the challenges through socialcast REST API?
I find particular endpoint of challenges.
Can we get information of challenges as messages? I can see more details api message endpoint.
"extensions associated with this message, which can include group data, thank you, challenges, project or town_hall"
Message from API documentation
Hello:
We don't have an API of challenges available at this time. We release new API information on an ongoing basis, then please do not hesitate to consult the documentation periodically for updates.
Thank you
Socialcast VMware team
-
XML: How to get the value of the node when the node of pasing as a parameter name
Hello
I've got some xml:
var xmlData:XML = <1stNode> <buttonID>first child node value</buttonID> <imageID>second child node value</imageID> <labelID>third child node value</labelID> </1stNode>
So, I want to read the value of specific node based on a value passed to a function. .
var buttonID = new Button; var imageID = new Image; var labelID = new Label; getNodeValue(buttonID); //the value here is set dynamically private function getNodeValue (nodeName:String):void { trace (xmlData.nodeName) //doesn't work var str:String = "xmlData." + nodeName; var xml:XMLList = str as XMLList //doesn't work }
I don't know how to get the value when the name of the node is changed dynamically.
use:
getNodeValue(buttonID); //the value here is set dynamically private function getNodeValue (nodeName:String):void { trace (xmlData[nodeName]) }
-
How to get the reference or the property of a member in OOP node?
Hello world
Is it possible to get the referral of a member in OOP?
After you have created a class and an insert, a member of control in the cluster, I conclude that, when a right click on it, there is no element of "creat-> reference" or "create-> property node?
So, how to get the reference or the property of a member in OOP node?
Hello
There are a few reasons that you can't do what you want to do:
1 al ' LVOOP ordinary (as opposed to the DVRS in LabVIEW 2009, or some other framework / pattern design) are items of LabVIEW by value, as a cluster and therefore you can not create a reference to a class.
2. a control of the object (this is what you get when you drop an object on a façade) is a 'black box' because you cannot look inside. This is to support the idea that the class data private. This means that you can't get a reference to all internal control when its on a façade
3. check the references are valid only for the controls in the Panel before and therefore any class (or other piece of data of LabVIEW) on a wire / shift register / constant / anywhere other that of the façade, will have only the data portion of the available control.
To access the items within a class, you create the accessor screws (you can create them easily by right-clicking a class (or the folder within the class) in the project tree and selecting New-> VI to access data members.) This VI would at least have a unbundle / bundle node (depending on whether its read/write) and could, if you have many more features such as range checking. You can use this VI whenever you want to read the Member your interested.
I hope this helps.
Shaun
-
How to get the IP address of the client when TCP connect on the server
How to get the IP address of the client when TCP connect on the server.
The only parameter obtained the login is the login ID.
I assume you are using "Wait of TCP on the listening port" on the server. This returns the remote address and port (like out in option).
-
I use lv 8.5 and teststand 4.0.
I did a step type custom and recorded at the MyTypes.ini in pallets of type.
I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.
T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.
But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.
Using joint file, how to get the setting custom step type values I put in *.ini?
Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.
Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?
I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.
Everyone knows Q2?
Thank you.
-
How to get the sound of my computor when watchig itv/player
How do you get sound on your computor, when you look at itv/player
Hi Valerie,
· You go to ITV Player via Internet Explorer or a different browser?
· You are able to hear sound on other Web sites and applications?
In more than the suggestion of David, if you use Internet Explorer to play ITV and confrontes face the question, try the steps below and check to see if it helps:
A. open Internet Explorer and click on tools
B. click on Internet option and click the Advanced tab.
C. scroll to multimedia and select the option "play sound in web pages".
D. click on apply and Ok.
Restart Internet Explorer and check if you can hear the noise in the ITV player.
You can also navigate to the link below and follow the steps in the article to solve his problem in ITV player. http://www.ITV.com/help/itvplayervideohelp/videofaqs/#10
Hope this helps and let us know the result.
Thank you and best regards,
Srinivas R
Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
How to get the event when we change our simcard in BB device
Hi all
Please, someone tell how to get the event or any listener method that can automatically called when we change our SIM card device.
Thanks in advance,
TEJ
Hi Tej,
I came across some post, which may be useful for you
http://supportforums.BlackBerry.com/T5/Java-development/is-SIM-ID-really-exist/m-p/54407#M5954
-
How to get the new activation key when some numbers are taken away and you have received?
How to get the new activation key when some numbers are taken away and you have received?
Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.How can I get a new code activation or my complete activation code?Best regards, W7 userHow to get the new activation key when some numbers are taken away and you have received?
Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.How can I get a new code activation or my complete activation code?Dell provided you with restore/recovery media and/or a way to restore the machine 'default' as a key sequence? If so - you won't need the number--unless they just sent a DVD of Windows 7 nu - and they are usually not unless you ask.
They have probably installed using their key, which means that even with a utility like Belarc Advisor or ProduKey - you will not get the product key that matches the one on the sticker.
Some may have you take several different digital pictures of the sticker from different angles and see if you can decipher the missing characters like that (you'd be surprised to see how that works).
-
How to get the cursor to change when rolled on an object?
does anyone know how to get the cursor to change when rolled onto an object. BTW, I have several objects to apply it.
Select your object's buttonMode:
yourobject.buttonMode = true;
-
How to get the length and sub lymph nodes.
Hello
find the script below.
< List1 >
< list >
< List1 >
< List1 >
< List1 >
< / list >
< list >
< List2 >
< List2 >
< List2 >
< / list >
--
--
-
-
-
-< / list1 >
Here the tag list will be growing based on the I / p. Now what I want is to know how to get the length of the tag < list >.
To implement the above I used the code below
var number = xfa.record.List1.List [0].nodes.length; (Does not work)
But if var account = xfa.record.List1.nodes.length; (work)
and also I want to delete a tag inside the < List > tag. How?
Very Urgent.
Thanks in advance.
Yes, you need to use the name instead of the value to get the tag name...
xfa.datsets.data.Root.nodes.item (0) .name
Thank you
Srini
-
How to get the name of the element when running from popup menue?
Hello
I am using the 10.2 forms and a form with 2 listitems (mouse and keyboard navigable = No./false) with the same popup menu.
When I'm currently running then menu-trigger point: system.mouse_item is not defined and: system.cursor_item the value von hase something else.
How to get the itemname of the element that is currently leading the context menu?
RobertHello!
Can create a PRE-POPUP-MENU trigger on block level
with a call to go_item (: system.mouse_item)
You know, you're on what item in the list when the context menu is active.
Concerning -
How to get the date in the exact day in the field when another?
Hello
Please help me how to get the day of the week using another date field.
In fact, a field (week_day) has 1,2,3,4,5,6,7 here 1-, 2 - KILL like this.
another field has the date. After this date, go to this particular week and need to pick up the date of the Etiquettemois above. It should be this week there himself.
Thanks in advance!
Kind regards
Florian...
Published by: Florian on October 29, 2010 03:07Maybe it's
select trunc(date_field,'D') + week_field - 1 from table
-
How to get the values of the table of the ADF to bean class?
Hi all
My 11.1.1.6 Jdev
Here I do not use BC ADF in my project. I'll put values in the ADF table with bean.
In the table, I put a checkbox. When I selected (Checkbox) a few rows in table and submit. In the submit method, I want to get all the values of line checkbox selected in my bean class.
How can I get the values. ???
Here my table UI code
< af:table var = "row" rowBandingInterval = "0" id = "t1" value = "#{pageFlowScope.BinderSolutionsBean.uiBinderProperties} '"
styleClass = "AFStretchWidth" emptyText = "no record found".
Binding = "#{pageFlowScope.BinderSolutionsBean.binderTree}" >
< af:column sortable = "false" headerText = "Script ID" id = 'c4' >
< af:panelGroupLayout id = "pgl4" >
< af:selectBooleanCheckbox id = 'sbc1' > < / af:selectBooleanCheckbox >
< af:spacer width = "5" / >
< af:outputText value = "#{row.scenarioId}" id = "ot5" / > "
< / af:panelGroupLayout >
< / af:column >
< af:column sortable = "false" headerText = "Quote ID" id = "c1" >
< af:outputText value = "#{row.quoteId}" id = "ot4" / > "
< / af:column >
< af:column sortable = "false" headerText = "NASP ID" id = "c2" >
< af:outputText value = "#{row.naspId}" id = "ot2" / > "
< / af:column >
< af:column sortable = "false" headerText = "GCH ID" id = 'c3' >
< af:outputText value = "#{row.gchId}" id = "ot3" / > "
< / af:column >
< af:column id = "c6" headerText = "Term" >
< af:outputText value = "#{row.term}" id = "ot9" / > "
< / af:column >
< af:column sortable = "false" headerText = "Status" id = "c5" >
< af:outputText value = "#{row.status}" id = "ot6" / > "
< / af:column >
< / af:table >
follow some above recommendation such as the creation of additional attribute. You will also need the key in your collection, while making the data for your chart.
You must write a custom selectionListener. On valueChangeEvent of box, get the key of a line and add the line at the bean.
Maybe it's little help for you
Maybe you are looking for
-
I can't do the colours of links followed to work at 24 for some reason any.
I just downloaded v24, and now I can't get the colors to work for the links on a web page. I checked the settings on my other computers running windows 7, but these settings will not bework on my laptop running windows 8. In my previous version of fi
-
Firmware corrupt BDX3400SE Blu - ray player
Firmware in this link does not work: http://www.dl.toshiba.com/player/NA/GB/EN/BDX3400SE.html There is more discussion about this in the forum USA from Toshiba:http://forums.Toshiba.com/T5/Blu-ray-DVD-players-recorders/BDX3400SE-can-t-upgrade-firmwar
-
Waveforms of writing to the worksheet to help to write on the worksheet vi
Hello Problems with writing 2 waveforms of the myDAQ to a worksheet. Using the "write on the worksheet vi.' does not work as it records in the file, but when you open the file to look at the results, there is no data." I got a screenshot of used vi,
-
No real - code error 0xC004E003
Separated from this thread. Unresolved. I tried the patch, and he now returns with an error 0xC004E003 code
-
Error message when opening the programs especially IE
receiving following message: "Windows cannot find C:\Program Files (x 86) 1 Verizonthe dt user.exe make sure you typed the name correctly." It just started and I don't know what to do about it... thanks