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 - Victor Kirhenshtein

#646
Hi,

we will test that. So far looks like a bug.

Best regards,
Victor
#647
Hi,

change localhost to 127.0.0.1 as reporting server address. This is known issue - localhost resolved to IPv6 loopback, but reporting server process listens on IPv4 only.

Best regards,
Victor
#648
Quote from: Denis on February 18, 2021, 11:52:25 AM
Виктор, спасибо. Было бы не плохо сделать специальный аттрибут, поскольку как я понимаю коммутаторов с такой проблемой не много (может они старые, а в современных все соответствует спецификации).
Quoteно это надо еще проверять, сделать больше VLAN'ов в разной конфигурации.
По поводу проверки, надо как-то специально настроить или просто назначить штук 10 vlan на разные порты?
да, именно так.
#649
Feature Requests / Re: Object Tool on Switch Port?
February 18, 2021, 10:15:15 AM
Currently it's not possible, but we will consider it for implementation.

Best regards,
Victor
#650
Hi,

I've added feature request for option to display ICMP stats on map - https://track.radensolutions.com/issue/NX-2007.

For placing data on the link you can right-click on link, go to properties, data sources, and add one or more DCIs whose value should be displayed on the link.

Best regards,
Victor
#651
Посмотрел один из предоставленных коммутаторов. Там действительно некорректные данные отдаются в dot1qVlanStaticEgressPorts. Спецификация говорит нам так:

Each octet within this value specifies a set of eight ports, with the first octet specifying ports 1 through 8, the second octet specifying ports 9 through 16, etc. Within each octet, the most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port.  Thus, each port of the bridge is represented by a single bit within the value of this object.  If that bit has a value of '1', then that port is included in the set of ports; the port is not included if its bit has a value of '0'.

Например, у нас порт 7 добавлен в VLAN. Тогда первый байт должен быть в двоичном виде равен 00000010, или 0x02. 4210 на котором я тестировал отдает 00000100 - похоже что каждый полубайт перевернут - но это надо еще проверять, сделать больше VLAN'ов в разной конфигурации.

Главная проблема - как отличить неправильные данные от правильных. У меня в офисе есть 4510, и он уже отдает все корректно. Каких-то различий в MIBах кроме модели и версии софта я не нашел. Один вариант - сделать специальный custom attribute, который будет включать переворачивание битов в маске VLAN'ов. На проблемных коммутаторах можно будет его вручную добавить.
#652
Did it create another log file nxreportd.log? What Java version you have installed?
#653
Hi,

found it - for some reason installer sets "login as" for reporting service to "LocalService" account instead of "LocalSystem". Change "login as" to local system and it should start.

Best regards,
Victor
#654
Hi,

some comments in no particular order.

1. Why use regexp within if:

if (not ($container->name match "^Site:(.*)"))

It could be useful if you put this code into library and re-use in multiple containers. If you by mistake call it on container with wrong naming scheme it will just exit immediately.

2. trace() function writes to server log file, so you can just monitor netxmsd log. First argument is debug level, with 0 being "info" level message (always logged). If you want to show something in event monitor you can create new event (for example call it SCRIPT_OUTPUT) with message field set to %1, and then use the following code to trace:

PostEvent($object, "SCRIPT_OUTPUT", null, "Debug output here");
[code]
New event will appear in event monitor with message set to whatever debug message you put in a call.

3. Line
[code]
if ($node == SeedRouter->name)

will never work - $node is a node object, and SeedRouter->name is a string. You should use

if ($node->id == SeedRouter->id)


4. I mostly use "execute server script" for script debugging. For additional objects like $container in this case I just add temporary line like

$container = FindObject("test container");


5. It is possible to dump all attributes and methods of an object. For example, to dump all attributes of $node:

for(a : $node->__class->attributes)
   println(a . " = " . $node->__get(a));

or all methods:

for(m : $node->__class->methods)
   println(m);


Best regards,
Victor
#655
Announcements / Re: NetXMS 3.8 released
February 15, 2021, 12:40:38 PM
You should add it to config of agent that is used for web service query. By default it is local agent on NetXMS server machine.

Best regards,
Victor
#656
Да, нужен, просто несколько завалило делами. В принципе завтра/послезавтра я могу подключится и посмотреть, тогда к следующему  патч релизу сделаем исправления в драйвере. Пишите в личку про доступ. Спасибо!
#657
Можно попробовать скопировать JRE 11 в каталог, где лежит nxmc.exe, под названием jre. Т.е. будет такая структура

some_dir
  nxmc.exe
  jre
     bin
        java.exe

#658
There are multiple ways of doing this. Below is auto bind script that illustrates one approach:


if (not ($container->name match "^Site:(.*)"))
   return false;
router = FindObject($1);
if (router == null)
   return false;
for(rp : router->parents)
{
   if (classof(rp) == "Subnet")
   {
for(np : $node->parents)
   if (np->id == rp->id)   // Same object
      return true;
   }
}
return false;


This script assumes that container is called "Site:RouterName", so it extracts name of the router object from own name. You can choose whatever method of router identification that suits you best. Then it checks all subnets this router belongs to, and binds all nodes from those subnets (including itself). For practical use you may have to add additional filters on what subnets to consider.

Best regards,
Victor
#659
You can go to "Entire Network" subtree and under appropriate subnet object you'll find all nodes within that subnet.

Best regards,
Victor
#660
Do you have reporting related logs in C:\NetXMS\log? Also, when exactly you get this error - when trying to start reporting service from Service Manager? Did you choose "hardening file system permissions" during installation?

Best regards,
Victor