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

Topics - meshnet

#1
Good day,

I would be grateful for a feature to toggle (via button or with a key-combo) how maps are navigated with the keyboard & mouse

example:

control + mousewheel up
  - map zooms in

control + mousewheel down
  - map zooms out

control + left click drag
  - pans map in any direction

alt + left click drag
  - selects rectangular area where map is centered and zoomed in

#2
Hello,

I have physical devices found through network discovery. The main issue is multiple objects are created. The device may have 10 interfaces with 10 different subnets. The result is 10 objects. This is detrimental at scale. The impact is now SNMP Polling and NetXMS Database, Severe Events and so on, are now 10 times in size. Of the thousands of devices, it is now ~5 thousand the impact.

I assume the method of preventing this is adding a NetXMS script to match device name to an existing device name. Is this an efficient way to go about this? Also, is there a way to clean up it's current state (thousands of devices) -- I am thinking I will write a NetXMS + Python script to determine if the nodes are duplicate, are not on a map, and are not holding any custom attributes I may have set. But.. Easier the better, no?

Suggestions, thoughts much appreciated.

Attached is a screenshot of the "issue" -- though, it may not be considered one by some or many admins here.

Kind regards,

-w
#3
looking at the 2.2.x source code in ./netxms/src/agent/subagents/ssh

in here, the handlers.cpp file defines the remote SSH port 22.
Also here are a group of parameters passed into H_SSHCommand()

I am interested in variable/pointer set with this function _tcschr(hostName, _T(':'));



/**
* Generic handler to execute command on any host
*/
LONG H_SSHCommand(const TCHAR *param, const TCHAR *arg, TCHAR *value, AbstractCommSession *session)
{
   TCHAR hostName[256], login[64], password[64], command[256];
   if (!AgentGetParameterArg(param, 1, hostName, 256) ||
       !AgentGetParameterArg(param, 2, login, 64) ||
       !AgentGetParameterArg(param, 3, password, 64) ||
       !AgentGetParameterArg(param, 4, command, 256))
      return SYSINFO_RC_UNSUPPORTED;

   UINT16 port = 22;
   TCHAR *p = _tcschr(hostName, _T(':'));
   if (p != NULL)
   {
      *p = 0;
      p++;
      port = (UINT16)_tcstoul(p, NULL, 10);
   }



We understand from documentation and from forums to use SSH.Command() -- Is anyone using the alternative port feature? I assume it should be used in DCI collection for Data Parameter (as an SSH origin) with this example:

SSH.Command(100.64.45.218:1916,tiger,lemur,"cat /tmp/run/stats/wireless.json")

Is this accurate? a packet trace reveals port 22 is used :-\


... The command above works for ./bin/nxget but not for DCI collection. For that, i simply enter the command "cat /tmp/run..." but nxms connects to port 22

#4
hello,

the dmg file for 2.2.4 is 404, but i found the .zip in the 2.2/ directory

launching the netxms console works, but the ability to enter user/password or server IP is not possible.

it's unfortunate that os x has these tendencies to fail horribly, yet still holds the 'it just works' motto... when unicode cause kernel panics.. sigh... that mottos falls in to the trash very quickly re: user root...

Any update as to how to go about fixing this? currently depending on the NetXMS+Jetty (Web) application, which is totally rad...but the features I have in 'Tools->custom->Thing' is not available.

Should I try to have Mac OS users test with ./nxmc -auto -login=someUser -password=somePass -server=someServ.er

I do not know how to launch ncmx from Apple, because it's a directory.. may be somebody could help? or has found a solution?
#5
Hello,

Code:


import java.lang.Integer
import time
import operator
from datetime import datetime as dt

def main():
    date           = dt.strftime(dt.now(), '%Y-%m-%d')
    hourOffset     = dt.now().hour
    eventLog       = session.openServerLog("EventLog")
    severityFilter = ColumnFilter(java.lang.Integer(ColumnFilter.GREATER),2)
    timeFilter     = ColumnFilter(long(time.time()-86400),long(time.time()))
    logFilter      = LogFilter()

    logFilter.setColumnFilter("event_severity",severityFilter)
    logFilter.setColumnFilter("event_timestamp",timeFilter)
    eventLog.query(logFilter)

    eventTable = eventLog.retrieveData(0,500,True)
    print(str(eventTable))

main()



Output / Error


>>> severityFilter = ColumnFilter(java.lang.Integer(ColumnFilter.GREATER),2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'org.netxms.client.log.ColumnFilter' has no attribute 'GREATER'

ColumnFilter Vars

>>> print(str(vars(ColumnFilter)))
{
    '__init__': <java constructor org.netxms.client.log.ColumnFilter 0x2>,
    'numericValue': <beanProperty numericValue type: long 0x3>,
    'getRangeTo': <java function getRangeTo 0x4>,
    'rangeTo': <beanProperty rangeTo type: long 0x5>,
    'setLike': <java function setLike 0x6>,
    'getType': <java function getType 0x7>,
    'operation': <beanProperty operation type: org.netxms.client.constants.ColumnFilterSetOperation 0x8>,
    'setRangeTo': <java function setRangeTo 0x9>,
    'addSubFilter': <java function addSubFilter 0xa>,
    'getSubFilters': <java function getSubFilters 0xb>,
    'getLike': <java function getLike 0xc>,
    'getNumericValue': <java function getNumericValue 0xd>,
    'subFilters': <beanProperty subFilters type: java.util.Set 0xe>,
    'negated': <beanProperty negated type: boolean 0xf>,
    'isNegated': <java function isNegated 0x10>,
    'getOperation': <java function getOperation 0x11>,
    'type': <beanProperty type type: org.netxms.client.constants.ColumnFilterType 0x12>,
    'getRangeFrom': <java function getRangeFrom 0x13>,
    'setOperation': <java function setOperation 0x14>,
    'setRangeFrom': <java function setRangeFrom 0x15>,
    'setNegated': <java function setNegated 0x16>,
    'setNumericValue': <java function setNumericValue 0x17>,
    'rangeFrom': <beanProperty rangeFrom type: long 0x18>,
    'like': <beanProperty like type: java.lang.String 0x19>
}