Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security.spu/check-spu-performance-netconf and check-spu-performance-srx-cluster-netconf not compatible to Junos 19.X and above #630

Open
anaaman opened this issue May 26, 2022 · 0 comments

Comments

@anaaman
Copy link

anaaman commented May 26, 2022

The current YAML for SPU monitoring for SA / Clustered SRX is:

MonitoringPerformanceSPUTable:
rpc: get-performance-spu-information
item: multi-routing-engine-item/performance-spu-information/
performance-spu-statistics
key:
- fpc-number
- pic-number
- parent::/parent::/re-name
view: PerformanceSPUView
PerformanceSPUView:
fields:
performance: performance-info

This is for Junos 15.X XML schema which is unsupported.

The SPU monitoring schema for Junos 19.X and 20.X has changed.
The current XML schema is:

    <multi-routing-engine-item>

        <re-name>node0</re-name>

        <performance-spu-information xmlns="http://xml.juniper.net/junos/20.4R0/junos-spu-mon">
            <performance-spu-statistics>
                <fpc-number>0</fpc-number>
                <pic-number>0</pic-number>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>0</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>1</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>2</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>3</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>0</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>4</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>5</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>1</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>6</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>7</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>8</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>9</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>0</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>10</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>11</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>0</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>12</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>13</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>14</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>15</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>0</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>16</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>17</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>0</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>18</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>19</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>20</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>21</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>0</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>22</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>23</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>0</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>24</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>25</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>26</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>27</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>0</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>28</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>29</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>0</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>30</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>31</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>32</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>33</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>1</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>34</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>35</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>0</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>36</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>37</performance-spu-info-sec-col2>
                    <performance-spu-info-usage-col2>0</performance-spu-info-usage-col2>
                    <performance-spu-info-sec-col3>38</performance-spu-info-sec-col3>
                    <performance-spu-info-usage-col3>0</performance-spu-info-usage-col3>
                    <performance-spu-info-sec-col4>39</performance-spu-info-sec-col4>
                    <performance-spu-info-usage-col4>0</performance-spu-info-usage-col4>
                    <performance-spu-info-sec-col5>40</performance-spu-info-sec-col5>
                    <performance-spu-info-usage-col5>0</performance-spu-info-usage-col5>
                    <performance-spu-info-sec-col6>41</performance-spu-info-sec-col6>
                    <performance-spu-info-usage-col6>0</performance-spu-info-usage-col6>
                </performance-spu-info>
                <performance-spu-info>
                    <performance-spu-info-sec-col1>42</performance-spu-info-sec-col1>
                    <performance-spu-info-usage-col1>0</performance-spu-info-usage-col1>
                    <performance-spu-info-sec-col2>43</performance-spu-info-sec-col2>
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

No branches or pull requests

1 participant