Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - maredcz

#16
Maybe, there is generall problem with drivers. My windows installation after update 2.2.4-->2.2.5 cannot load some drivers

*I* Network device driver "AIRESPACE" loaded successfully
*I* Network device driver "AT" loaded successfully
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\baystack.ndd"
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\cat2900xl.ndd"
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\catalyst.ndd"
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\cisco-esw.ndd"
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\cisco-sb.ndd"
*I* Network device driver "DELL-PWC" loaded successfully
*I* Network device driver "DLINK" loaded successfully
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\ers8000.ndd"
*I* Network device driver "EXTREME" loaded successfully
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\h3c.ndd"
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\hpsw.ndd"
*I* Network device driver "IGNITENET" loaded successfully
*I* Network device driver "JUNIPER" loaded successfully
*I* Network device driver "NETSCREEN" loaded successfully
*I* Network device driver "MIKROTIK" loaded successfully
*I* Network device driver "NETONIX" loaded successfully
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\netscreen.ndd"
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\ntws.ndd"
*I* Network device driver "PING3" loaded successfully
*E* Unable to find entry point in network device driver "F:\NetXMS\lib\ndd\procurve.ndd"
*I* Network device driver "QTECH-OLT" loaded successfully
*I* Network device driver "SYMBOL-WS" loaded successfully
*I* Network device driver "TB" loaded successfully
*I* Network device driver "UBNT" loaded successfully


Martin
#17
Thank you, will wait for new release.

Martin
#18
Hello Tomas, to be exactly I have a problem with NetObj's "TYPE attribute" when the object is Node.
As mentioned in Documentation, the Node class should inherite all attributes of NetObj class, but the
n->type returns "ERROR: Script finished with error: Error 15 in line XX: Unknown object's attribute"

It happen when the object is node.

The Title of this post should be probably
The type attribute of NetObj cannot be determined when the object is node - Error Unknown object's attribute"



node=10506;

nodeObject=FindObject(node);

// this is a Node
println("FindObject - Class of node object: " . node . " is " . classof(nodeObject));

try {
println("Type of node object: " . nodeObject->type);
} catch {
  println("Query nodeObject->type. This error should not be displayed, since Node should have the TYPE attribute inherited from NetObj");
}

#19
The function instanceof is not known im my system.
I am currently running 2.0.1 version.

In my case FindObject function returns different classes for Node and Container, but should return only the generic class as mentioned in Documentation.

println(classof(FindObject(10506)));  //10506 is Node, FindObject returns "Node"
println(classof(FindObject(219)));   //219 is Container, FindObject returns "NetObj"

It is not generally big problem, but it differs from the function description in Documentation pages and source code comments.

Martin
#20
According to source codes, the function should return generic object class or null
/**
* Find object
* First argument: object id or name
* Second argument (optional): current node object or null
* Returns generic object or null if requested object was not found or access to it was denied
*/

If I call the function with a node as argument
o=FindObject(nodeid);
the 
o->type
returns: ERROR: Script finished with error: Error 15 in line XX: Unknown object's attribute


With container ID as parameter is not problem.

So I think the function is returning Node pointer when the argument is the node.

From my point of sight is it wrong behaviour. For this purpose exist FindNodeObject.

Martin



Code example
sub main() {

n=FindObject(10506);   // node class type

  println("Name: " . n->name . " ID: " . n->id);
  println("snmpSysName: " . n->snmpSysName); // WRONG - returns a snmpSysname value
  println("Type: " . n->type);  //WRONG - shoul return "2", but returns
             // - ERROR: Script finished with error: Error 15 in line XX: Unknown object's attribute
 
n=FindObject(219);   //Container class type

  println("Name: " . n->name . " ID: " . n->id);
  println("snmpSysName: " . n->snmpSysName); //CORRECT error message, snmpSysName does not exists in netobj"
                  // - ERROR: Script finished with error: Error 15 in line XX: Unknown object's attribute
  println("Type: " . n->type);  //CORRECT - returns "5"

}
#21
Have the same issue ...

Martin
#22
Hello I am observing problems with interface editing in "interfaces" tab (NetXMS 1.2.16-2.0M2).
In 1.2.15 was possible choose multiple interfaces and select one of "mass change" operations - manage, unmanage, delete, change interface expected state. Since 1.2.16 works for me only the "change interface expected state". The only way is in object browser expand the tree, here make the multiple selection and do required operation.

Is somebody observing similar behaviour?

Martin