Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Nxshell no longer working

Nxshell no longer working

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 9.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    G
    gmonk63
    wrote on last edited by
    #1

    Where there any changes to the nxshell ?  Im using 2.2.16  and all my old scripts no longer work. I even tried most of the examples in the wiki and they no longer work either.  This is the error i receive

    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.python.core.PySystemState (file:/home/gmonk/Development/Python/Netxms%20Scripts/nxshell-2.2.16.jar) to method java.io.Console.encoding()
    WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    node_id,interface_id,name,ip,mask
    Traceback (most recent call last):
      File "iftest.py", line 8, in <module>
        allInterfaces = node.getAllChilds(objects.GenericObject.OBJECT_INTERFACE)
    AttributeError: 'org.netxms.client.objects.Node' object has no attribute 'getAllChilds'

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Check what Java version you are using. It could be that Jython is not compatible with newer versions.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • G
        G
        gmonk63
        wrote on last edited by
        #3

        I tried directly on the server which has version Java Version 1.8.0  and still nothing.  However this scripts works just fine on both server and separate client.

        import sys
        from fnmatch import fnmatch

        if len(sys.argv) > 1:
          mask = sys.argv[1]
        else:
          mask = ".1.3.6.1.*"

        nodes = filter(lambda x: isinstance(x, objects.Node), s.getAllObjects())
        matched = filter(lambda x: fnmatch(x.getSnmpOID(), mask), nodes)
        for node in matched:
          print node.getObjectId(), node.getObjectName(), node.getPrimaryIP().getHostAddress()

        any script with getAllChilds method does not work 

        something has definitely changed the older api shows getChilds() method the latests does not  and I cant even find the documentation for my version 2.2.16

        Link Preview Image
        Page not found — NetXMS

        The page you were looking for does not exist.

        favicon

        NetXMS (www.netxms.org)

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Sorry, I was distracted by reflective access warnings and didn't notice actual method name. It was renamed to getAllChildren. We will upload javadocs for 2.2.17 and 3.0 in next few days.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • G
            G
            gmonk63
            wrote on last edited by
            #5

            Working now ... Thank you

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups