WebNMS Developer Forums
Click on Join Now to Sign Up
As the title stated, I wonder how can card addition/removal be detected with status polling.
For example, my computer cannot receive trap from Device A. With status polling, any status change of a card can be reflected automatically. However, in the case of card addition/removal, nothing is changed in the database. So what should I do?
I have such a case as follows:
I have create a chassis project and there are two shelf types. Now after deployment, in the client program, I want only one shelf type get displayed each time whenever I doulbe click the icon on the map based on some condition.
What should I do to the code?
Hi
The scenario is as follows:
The map symbols have been added after discoverying device and administratorcan set some criteria so that different users can manage different device.
My requirement is that, is it possible to show/hide the map symbols dynamicly according to the criteria set by administrator without deleting the may symbols.
Thanks.
I have not opened the DiscoveryFilter for a long time and I opened it yesterday. However, it could not be opened correctly again. The following error was popped-up(Please check the appendix).
How to solve the problem?
I have enabled the status polling of managed object. After that, However, the message 'Node clear. No failures on this node.' keep coming out in the Event table. In face, the device is online all the time. If I disabled the status polling, the message "Node failure. This probably means one or more interfaces have failed." will come out very late if the device is indeed offline.
So how can I reduce the number of message 'Node clear. No failures on this node.' if I want to enable the status polling of managed object?
When I want to modify the filter using Studio, the following error occurs when I click 'Next' for the forth time:
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 256
at com.adventnet.studio.filters.IndentSource.getnl(IndentSource.java:888)
at com.adventnet.studio.filters.IndentSource.IndentSource(IndentSource.java:490)
at com.adventnet.studio.filters.IndentSource.start(IndentSource.java:221)
at com.adventnet.studio.filters.SourceGenerator.getMapSource(SourceGenerator.java:163)
at com.adventnet.studio.services.filters.trap.TrapFilter.filterShowCard(TrapFilter.java:463)
at com.adventnet.studio.filters.FilterFrame.showCard(FilterFrame.java:413)
at com.adventnet.builder.utils.wizard.WizardController.actionPerformed(WizardController.java:330)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:542)
at java.awt.Dialog$3.run(Dialog.java:569)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:567)
at java.awt.Component.show(Component.java:1133)
at java.awt.Component.setVisible(Component.java:1088)
at com.adventnet.studio.filters.FilterFrame.setVisible(FilterFrame.java:625)
at com.adventnet.studio.framework.ProjectComponentsActionListener.setUpFilterWizard(ProjectComponentsActionListener.java:406)
at com.adventnet.studio.framework.ProjectComponentsActionListener.modifyExistingFilter(ProjectComponentsActionListener.java:628)
at com.adventnet.studio.framework.StudioMenuActionListener.executeCommand(StudioMenuActionListener.java:191)
at com.adventnet.studio.framework.StudioMenuActionListener.actionPerformed(StudioMenuActionListener.java:72)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
What may be the cause?
Hi
I found a method called 'setSelected' in the API which has the following signature
public void setSelected(boolean selected)
selected
- true to make this object selectedIt says it does not select the symbol. However, my requirement is that I want the specific symbol get highlighted.
What should I do?
With the help of deployment, we can easily open the chassis client(throught NAR) by clicking the popup menu. However, the configuration of the menu XML file is done automatically by studio.
My question is that how can I open the chassis client (i.e. chassis view) through any method, for example by clicking the tree node.
Thanks in advance.
I have encountered a strang error. I have created two discovery filter for two different types of devices and have successfully added them seperately(by seperately I mean that I only add a type of device after the server is started and restart the server and then successfully add another type of device). However, a stange thing happened. For each time the server is started, I can only add one type of device. If I add another type of device, the following error occurs.
TOPO: Exception in SetUpNode while adding object 192.168.0.93 to database at:
java.lang.NullPointerException
at com.adventnet.studio.services.filters.ManagementServerUtility.getIndexVector(ManagementServerUtility.java:634)
at com.gview.server.GFDeepDiscoveryFilter.portInstantiation(Unknown Source)
at com.gview.server.GFDeepDiscoveryFilter.filterObject(Unknown Source)
at com.adventnet.nms.topodb.FoundFilterList.applyFilters(FoundFilterList.java:309)
at com.adventnet.nms.topodb.SetupNode.addObject(SetupNode.java:2642)
at com.adventnet.nms.topodb.SetupNode.addObject(SetupNode.java:2144)
at com.adventnet.nms.topodb.SetupNode.pingAddress(SetupNode.java:3794)
at com.adventnet.nms.topodb.SetupNode.update(SetupNode.java:3905)
at com.adventnet.nms.topodb.TopoDB.addNode(TopoDB.java:6594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
It seems that there is something wrong with portInstantiation. What may be the problem?
After I have installed another version of NMS 4.7, I have trouble in opening the studio project.
The prompt is 'Project Opening Aborted: License Information is Corrupted'
What can I do to solve this problem?
By using the studio, I have succesfully added a map and a map symbol using the MapFilter. There is a node on the leftside tree. I have such a circumstance. When double clicked the symbol on the map, I want the corresponding tree node be selected. In NmsUiAPI, I find the following method.
static void
selectTreeNode(java.lang.String nodeId, boolean showPanel)
So, anyone can tell me what should I do?
Thanks.
The following post discussed about the differences between map container and map group http://forums.manageengine.com/#Topic/49000002627441
In that post it is said that 'The symbols inside the group will not be visible externally but we can view the map symbols inside a group by selecting the group and expanding it. '
Is it possible to achieve this in Map Container. In other words, I want only the parent map symbol displayed on the map and all the children are hiden. In order to see the details(the child detail, the container's own layout), you should select the container and expand it.
Anyone knows how to do that?
I have tried the tutorial called 'corba_northbound_tutorial' and walked through it successfully. Also, I have integrated the example with my own project and am able to get details of the mos, events and alerts. In the example, the status of a managed object is configurable. However, only the database data is updated. My question is that is it possible that the state of a real device can the set through CORBA northbound interface? If so, how??? Thanks.
In knowledgebase, I have found the following article.
#110281 - How to display Chinese characters properly while printing events and alarms from Windows 2000 machine (default language Chinese) ?
http://kbase.zohocorp.com/kbase/Web_NMS/Fault_Management/file_110281.html
But where can I download the example(printThroJava.zip) mentioned in it.
Anyone can tell me? Thanks.
Hello, everybody,
I have encountered a strange problem.
In Chassis Wizard, I use the notification mechanism provided and I type in a print statement inside the notification code to print out the time that the client receives the notification.
From the result, it seems that there is a difference between events that causes card lost/found and card property changes. The differences are shown as follows:
For card property changes event: The notification is received as soon as the event is added to Event table in the database.
For card lost/found event: The notification is received 3-4 seconds after the event is added to Event table in the database.
I am quite puzzled with the delay. Thus, does anyone know what may be the reasons? Thanks.
I used WEB NMS 4.7 at first without applying the SP3. According to the developer guide, the NmsClientUtil.changePassword( ) method can be used to change the password from the client. Yep, it worked fine. However, after I applied SP3, it does not work again. The NmsClientUtil.changePassword( ) method always returns a false boolean value.
Can anyone tell why this happens.
Thanks.
When discoverying a SNMP node, I use a ethereal packet capture tool to capture the SNMP packets that are exchanged between the Web NMS and the SNMP device. The result shows that for each and every property, the system will send a single SNMP query. As a result, the total time cost in discoverying a node is quite long. My question is whether there is a way to group a set of properties in one SNMP query so that the total time may be reduced.
For example, in current system in order to get the properties a,b,c, three seperated query packages should be sent. If all the three properties can be got in only a single query, the time will be shortened greatly.
Anyone knows please help me.