Questions tagged [cisco]

For software development issues related to Cisco hardware. Networking and configuration questions should be asked on https://networkengineering.stackexchange.com/

Cisco Systems is a widely deployed brand of networking and telecommunications gear. Questions using this tag should cover software development related to Cisco equipment. Questions about configuration and administration of network gear should be posted on Server Fault. Network design and protocol questions should go to Network Engineering

1035 questions
2
votes
2 answers

Grouping object-group configuration using RegEx

I have a config from Cisco ASA and I need to write a Python RegEx to capture everything that is in the object-groups and group them for further processing. For example: object-group network FTP description FTP Access network-object host BCD1 …
gh0st
  • 402
  • 5
  • 13
2
votes
0 answers

Using Go's crypto/ssh to run commands on a cisco switch

I'm trying to run commands over ssh on a cisco switch and print the result to the console. I have successfully done this with a debian linux server. On the cisco switch however the execution of the command blocks the main function and it never…
Riscie
  • 3,775
  • 1
  • 24
  • 31
2
votes
1 answer

Cisco UCS Python SDK script for querying Firmware versions

I have been working to train myself in the greatness that is Python and one of the best ways for me to learn is by doing. So, one of the many projects I have taken up is to pull firmware information from our Cisco UCS environments. After…
Grimdari
  • 353
  • 1
  • 16
2
votes
1 answer

Getting Output from Cisco C40 via Bash

Background We have a handful of Cisco C40s that I'm trying to automate via bash (although I'd be open to alternatives). I need to log into it, dial an IP, get back the call ID that's returned, and then use that CallID to send a DTMF tone to the far…
jak119
  • 165
  • 2
  • 11
2
votes
1 answer

How to query or calculate port utilization for devices registered with CUCM

I need to query or calculate port utilization for various devices registered with Cisco CUCM, for example, H323 Gateway Port Utilization, FXS Port Utilization, BRI Channel Utilization etc. Are these metrics available from CUCM? If yes, is it…
user3261096
  • 63
  • 1
  • 4
2
votes
3 answers

Perl - Output the log files

I have created a perl that telnet to multiple switches. I would like to check if telnet functions properly by telneting the switch. This is my code to telnet to the switches: #!/usr/bin/perl use warnings; use Net::Cisco; open( OUTPUT, ">log.txt"…
Danny Luk
  • 47
  • 1
  • 3
  • 11
2
votes
3 answers

Converting subnet mask "/" notation to Cisco 0.0.0.0 standard

I've searched SO for help but could'nt find a answer to my question. Situation: I need to convert a "/NN" subnet mask notation (think IPTABLES) to a 0.0.0.0 cisco notation. NN are the number of "1" in the submask, from the lowest octet to the…
jaderanderson
  • 185
  • 2
  • 11
2
votes
0 answers

Cisco's Command Lookup Tool Parser with Python

I want to create a python script that connects to Cisco's Command Lookup Tool site authenticates with my credentials, populates necessary fields and searches for all commands that I need and provides the explanation. Cisco's site look's like…
gh0st
  • 402
  • 5
  • 13
2
votes
0 answers

pexpect child.before problems with Cisco IOS, not getting result from command

So I've been working all night on trying to solve this problem, and i can't seem to find a solution. I'm telneting into a cisco 7200 router and trying to get the state of a couple of BGP connections and for some reason i'm only getting the…
pixxel
  • 21
  • 3
2
votes
4 answers

Error passing multiple commands to Cisco CLI via plink

I've gotten some help with an earlier part of this batch file, but now I'm having trouble with the final component. I've tried a few things with no success. I tried changing the CRLF to LF which did nothing. I also tried rephrasing the commands a…
Gearshock
  • 35
  • 2
  • 5
2
votes
1 answer

Collecting SNMP traps with pySNMP

Which is the more resource-friendly way to collect SNMP traps from a Cisco router via python: I could use a manager on a PC running a server, where the Cisco SNMP traps are sent to in case one occurs I could use an agent to send a GET/GETBULK…
ChillY
  • 106
  • 6
2
votes
2 answers

Cisco CallManager AXL SQL Toolkit - Retrieve directory number and user ID

I have the below SQL query to retrieve the list of userid and their telephonenumber using Cisco CallManager AXL SQL Toolkit: sql query="select d.name as deviceName, e.userid, e.telephonenumber from device d left outer join endUser e on…
user1904221
  • 41
  • 1
  • 4
2
votes
1 answer

SSIS Cannot consume web service

I'm using SSIS to connect to a Cisco web service hosted on the Cisco machine that manages our telephones. I've tested the service in SoapUI and have found everything to be working. I can get/use the WSDL, can connect to the service using…
Zach
  • 33
  • 7
2
votes
1 answer

Cisco visual message waiting indicator ( VMWI or MVI )

How can I programatically illuminate Cisco IP Phones Visual message waiting indicator (VMWI or MWI) ? For sipwiz Answer: IP Adress 10.1.1.2 => is local IP in which I will send SIP Notify Message IP Address 10.1.1.9 => is IP Address of Cisco Phone…
Hippias Minor
  • 1,917
  • 2
  • 21
  • 46
2
votes
2 answers

Print SSH output from Cisco Router to a text file

I am a newbie to Python as well as the programming world. After a bit of research for the past 2 days am now able to successfully SSH into the Cisco router and execute set of commands. However my original goal is to print the resultant output to a…
Raj
  • 67
  • 1
  • 4
  • 10