Hi there,
I was wondering if any of you could help me with an OID in which you can specify an US Index and it could give you back a list of CM connected to it.
I have been looking over some options, but I only saw OIDs that return a list of all CMs with its associate US interface. I only need the CMs of the US interface I specified.
E.g:
docsIfCmtsCmStatusUpChannelIfIndex = .1.3.6.1.2.1.10.127.1.3.3.1.5
docsIfCmtsCmStatusUpChannelIfIndex.2458504 7683 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458506 7684 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458507 7684 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458508 7684 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458509 7684 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458510 7684 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458511 7684 Integer
docsIfCmtsCmStatusUpChannelIfIndex.2458512 7684 Integer
...
Regards
I have used filters, but I want to limit my query to just ONE US interface without having to consult for every CM on a CMTS.
I have used something like this:
snmpwalk -c COMMUNITY -v 2c IP_ADDRESS 1.3.6.1.2.1.10.127.1.3.3.1.5 | grep ": 7705" | sed 's/.*\.\([0-9]*\) .*/\1/'
It returns just the CM index of the 7705 (which is the index of one US interface).
Regards
To my knowledge there is not such a way to do that, the most you can narrow it down is by docsCableMaclayer
if you walk 1.3.6.1.2.1.10.127.1.3.4.1.8. of docsCableMaclayer you will get a list of all the modems on that interface. depending on how many upstreams you have associated with each docsCableMaclayer you can greatly reduce the numbers of modems you must query.
So, I just need to save the list of CMs per Interface and then use docsIfCmtsCmStatusUpChannelIfIndex to find out the specific US interface they belong to.
That's what I was looking for, it'll reduce my execution time!!! Thank you kwesibrunee!
Are you making extra work for youself by using SNMP ?
I use SNMP for a fair bit of monitoring, but some stuff is easier to extract by coding a script that telnets to the CMTS, executes a command eg "show cable modem cable 5/0/0 upstream 0", and then logs out.
Gives you the answer in subsecond time, compared to lots of waiting when trying to poll such info via SNMP
Hi Michael,
You're right... I'm trying to get information via SNMP because I'm afraid of keep using xconnect commands.
We use some interfaces for our technicians, and this script I'm trying to make up is for them. I'm afraid to use xconnect because maybe they accidentally could inject commands to our CMTS, causing an outage.
I thought that SNMP was less CPU intensive than xconnect. I appreciate any observation.
Create a dedicated account for your telnet script, and don't give it enable permissions
eg username myusername password 0 mypassword
then if there are commands that this non-enable user cant get to, you can drop them down in security level eg
privilege exec level 0 show cable
privilege exec level 0 show cable modem
privilege exec level 0 show cable modem phy
privilege exec level 0 show cable modem summary
From my experience, extracting large chunks of data from the CLI is less intensive than big snmp polls
I'm going to try that way!!!! Thank you for your reply!!!!
I've used roll-based CLI access for our vendor that needs ssh access to our CMTS for CM monitoring. You just create a list of commands their aloud to run and assign a username to that view. It's a bit more complicated but I've found it to be the most secure because you control what command to allow/deny.
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtclivws....
Hi there,
I've finally finished my script which outputs are some crazy summaries I needed for our technicians to check.
I didn't use the xconnect technique, instead I made all my script based on SNMP queries using PERL modules. It is pretty fast and doesn't need any VTY connection.
Thank you for your responses. Let me know if you need some information or a nutshell on how to start with your scripts.