Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

Number of connected ports

Hello,

I am working with couples of 3750 switches in different location, all centralized on a backbone 4506. I am trying to find a system to see every hour how many connected ports are in connected status. Any idea ?

So far I had the idea to schedule a show inter status every hours redirected to an excel file, then from there having another excel file who will look in the first one and count the number of connected in it every hour. But I have trouble figuring how to do this part automatically.

Thank you for your help.

JB

3 REPLIES
Cisco Employee

Re: Number of connected ports

Hi JB:

Knowing what tools you have at your disposal would help.  Since the 3750 doesn't support EEM, getting the device to do something on its own isn't going to be possible.

The IF-MIB has the ifOperStatus object:  you could write a script that would walk the ifOperStatus, grep out the downs or grep to count the ups and do something with that.  That assumes that you have a Unix/Linux environment available, have Net-SNMP or something similar, and SNMP enabled on your switches.

If you wanted to stick with your "telnet in and run 'show int status | i Connected' and count" idea, you could use the expect package in a Unix/Linux distribution to script your logins, then grep -c to come up with a count.

There are a number of ways to approach this.  What do you have available to work with?

Sincerely,

Rollin Kibbe

Network Management Systems Team

New Member

Re: Number of connected ports

Hi and thanks for your answer,

For my issue, I am working around. What I am doing at the moment is redirecting the output of show inter status to a CSV file on a windows machine every hour. Then on the machine I copy and rename that csv file in a different folder with the timestamp in the name. And I am working at the moment on an excel file to count and collect the information on those csv files.

I think that will be the easiest way then as I am not using tools doing that kind of job.

Thanks anyway.

JB

Cisco Employee

Re: Number of connected ports

Hi JB:

There is a port of Net-SNMP for Windows available at http://net-snmp.sourceforge.net/ if you decide to try a different approach.

Sincerely,

Rollin Kibbe

Network Management Systems Team

292
Views
0
Helpful
3
Replies
CreatePlease to create content