Cisco 800 Series VDSL/ADSL over POTS

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Sviks
Posts: 7
Joined: Thu Sep 12, 2013 5:03 pm

Cisco 800 Series VDSL/ADSL over POTS

Post by Sviks »

does anyone have/know the OID for HEC erros on VDSL/ADSL Line?

I have been trying to search for the Value with SNMP walk but having hard time to find the value
tylerc
Posts: 24
Joined: Tue Aug 13, 2013 10:59 pm

Re: Cisco 800 Series VDSL/ADSL over POTS

Post by tylerc »

If you can't find it in Cisco's OID Navigator (MIB Navigator, whatever they call it), it may not exist. :(

The good news is that it's pretty trivial to write a bash or perl script to get the information you want, assuming it can be retrieved via the Cisco's CLI.
Sviks
Posts: 7
Joined: Thu Sep 12, 2013 5:03 pm

Re: Cisco 800 Series VDSL/ADSL over POTS

Post by Sviks »

it can be retrived by typing "show controller vdsl 0"

but writing a bash script is not my strong side.. :) was hopeing there might be some OID I just could pull
tylerc
Posts: 24
Joined: Tue Aug 13, 2013 10:59 pm

Re: Cisco 800 Series VDSL/ADSL over POTS

Post by tylerc »

Don't think there's an OID. Just create a user account in TACACS that only allows the user to run that one command (or create a local user in the Cisco device that can only run show commands if you're not using TACACS). Write a Bash or Perl script using `expect` (for Bash) or Net::SSH::Expect/Net::Telnet::Cisco(for Perl) that logs in, runs the command, and parses the output.

If you write the `expect` part of the script, I can help you with the output parsing since that's a bit more difficult (though still easy).

Read about `expect` here: http://stackoverflow.com/questions/1441 ... emote-host

If you want to go the Perl route, it depends on if you're using Telnet or SSH. For SSH: http://search.cpan.org/~bnegrao/Net-SSH ... Expect.pod

For Telnet: http://search.cpan.org/~joshua/Net-Teln ... 0/Cisco.pm

I personally find Perl to be easier for this sort of thing than Bash (Net::Telnet::Cisco is particularly simple), but your mileage may vary.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests