Skip to content

Minor changes to parser and troubleshooting guide#105

Open
pythonmagic wants to merge 8 commits intoJuniper:masterfrom
pythonmagic:master
Open

Minor changes to parser and troubleshooting guide#105
pythonmagic wants to merge 8 commits intoJuniper:masterfrom
pythonmagic:master

Conversation

@pythonmagic
Copy link

Changes:

1)  Show BGP summary parser - w/o IP address
2)  Additional Troubleshooting for Pyez data

The IP address is not required .This fixed the missing data in DB and Dashboard
Added additional troubleshooting step for Pyez related issue and/or error.
@dgarros
Copy link
Contributor

dgarros commented Dec 4, 2016

@pythonmagic
Thanks a lot for this pull request, it's great to get external contributions.

I agree the BGP parser needs to be clean-up, it should not have an IP address define in the query.
I see few things that needs to be updated before we can merge this request. I'll provide my comments inline in the code

Thanks
Damien

method: xpath
xpath: //bgp-peer[peer-address='10.255.0.6']/output-messages
variable-name: $host.protocols.bgp.summary.10.255.0.6.output-messages No newline at end of file
xpath: //bgp-peer[peer-address=$key]/bgp-rib/received-prefix-count
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's great to have fixed bgp-rib/received-prefix-count but all the other variables have been deleted in the process.

Please can you add back all the variables with the same construct as bgp-rib/received-prefix-count


#3 : Check log within the container**

./docker.cli.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./docker.cli.sh is deprecated and will be remove soon, please can you change that with

make cli

.. NOTE::
Destination tables will vary depending of the incoming traffic
- For MX > jnpr.jvision
- For QFX5100/EX4300 > jnpr.analyticsd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is not applicable as it for the data collection Agent w/ Netconf, the name of the measurements will be different

#DEBUG 10


./docker.cli.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, please replace with

make cli

Fixing the bgp parser to be used with IP address.
Added back few missed output element.
Modification made to correct errors.
@pythonmagic
Copy link
Author

Made the changes to bgp parser and troubleshooting doc.

Updated show system-resource-monitor parser to collect data from all slot and also all the pfe on any give slot.
For Debugging Parser related issue troubleshooting step has been added to document for manually runing Data collection script withing the container.The console output is extremely helpful for understating and fixing the parser issue.
@dgarros
Copy link
Contributor

dgarros commented Dec 14, 2016

Hi @pythonmagic

Strangely the tests are failing now, I noticed that you have a mistake on the file show-system-resource-monitor-summary.parser.yaml, at the beginning, you remove the p or parser.

Please could you try to add it back to see if this help ?

Also, I'm not sure to understand the changes in show-system-resource-monitor-summary.parser.yaml, please could you explain what you are trying change in this file.

thanks
Damien

Hi Damien,

Fixed the typo in line one and added "p" to "parser"

i had to change the parser since the older version did not collect all the required information and only after making below changes was i able to see the data been populated in influxdb.

Changes:
1) resource-monitor-summary-fpc-information-summary -- added "fpc" in middle 

15.x seem to have "resource-monitor-summary-information-summary"
16.x has "resource-monitor-summary-fpc-information-summary"

2) 16.x the CLI and XML output has been changed . Added extra line for extracting data from all PFE. (example : MPC 16x10 has max of 4 PFE) 

---------------
16.2 Output:
---------------
Resource Usage Summary
Throttle                  : Enabled
Heap Mem Threshold        : 70  %
IFL Counter Threshold     : 95  %
Filter Counter Threshold  : 95  %
Expansion Threshold       : 95  %
MFS threshold             : 70  %        Used : 0
Slot # 0
     Client allowed   : Yes
     Service allowed  : Yes

     Client denied    : 0
     Service denied   : 0
     Heap memory used : 315679536       In % : 17

                 Filter memory        IFL memory        Expansion memory
      PFE #       used  |   %         used  |   %          used  |   %
          0   19681024     39       137272      0             0      0
          1   19681024     39       137192      0             0      0
          2   19681024     39       137112      0             0      0
          3   19681024     39       137112      0             0      0 

--------------
15.x Output
-------------

juniper@PE36> show system resource-monitor summary
Resource Usage Summary

Throttle                  : Enabled
Heap Mem Threshold        : 70  %
IFL Counter Threshold     : 70  %
Filter Counter Threshold  : 70  %
Expansion Threshold       : 95  %
MFS threshold             : 70  %        Used : 0

                 Heap                 Filter mem             IFL mem           Expansion                  Client      Client session         service      service session
  Slot #         used    %    PFE #         used    %           used    %       mem used    %            session        denied count         session      denied count

       4    221212848   11        0        86000    0          58016    0          67584    0             Allowed                  0          Allowed
0
       5    193658008   10        0        78432    0          51664    0         372224    0             Allowed                  0          Allowed
0
       7    195612760   10        0        78016    0          51248    0          75776    0             Allowed                  0          Allowed
0
       9    194490648   10        0        85888    0          59120    0         109568    0             Allowed                  0          Allowed
0
      10    250955920   13        0        79040    0          51840    0         153600    0
                                  1        79824    0          52464    0        3102208    2
                                  2        87152    0          59792    0        3113472    2
                                  3        85920    0          59152    0         153088    0             Allowed                  0          Allowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants