- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unused ports on a Cisco switch -
Operating System - HP-UX
1819904
Members
2134
Online
109607
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 01:38 AM
04-15-2006 01:38 AM
Unused ports on a Cisco switch -
I'm posting to this section of the forum because I always get quick and accurate responses for sysadmin stuff as well as light script stuff...
I'm in need of a script I can run against a switch or set of switches to report on ports that have been down for a period of 45 days or longer.
I've figured out how to do this manually by walking sysUptime of a switch, the ifOperStatus to find a port that is down then subtracting the sysUptime timeticks from the ifLastChange timeticks of an interface that is down then dividing that value by 8640000 to get the number of days a port has been down.
I found a perl script yesterday evening that might work but haven't been able to try it out yet because I'll need to get permission most importantly then get perl installed on a particular windows box along with the Net::SNMP module and I don't know if and when I can make that happen.
I'm hoping someone has already done this using shell so I can run it "as is" on any of several unix boxes I have access to.
Thanks for any responses.
I'm in need of a script I can run against a switch or set of switches to report on ports that have been down for a period of 45 days or longer.
I've figured out how to do this manually by walking sysUptime of a switch, the ifOperStatus to find a port that is down then subtracting the sysUptime timeticks from the ifLastChange timeticks of an interface that is down then dividing that value by 8640000 to get the number of days a port has been down.
I found a perl script yesterday evening that might work but haven't been able to try it out yet because I'll need to get permission most importantly then get perl installed on a particular windows box along with the Net::SNMP module and I don't know if and when I can make that happen.
I'm hoping someone has already done this using shell so I can run it "as is" on any of several unix boxes I have access to.
Thanks for any responses.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 06:38 AM
04-15-2006 06:38 AM
Re: Unused ports on a Cisco switch -
Rob,
Your perl script will probably run on a Unix box.
whence perl
change the script to get perl where the Unix box provides it. You will need to isntall the SNMP perl module and have permission from the switch to run this operations.
Cisco switches do have IP addresses and are normally configured to require authentication.
This really is the correct place for this query, if you intend to run your script on a HP-UX box. Otherwise, not so much.
Good Luck,
SEP
Your perl script will probably run on a Unix box.
whence perl
change the script to get perl where the Unix box provides it. You will need to isntall the SNMP perl module and have permission from the switch to run this operations.
Cisco switches do have IP addresses and are normally configured to require authentication.
This really is the correct place for this query, if you intend to run your script on a HP-UX box. Otherwise, not so much.
Good Luck,
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP