Management

 View Only
last person joined: 15 days ago 

Ask questions and share experiences with Junos Space and network management.
  • 1.  SNMP doesn't work on Junos Space

    Posted 10-17-2023 10:19

    Hi all!

    I'm trying to configure snmpv2 on Junos Space and Juniper EX4300 switch but i receive this error: "Device failed to return the system information".

    immagine

    This is the configuration applied:

    admin@SOTTO# show snmp
    location XXXX;
    client-list XXXX;
    community public {
        authorization read-write;
    }
    trap-group global;

    set snmp location XXXX
    set snmp client-list XXXX
    set snmp community public authorization read-write
    set snmp trap-group global

    With termina monitor on the only message that i receive when i Run the discovery on Junos space is the following

    admin@SOPRA# Oct 17 09:18:18  SOPRA sshd[23318]: Accepted password for admin from 172.16.70.20 port 44415 ssh2 (.20 is Junos space)

    Basically it seems that the snmp is able to make the request, but for some reason the switch does not return all the information. In the first phase the discovery occurs successfully, then the error of the first screen is released.

    On the log of snmpd I get this:

    admin@SOPRA> show log Oct 17 13:08:25  SOPRA mgd[19602]: UI_DBASE_LOGOUT_EVENT: User 'admin' exiting configuration mo                                                                                                                        de
    snmpd
    Oct 17 13:06:12.657931 read_lmld_config: nothing's configured, clear config
    Oct 17 13:06:12.658077 read_subagent_config: nothing's configured, clear config
    Oct 17 13:06:12.658137 read_interface_config: nothing's configured, clear config
    Oct 17 13:06:12.658153 read_engine_id_config: nothing's configured, clear config
    Oct 17 13:06:12.658164 engine_id_set: config check: 0, restart: 0, engine_id_type:1
    Oct 17 13:06:12.658189 engine_id_sys_ifdname: The management interface name is: em0
    Oct 17 13:06:12.658247 engine_id_set: master-only flag NOT set.
    Oct 17 13:06:12.658263 engine_id_set: form_eid called. boot: 2 full engine id len: 9,eng-id:4c0a0080:4610ac01:ffffff0                                                                                                                        1:0
    Oct 17 13:06:12.658276 engine_id_set: engine id changed:0, inited:1, boot: 2 full engine id len: 9,full engine-id:4c0                                                                                                                        a0080:4610ac01:1:0, engine_id_ptr:4c0a0080:4610ac01:ffffff01:0
    Oct 17 13:06:12.658294 read_default_config: no_default_config:0
    Oct 17 13:06:12.658307 read_view_config: no change, skip config
    Oct 17 13:06:12.658324 read_clist_policy_config: nothing's configured, clear config
    Oct 17 13:06:12.658347 read_clist_snmp_config: no change, skip config
    Oct 17 13:06:12.658362 read_routing_inst_option_config: no change, skip config
    Oct 17 13:06:12.658382 snmpd_rt_lr_changed: no change, skip config
    Oct 17 13:06:12.658394 read_community_config: no change, skip config
    Oct 17 13:06:12.658406 read_access_config: nothing's configured, clear config
    Oct 17 13:06:12.658418 jnx_context_delete_entry: deleted context: , lrid = 255, rtid = 65535, creator = 1, refcnt = 0
    Oct 17 13:06:12.658437 jnx_context_add: added/updated context: , lrid = 255, rtid = 65535, creator = 1, pid = 0, refc                                                                                                                        nt = 1
    Oct 17 13:06:12.658459 snmpd_rt_lr_changed: no change, skip config
    Oct 17 13:06:12.658470 read_v3_config: no change, skip config
    Oct 17 13:06:12.658482 read_proxy_config: nothing's configured, clear config
    Oct 17 13:06:12.658506 snmpd_rt_lr_changed: no change, skip config
    Oct 17 13:06:12.658517 read_trap_config: no change to config, but updating trap receivers list
    Oct 17 13:06:12.658620 read_trap_options_config: nothing's configured, clear config
    Oct 17 13:06:12.658636 trap_queue_set_config: setting throttle control to throttling
    Oct 17 13:06:12.658647 trap_queue_set_config: setting throttle threshold: 500, interval: 5, qsize: 20480
    Oct 17 13:06:12.658658 trap_queue_set_defaults: Default max total traps allowed per queue is 20480.
    Oct 17 13:06:12.658673 read_rmon_config: nothing's configured, clear config
    Oct 17 13:06:12.659193 model_table_destroy: parameter list
    Oct 17 13:06:12.659212 alarm_model_config_read: alarm-mgmt is not configured
    Oct 17 13:06:12.659232 read_snmp_scripts_config: nothing's configured, clear config
    Oct 17 13:06:12.659245 read_snmp_shell_scripts_config: nothing's configured, clear config
    Oct 17 13:06:12.659258 read_snmp_max_outstanding_req_pdu_config: nothing's configured, clear config, setting to defau                                                                                                                        lt: 500
    Oct 17 13:06:12.659273 read_flow_tap_snmp_config: nothing's configured, clear config
    Oct 17 13:06:12.659290 read_snmp_use_nondefault_mms_config: nothing's configured, clear config, setting to use defaul                                                                                                                        t maxMsgSize
    Oct 17 13:06:12.660116 if_active_update: .local..1
    Oct 17 13:06:12.660165 if_active_update: .local..2
    Oct 17 13:06:12.660205 if_active_update: bme0.0
    Oct 17 13:06:12.660241 if_active_update: em2.32768
    Oct 17 13:06:12.660280 if_active_update: em0.0
    Oct 17 13:06:12.660418 if_active_update: vme.0
    Oct 17 13:06:12.660488 if_active_update: irb.0
    Oct 17 13:06:12.660531 if_active_update: lo0.16385
    Oct 17 13:06:12.660567 if_active_update: lo0.16384
    Oct 17 13:06:12.660601 if_active_update: .local..3
    Oct 17 13:06:12.660643 if_active_update: jsrv.1
    Oct 17 13:06:12.660679 if_active_update: .local..4
    Oct 17 13:06:12.660733 if_active_update: ae0.0
    Oct 17 13:06:12.660772 if_active_update: .local..5
    Oct 17 13:06:12.660804 if_active_update: .local..6
    Oct 17 13:06:12.660840 if_active_update: pfh-0/0/0.16383
    Oct 17 13:06:12.660875 if_active_update: pfh-0/0/0.16384
    Oct 17 13:06:12.660910 if_active_update: pfe-0/0/0.16383
    Oct 17 13:06:12.660958 if_active_update: .local..8
    Oct 17 13:06:12.661011 if_active_update: mge-0/0/24.0
    Oct 17 13:06:12.661052 if_active_update: mge-0/0/25.0
    Oct 17 13:06:12.661091 if_active_update: mge-0/0/26.0
    Oct 17 13:06:12.661128 if_active_update: mge-0/0/27.0
    Oct 17 13:06:12.661165 if_active_update: mge-0/0/28.0
    Oct 17 13:06:12.661202 if_active_update: mge-0/0/29.0
    Oct 17 13:06:12.661240 if_active_update: mge-0/0/30.0
    Oct 17 13:06:12.661276 if_active_update: mge-0/0/31.0
    Oct 17 13:06:12.661313 if_active_update: mge-0/0/32.0
    Oct 17 13:06:12.661360 if_active_update: mge-0/0/33.0
    Oct 17 13:06:12.661399 if_active_update: mge-0/0/34.0
    Oct 17 13:06:12.661437 if_active_update: mge-0/0/35.0
    Oct 17 13:06:12.661473 if_active_update: mge-0/0/36.0
    Oct 17 13:06:12.661510 if_active_update: mge-0/0/37.0
    Oct 17 13:06:12.661546 if_active_update: mge-0/0/38.0
    Oct 17 13:06:12.661587 if_active_update: mge-0/0/39.0
    Oct 17 13:06:12.661625 if_active_update: mge-0/0/40.0
    Oct 17 13:06:12.661663 if_active_update: mge-0/0/41.0
    Oct 17 13:06:12.661699 if_active_update: mge-0/0/42.0
    Oct 17 13:06:12.661736 if_active_update: mge-0/0/43.0
    Oct 17 13:06:12.661772 if_active_update: mge-0/0/44.0
    Oct 17 13:06:12.661810 if_active_update: mge-0/0/45.0
    Oct 17 13:06:12.661847 if_active_update: mge-0/0/46.0
    Oct 17 13:06:12.661883 if_active_update: mge-0/0/47.0
    Oct 17 13:06:12.661930 if_active_update: ge-0/0/0.0
    Oct 17 13:06:12.661969 if_active_update: ge-0/0/1.0
    Oct 17 13:06:12.662007 if_active_update: ge-0/0/2.0
    Oct 17 13:06:12.662044 if_active_update: ge-0/0/3.0
    Oct 17 13:06:12.662085 if_active_update: ge-0/0/4.0
    Oct 17 13:06:12.662122 if_active_update: ge-0/0/5.0
    Oct 17 13:06:12.662157 if_active_update: ge-0/0/6.0
    Oct 17 13:06:12.662196 if_active_update: ge-0/0/7.0
    Oct 17 13:06:12.662233 if_active_update: ge-0/0/8.0
    Oct 17 13:06:12.662270 if_active_update: ge-0/0/9.0
    Oct 17 13:06:12.662307 if_active_update: ge-0/0/10.0
    Oct 17 13:06:12.662353 if_active_update: ge-0/0/11.0
    Oct 17 13:06:12.662392 if_active_update: ge-0/0/12.0
    Oct 17 13:06:12.662429 if_active_update: ge-0/0/13.0
    Oct 17 13:06:12.662466 if_active_update: ge-0/0/14.0
    Oct 17 13:06:12.662503 if_active_update: ge-0/0/15.0
    Oct 17 13:06:12.662541 if_active_update: ge-0/0/16.0
    Oct 17 13:06:12.662577 if_active_update: ge-0/0/17.0
    Oct 17 13:06:12.662613 if_active_update: ge-0/0/18.0
    Oct 17 13:06:12.662650 if_active_update: ge-0/0/19.0
    Oct 17 13:06:12.662687 if_active_update: ge-0/0/20.0
    Oct 17 13:06:12.662725 if_active_update: ge-0/0/21.0
    Oct 17 13:06:12.662761 if_active_update: ge-0/0/22.0
    Oct 17 13:06:12.662800 if_active_update: ge-0/0/23.0
    Oct 17 13:06:12.662847 if_active_update: .local..36735
    Oct 17 13:06:12.662884 if_active_update: .local..36736
    Oct 17 13:06:29.718890 trap_dq_send_traps: processing queues, memcnt = 5
    Oct 17 13:06:59.719773 trap_dq_send_traps: processing queues, memcnt = 5
    Oct 17 13:07:06.483927 snmpd[45f505f4] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Oct 17 13:07:06.483956 snmpd[45f505f4] >>> Get-Request
    Oct 17 13:07:06.483966 snmpd[45f505f4] >>>  Source:      172.16.70.20
    Oct 17 13:07:06.483974 snmpd[45f505f4] >>>  Destination: 172.16.70.1
    Oct 17 13:07:06.483981 snmpd[45f505f4] >>>  Version:     SNMPv2
    Oct 17 13:07:06.483988 snmpd[45f505f4] >>>  Request_id:  0x45f505f4
    Oct 17 13:07:06.484010 snmpd[45f505f4] >>>  Community:   public
    Oct 17 13:07:06.484018 snmpd[45f505f4] >>>  Error:       status=0 / vb_index=0
    Oct 17 13:07:06.484053 snmpd[45f505f4] >>>   OID  : sysDescr.0
    Oct 17 13:07:06.484065 snmpd[45f505f4] >>>   OID  : sysObjectID.0
    Oct 17 13:07:06.484076 snmpd[45f505f4] >>>   OID  : sysName.0
    Oct 17 13:07:06.484094 snmpd[45f505f4] >>>   OID  : jnxBoxSerialNo.0
    Oct 17 13:07:06.484100 snmpd[45f505f4] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Oct 17 13:07:06.484479 AgentX subagent: /var/run/chassisd-44, PDU request id: 78790, trans id: 78789, rsp(us): 294
    Oct 17 13:07:06.484519 snmpd[45f505f4]  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Oct 17 13:07:06.484532 snmpd[45f505f4]  <<< Get-Response
    Oct 17 13:07:06.484546 snmpd[45f505f4]  <<<  Source:      172.16.70.1
    Oct 17 13:07:06.484558 snmpd[45f505f4]  <<<  Destination: 172.16.70.20
    Oct 17 13:07:06.484581 snmpd[45f505f4]  <<<  Version:     SNMPv2
    Oct 17 13:07:06.484592 snmpd[45f505f4]  <<<  Request_id:  0x45f505f4
    Oct 17 13:07:06.484603 snmpd[45f505f4]  <<<  Community:   public
    Oct 17 13:07:06.484610 snmpd[45f505f4]  <<<  Error:       status=0 / vb_index=0
    Oct 17 13:07:06.484618 snmpd[45f505f4]  <<<
    Oct 17 13:07:06.484631 snmpd[45f505f4]  <<<   OID  : sysDescr.0
    Oct 17 13:07:06.484639 snmpd[45f505f4]  <<<   type : OctetString
    Oct 17 13:07:06.484674 snmpd[45f505f4]  <<<   value: "Juniper Networks, Inc. ex4300-48
    Oct 17 13:07:06.484683 snmpd[45f505f4]  <<<          mp Ethernet Switch, kernel JUNOS
    Oct 17 13:07:06.484690 snmpd[45f505f4]  <<<           23.1R1.8, Build date: 2023-03-1
    Oct 17 13:07:06.484698 snmpd[45f505f4]  <<<          9 06:07:33 UTC Copyright (c) 199
    Oct 17 13:07:06.484705 snmpd[45f505f4]  <<<          6-2023 Juniper Networks, Inc."
    Oct 17 13:07:06.484715 snmpd[45f505f4]  <<<   HEX  : 4a 75 6e 69  70 65 72 20
    Oct 17 13:07:06.484725 snmpd[45f505f4]  <<<          4e 65 74 77  6f 72 6b 73
    Oct 17 13:07:06.484735 snmpd[45f505f4]  <<<          2c 20 49 6e  63 2e 20 65
    Oct 17 13:07:06.484744 snmpd[45f505f4]  <<<          78 34 33 30  30 2d 34 38
    Oct 17 13:07:06.484754 snmpd[45f505f4]  <<<          6d 70 20 45  74 68 65 72
    Oct 17 13:07:06.484763 snmpd[45f505f4]  <<<          6e 65 74 20  53 77 69 74
    Oct 17 13:07:06.484773 snmpd[45f505f4]  <<<          63 68 2c 20  6b 65 72 6e
    Oct 17 13:07:06.484782 snmpd[45f505f4]  <<<          65 6c 20 4a  55 4e 4f 53
    Oct 17 13:07:06.484792 snmpd[45f505f4]  <<<          20 32 33 2e  31 52 31 2e
    Oct 17 13:07:06.484801 snmpd[45f505f4]  <<<          38 2c 20 42  75 69 6c 64
    Oct 17 13:07:06.484811 snmpd[45f505f4]  <<<          20 64 61 74  65 3a 20 32
    Oct 17 13:07:06.484820 snmpd[45f505f4]  <<<          30 32 33 2d  30 33 2d 31
    Oct 17 13:07:06.484830 snmpd[45f505f4]  <<<          39 20 30 36  3a 30 37 3a
    Oct 17 13:07:06.484839 snmpd[45f505f4]  <<<          33 33 20 55  54 43 20 43
    Oct 17 13:07:06.484849 snmpd[45f505f4]  <<<          6f 70 79 72  69 67 68 74
    Oct 17 13:07:06.484858 snmpd[45f505f4]  <<<          20 28 63 29  20 31 39 39
    Oct 17 13:07:06.484868 snmpd[45f505f4]  <<<          36 2d 32 30  32 33 20 4a
    Oct 17 13:07:06.484877 snmpd[45f505f4]  <<<          75 6e 69 70  65 72 20 4e
    Oct 17 13:07:06.484887 snmpd[45f505f4]  <<<          65 74 77 6f  72 6b 73 2c
    Oct 17 13:07:06.484895 snmpd[45f505f4]  <<<          20 49 6e 63  2e
    Oct 17 13:07:06.484903 snmpd[45f505f4]  <<<
    Oct 17 13:07:06.484913 snmpd[45f505f4]  <<<   OID  : sysObjectID.0
    Oct 17 13:07:06.484928 snmpd[45f505f4]  <<<   type : Object
    Oct 17 13:07:06.484943 snmpd[45f505f4]  <<<   value: jnxProductEX4300port48MP
    Oct 17 13:07:06.484951 snmpd[45f505f4]  <<<
    Oct 17 13:07:06.484960 snmpd[45f505f4]  <<<   OID  : sysName.0
    Oct 17 13:07:06.484968 snmpd[45f505f4]  <<<   type : OctetString
    Oct 17 13:07:06.484976 snmpd[45f505f4]  <<<   value: "SOPRA"
    Oct 17 13:07:06.484985 snmpd[45f505f4]  <<<   HEX  : 53 4f 50 52  41
    Oct 17 13:07:06.484992 snmpd[45f505f4]  <<<
    Oct 17 13:07:06.485003 snmpd[45f505f4]  <<<   OID  : jnxBoxSerialNo.0
    Oct 17 13:07:06.485011 snmpd[45f505f4]  <<<   type : OctetString
    Oct 17 13:07:06.485019 snmpd[45f505f4]  <<<   value: "XR3622080356"
    Oct 17 13:07:06.485028 snmpd[45f505f4]  <<<   HEX  : 58 52 33 36  32 32 30 38
    Oct 17 13:07:06.485037 snmpd[45f505f4]  <<<          30 33 35 36
    Oct 17 13:07:06.485044 snmpd[45f505f4]  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Oct 17 13:07:06.485108 SNMP Target: 172.16.70.20, PDU request id: 1173685748, rsp(us): 588
    Oct 17 13:07:29.724848 trap_dq_send_traps: processing queues, memcnt = 5
    Oct 17 13:07:59.728641 trap_dq_send_traps: processing queues, memcnt = 5
    Oct 17 13:08:29.731322 trap_dq_send_traps: processing queues, memcnt = 5

    Any suggest?



    ------------------------------
    ANDREA BERTUCCI
    ------------------------------


  • 2.  RE: SNMP doesn't work on Junos Space

     
    Posted 10-17-2023 10:22

    Hi,

    can you send 'show configuration system services' ?

    -PL



    ------------------------------
    Pravin Lokhande
    ------------------------------



  • 3.  RE: SNMP doesn't work on Junos Space

    Posted 10-17-2023 10:28
    admin@SOPRA> show configuration system services
    ssh {
        root-login allow;
        protocol-version v2;
        port 22;
    }
    ftp;
    telnet {
        connection-limit 10;
        rate-limit 4;
    }
    netconf {
        ssh;
        rfc-compliant;
        yang-compliant;
    }
    web-management {
        http;
    }
     
    {master:0}



    ------------------------------
    ANDREA BERTUCCI
    ------------------------------



  • 4.  RE: SNMP doesn't work on Junos Space

     
    Posted 10-17-2023 10:38

    Please delete below and run discovery again..

    delete system services netconf rfc-compliant

    delete system services netconf yang-compliant

     This is not supported by Space.


    ------------------------------
    Pravin Lokhande
    ------------------------------



  • 5.  RE: SNMP doesn't work on Junos Space

    Posted 10-17-2023 11:50

    It works! You saved my day!
    Thank you!



    ------------------------------
    ANDREA BERTUCCI
    ------------------------------



  • 6.  RE: SNMP doesn't work on Junos Space

    Posted 10-17-2023 10:30


    The service snmp isn't listed in the options.

    But the discovery of the device works fine:



    But at the end of the discovery i get from Junos space the following message: "Device failed to return the system information"



    ------------------------------
    ANDREA BERTUCCI
    ------------------------------