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

Store i_speed_admin in database #650

Closed
rc9000 opened this issue Sep 16, 2019 · 3 comments
Closed

Store i_speed_admin in database #650

rc9000 opened this issue Sep 16, 2019 · 3 comments
Assignees
Labels

Comments

@rc9000
Copy link
Member

rc9000 commented Sep 16, 2019

For many classes, SNMP::Info offers i_speed_admin which is the admin setting of the interface speed. Example (using Layer3::C6500::i_speed_admin):

 netdisco-do show -d xxx.yyy.203.143 -e i_speed_admin
[24177] 2019-09-16 09:18:03  info App::Netdisco version 2.042010 loaded.
[24177] 2019-09-16 09:18:04  info show: [xxx.yyy.203.143]/i_speed_admin started at Mon Sep 16 11:18:04 2019
 {
    ...,
    10121   "auto",
    10125   "auto",
    10126   "auto",
    10127   "auto",
    10128   "auto",
    10201   "10 Gbps",
    10202   "10 Gbps"
}

Unfortunately this is not currently stored in Netdisco. Would you guys be open to adding it? And if yes, should we put it into DevicePort or DevicePortProperties?

Cheers
Christian

@ollyg
Copy link
Member

ollyg commented Sep 16, 2019 via email

@rc9000 rc9000 self-assigned this Sep 16, 2019
@rc9000
Copy link
Member Author

rc9000 commented Sep 16, 2019

Ok great, I'll add that soon-ish.

rc9000 added a commit that referenced this issue Sep 19, 2019
@rc9000
Copy link
Member Author

rc9000 commented Sep 19, 2019

Here's a quick test with 100 random devices from our network, mostly Cisco with some ex-Alu and Checkpoint. Seems to work fine, coverage around 60%:

select speed_admin, count(*) from device_port_properties 
where ip in (select ip from device where last_discover > '2019-09-19 14:40'  ) 
group by speed_admin order by 1;

 speed_admin | count 
-------------+-------
 1.0 Gbps    |    86
 10 Gbps     |    94
 10 Mbps     |     6
 100 Mbps    |    19
 auto        |  2033
             |  1369

ollyg pushed a commit that referenced this issue Sep 23, 2019
* Add speed_admin to device ports tab (#650)

* move from device_port_properties to device_port table, and tidy up
@ollyg ollyg closed this as completed Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants