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

Losing "Free Port" information after Switch Restart #613

Closed
cRAYonhere opened this issue Jul 2, 2019 · 4 comments
Closed

Losing "Free Port" information after Switch Restart #613

cRAYonhere opened this issue Jul 2, 2019 · 4 comments

Comments

@cRAYonhere
Copy link

cRAYonhere commented Jul 2, 2019

Expected Behavior

After switch reboot, we would like to have the ability to see when was the last time a node was seen on the port.

Current Behavior

If the switch reboots, the "Free Port" information is lost.

Possible Solution

Steps to Reproduce (for bugs)

Context

Due to switch upgrades and power failures switches are rebooted and all the data pertaining to "Free Port" is lost. This creates problems later when we try to weed out un-used ports.

Your Environment

  • Netdisco version used:
  • SNMP::Info version used:

Device information

@inphobia
Copy link
Member

inphobia commented Aug 6, 2019

i'm not quite sure what to make of this, for me this works just fine. here's an access point i used as an example:

image

image

as you can see both archived clients (the one with the book icon in front of them) as active clients are shown; reboots didn't make a difference.

relevant config i'm using:

nbtstat_no: "any"
node_freshness: 1500
expire_jobs: 5
#expire_nodes: 3
expire_nodes_archive: 75
devport_vlan_limit: 250

schedule:
  discoverall:
    when: '5 3,7,11,15,19,23 * * *'
  macwalk:
    when:
      min: 55
      hour: '*/4'
  arpwalk:
    when:
      min: 5
      hour: '*/4'
  nbtwalk: null
  expire:
    when: '30 23 * * *'

@cRAYonhere
Copy link
Author

Hey, thanks for your reply. We use the "Port Free" property to identify which ports have not been used in the past 3-6 months. Apologies for not being descriptive enough with my issue. I am currently out of office. I will test with the options selected in your screenshot to see if it fulfils our requirements and get back to you with screenshots of what exactly we are seeing and what we expect to see. Thanks!

@cRAYonhere
Copy link
Author

cRAYonhere commented Aug 12, 2019

I believe there is a misunderstanding of our problem, hope this makes it clear.
The first picture shows that the following 9 ports are free for the last 5 days
5days_netDisco

The switch was down 6 days ago

So when I query for ports that were in-active(Port Free) for more than 6 days. I don't get any results.
7days_netDisco

I wanted to have a way by which I could retain and access data even after the switch goes down.

Reason: When we weed out un-used ports we remove ports that haven't been in use for 6 months or more. But due to switch upgrades and unscheduled switch reboot, we lose this information.

@ollyg
Copy link
Member

ollyg commented Aug 23, 2019

Hi @cRAYonhere I have implemented a change to the free ports displayed in both the Port Utilisation report and also the Device Ports page, which should overcome this issue with switch reboot. When we issue a new release I would be grateful if you could upgrade and let us know how it goes for you. Many thanks!

@ollyg ollyg closed this as completed Aug 23, 2019
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

3 participants