Questions tagged [cisco]

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

cisco
Filter by
Sorted by
Tagged with
166 votes
1 answer
4k views

Netflow record can't get octets (jnca)

I'm using jnca library to collect NetFlow records sent by a router. The version of the NetFlow record sent by the router is version 9. When the NetFlow packet is observed from the Wireshark the flow ...
Asiri Liyana Arachchi's user avatar
45 votes
10 answers
172k views

ssl.SSLError: tlsv1 alert protocol version

I'm using the REST API for a Cisco CMX device, and trying to write Python code which makes a GET request to the API for information. The code is as follows and is the same as that in the file except ...
finaris's user avatar
  • 513
37 votes
3 answers
91k views

Cisco VPN client on Ubuntu 16.04 LTS

I am trying to install Cisco VPN Client on Ubuntu, but I am facing problems. So How can I install it on Ubuntu 16.04 LTS ?
SK7's user avatar
  • 643
29 votes
8 answers
58k views

paramiko Incompatible ssh peer (no acceptable kex algorithm)

I'm getting the following error when trying to ssh to a Cisco ACS device using the paramiko library. I've used paramiko in python without issue, and I can ssh to this box from the command line, or ...
Tony's user avatar
  • 391
16 votes
5 answers
18k views

Connect CISCO Anyconnect VPN via bash

As title says, trying to connect vpn via bash. The following script seemed closest to the answer I'm looking for: #!/bin/bash /opt/cisco/anyconnect/bin/vpn -s << EOF connect https://your.cisco....
Brayden Hancock's user avatar
15 votes
3 answers
75k views

Python: SSH into Cisco device and run show commands

I have read over this post extensively and have researched Exscript, paramiko, Fabric and pxssh and I am still lost Persistent ssh session to Cisco router . I am new to python scripting. I am ...
D3l_Gato's user avatar
  • 1,317
15 votes
3 answers
40k views

Connecting to a VPN without installation of client software

I must sometimes write software to establish a socket with a particular server residing within a Cisco VPN. I simply write my software as if there were no VPN (making use of the standard sockets ...
Adam Paynter's user avatar
  • 46.5k
10 votes
1 answer
19k views

What is the difference between exec_command and send with invoke_shell() on Paramiko?

So what is the difference between SSHClient.exec_command() and send with SSHClient.invoke_shell on Paramiko? I can send and execute command with exec_command to MikroTik router device but can't ...
Adhy's user avatar
  • 187
9 votes
1 answer
12k views

Error trying to install Numpy

I am currently running Yocto-distr on a Cisco Router (so this is embedded-Linux system call Guest-Os). I already have python-2.7.3 version installed. I am currently to install Numpy. However, the ...
andy_tse's user avatar
  • 189
8 votes
9 answers
11k views

Managing Cisco programmatically; Telnet vs SNMP? [closed]

I was recently approached by a network-engineer, co-worker who would like to offload his minor network admin duties to a junior-level helpdesk tech. The specific location in need of management acts ...
crftr's user avatar
  • 8,528
8 votes
4 answers
16k views

Persistent ssh session to Cisco router

I have search on this site and multiple other locations but I have been unable to resolve my problem of connecting and maintaining ssh session after one command. Below is my current code: #!/opt/...
msudi's user avatar
  • 169
7 votes
5 answers
19k views

Cisco VPN Client automatic login

I need to automate the login process of a Cisco VPN Client version 5.0.07.0440. I've tried using a command line like this but there is something wrong: vpnclient.exe connect MyVPNConnection user ...
Nicola's user avatar
  • 81
7 votes
3 answers
8k views

pexpect setecho not working

I am trying to telnet to Cisco Router and give commands using pexpect. Its working, but the sendline() repeats in the output. even after using setecho to False. Code is: ''' Created on Nov 19, 2012 @...
amulllb's user avatar
  • 3,106
7 votes
7 answers
10k views

Programatially determine if Cisco VPN Client is connected

I am working with the basic Cisco VPN client (v.5 I believe). Is there anyway to determine programatically if a partciular profile (or any profile for that matter) is connected? I'm looking to ...
Mike Marshall's user avatar
7 votes
1 answer
741 views

How to use cBarge (Barge) to create conference with JTApi

We have 2 cisco phones: one for call manager and another for his superviser. We need to create a conference when the manager answers and put the supervisor's phone on mute. We are trying to achieve ...
balbelias's user avatar
  • 428
7 votes
1 answer
6k views

Access VPN connection on guest Virtual PC from Host OS

I am running as my Host OS - Win 7 x64 and running an instance of Virtual PC XP. I am running the Cisco ISPec VPN Client on the Guest XP VPC OS and can successfully connect to my company's corporate ...
RobDemo's user avatar
  • 291
6 votes
1 answer
2k views

How do I package a Go program so that it is self sufficient?

I have a Go Program and I want to run it on a switch. Since I cannot install Go on the switch itself, I just copy the executable and try to run. But I get the following error. runtime: panic before ...
Rahul's user avatar
  • 129
6 votes
1 answer
11k views

Cisco Anyconnect: "Posture Assessment failed: Unable to load the CSD library" on Macbook Pro, M1 pro chip

I used anyconnect-macos-4.8.01090-predeploy-k9.dmg to install anyconnect, it only works once after I install it. (I will then connect to my company's VPN, before that it will automatically upgrade ...
Darius's user avatar
  • 441
6 votes
1 answer
32k views

SNMP: ifAdminStatus vs ifOperStatus

I have a question about ifAdminStatus and ifOperStatus. Here is an output of my network interfaces state using ifAdminStatus: snmpwalk -Os -c public -v 1 192.168.1.1 1.3.6.1.2.1.2.2.1.7ifAdminStatus....
PrimeSeventyThree's user avatar
6 votes
2 answers
664 views

PHP double sort array based on substring [duplicate]

I am building a custom switch manager for work, my current issue is more an aesthetic one but I think it is a good learning experience. I have posted the array below for clarity: Array ( [1] =&...
xandout's user avatar
  • 173
6 votes
2 answers
324 views

How should graphing tool behave in case SNMP counter has smaller value than previous reading?

I'm building a small monitoring solution and would like to understand what is the correct/best behavior in situation where previous reading is larger than current reading. For example ifHCOutOctets ...
Martin's user avatar
  • 1,047
6 votes
1 answer
821 views

AnyConnect disconnect then reconnect when starting a new docker container

I connect to my company VPN with AnyConnect (using this rather than openconnect to allow single sign on to work). When I run a docker container that's not using network driver "host", my VPN ...
eotfofiw's user avatar
5 votes
2 answers
10k views

What's the difference between TAPI and TSAPI

I have a C++ program that uses the Microsoft TAPI interface to collect call events from a Cisco Call Manager PBX. To get the Cisco events I downloaded the TSP from the call manager and then my TAPI ...
Big GH's user avatar
  • 1,331
5 votes
1 answer
17k views

Using a BAT file to automatically reconnect a VPN Cisco on failure of connection

I would like help to create an automatic BAT script that reconnects my Cisco VPN Client Session in case of outage of Internet. There are two command lines: command 1 to connect and command 2 to ...
Rodolpho Pereira's user avatar
5 votes
3 answers
13k views

Cisco SSH key exchange fails from Ubuntu 14.04 (Client DH key range mismatch) [closed]

For some reason, I cannot SSH into a Cisco CSR1000v router from an Ubuntu 14.04 machine. Our Cisco firmware is; Cisco IOS XE Software, Version 03.12.00.S - Standard Support Release Cisco IOS ...
SleepyCal's user avatar
  • 5,905
5 votes
3 answers
25k views

How can I enable/disable ports in Cisco Catalyst 2960 with C#?

I am a fresh graduate and have just got my first job as a programmer in Hong Kong. As the topic described, I need to use C# to control the ports on the Cisco switch. I have search and study for ...
tingfungc's user avatar
  • 115
5 votes
1 answer
3k views

NTP round-trip delay

How does NTP, compute the round-trip delay time and the offset.
user avatar
5 votes
1 answer
8k views

Ansible to Cisco IOS via SSH, with "authentication failed" message

Here is a very simple ansible case which bothered me a lot. This is the content of ansible.cfg: [defaults] transport = paramiko hostfile = ./hosts host_key_checking = False timeout = 5 the content ...
nonemaw's user avatar
  • 638
5 votes
1 answer
2k views

VPN connection contained within an application

Is it possible to have a program which establishes a VPN connection but the VPN is contained only within the application? Example: An application establishes a VPN connection to retrieve the data ...
totalfreakingnoob's user avatar
5 votes
0 answers
10k views

Execute multiple commands via SSH and PowerShell

I successfully managed to connect to a Cisco IE-2000-L switch via SSH. I used the Renci SSH.NET library. Starting guide: http://vwiki.co.uk/SSH_Client_(PowerShell) My working code is # Load SSH ...
nixda's user avatar
  • 2,618
5 votes
0 answers
9k views

VPN connect using Java

Is there a way to connect and disconnect VPN in Forticlient programmatically? I see that with Cisco VPN Client, there are options such as using the APIs they provide or executing connectivity ...
user3484371's user avatar
5 votes
0 answers
3k views

Decode PCM audio data with g722 codec

I'm developing a call recorder for VoIP audio, the audio is encoded by using a g722 codec in a CISCO environment. Well, I have extracted the data from the RTPs frames and I have decoded this pcm data ...
Miguel Angel's user avatar
4 votes
2 answers
16k views

Why am I getting request method GET not supported?

I am using PostMan as a REST client to test this API method Cisco ACL Analysis API. specifically POST /acl/trace or getAClTracksStd (first go to Policy Analysis) Here is my PostMan HTTP test call ...
committedandroider's user avatar
4 votes
2 answers
11k views

How to control a cisco IP-Phone from the CLI?

I've a Cisco IP-Phone 7945 and I want to control it from my CLI. For example I want to start a command like call start 12345 #12345 is the number I want to call or call cancel Anybody knows a tool ...
Daniel's user avatar
  • 4,113
4 votes
7 answers
7k views

DHCP overwrites Cisco VPN resolv.conf on Linux

I'm using an Ubuntu 8.04 (x86_64) machine to connect to my employer's Cisco VPN. (The client didn't compile out of the box, but I found patches to update the client to compile on kernels released in ...
Commodore Jaeger's user avatar
4 votes
1 answer
17k views

What is the difference between SNMP GETBULK and GET operations

Background I am trying to create a project of an SNMP web site to get information on network devices. I have used the SNMP Library created by LeXtudio - sharpsnmp. The problem I have created two ...
Mdukes00's user avatar
  • 131
4 votes
3 answers
3k views

Why is EIGRP and RIP uses IP TTL of 2 (CISCO)?

through my studies on CCNP ROUTE, while sniffing EIGRP packets, I noticed that packets have IP TTL of 2. I also verified this for RIP. OSPF doesn't have this property since it's link state. Why does ...
Kveri's user avatar
  • 380
4 votes
2 answers
1k views

Cisco regex match this but not that

I have the following string in a much larger config: as-path-set DAVE-9999-CBG as-path-set DAVE-9999-CBG as-path-set DAVE-55555-CBG as-path-set DAVE-44444-CBG as-path-set DAVE-33333-CBG as-path-set ...
user3133040's user avatar
4 votes
1 answer
13k views

SNMP OID: How to find the firmware version of a cisco switch from MIB

I am looking for a OID to get the firmware version of a Cisco Switch using SNMP. I tried the below MIB files, i couldn't. OLD-CISCO-CHASSIS-MIB.mib ENTITY-MIB.my CISCO-ENTITY-ASSET-MIB Do anybody ...
prasankn's user avatar
4 votes
1 answer
42 views

Effective way to regexp match pandas and strip inside df?

Hoping someone on here is kind enough to at least point me in the right direction. Overall, I'm trying to match regex for each row and produce the below output (in 'desired example output'). To ...
OrkyCodes's user avatar
4 votes
1 answer
683 views

telnet client response how to decode it

telnet client response how to decode it I think it is a specific response as all cisco servers have the same response . What is the name of this text and how do I decrypt it '\xff\xfb\x01\xff\xfb\x03\...
smo zain's user avatar
4 votes
1 answer
130 views

How to add '\n" to a variable value to submit it as an input of remote process via Paramiko

I am working with Paramiko on Linux, I would like to know if I can send a variable to shell. I want to enter to "enable mode" of a Cisco router. But I don't want to hard-code the password in ...
MadChabelo's user avatar
4 votes
1 answer
2k views

How can I get networking AND X11 forwarding in WSL 2 with Cisco Anyconnect?

So I can get X11 forwarding working in WSL2 following e.g., How to set up working X11 forwarding on WSL2. Then I had issues getting networking to function after connecting to a Cisco AnyConnect server,...
strydervtx's user avatar
4 votes
1 answer
4k views

Telnet client for cisco router

I am writing telnet client for cisco router using apache.commons.net.telnet. But i have problem. Here is code sample: static TelnetClient telnetClient = new TelnetClient(); public static void main(...
DenisM's user avatar
  • 223
4 votes
2 answers
585 views

Not able to connect to remote server even though Cisco Anyconnect shows connected

The issue occurs only on the WiFi network. I am using Airtel Xstream router. The issue is when i connect using cisco anyconnect then the connection is successful and I am able to access my ...
Vasu Gupta's user avatar
4 votes
0 answers
2k views

SSH.NET Connection always disconnects after RunCommand

I'm trying to connect to our cisco switch via SSH.NET and run multiple commands on it (up to 200) and read the results. After one command, the connection always disconnects. Code: public void ...
Luca Salzani's user avatar
3 votes
2 answers
20k views

Capture output from ssh with expect script

I want to capture the output of my expect script in a file.txt. #!/usr/bin/expect -f match_max 10000 set timeout 120 eval spawn ssh 10.0.0.0 set prompt ":|#|\\\$" interact -o -nobuffer -re $prompt ...
Omnomnom's user avatar
  • 111
3 votes
2 answers
4k views

Cisco JTAPI to CUCM

I have been tasked with writing an application that lets users place calls to Cisco Unified Callmanager 8.6. The contact list will not be provided by the UCM. It will be provided elsewhere. I find ...
scav's user avatar
  • 255
3 votes
2 answers
3k views

CISCO H264 Encoding series of Images to H264

I am searching for a command line argument to convert series of Images into H264 using CISCO H264. (Something like FFMPEG image to video functionality). Unfortunately, I cant use FFMPEG as I am ...
user3652437's user avatar
3 votes
3 answers
8k views

No Internet Access In Docker Container When Connected to Cisco AnyConnect VPN

I am connected to a corporate VPN and need to be able to run docker containers while the VPN is connected due to the fact that the container needs to be able to access corporate endpoints. However, ...
Jeffrey Tillwick's user avatar

1
2 3 4 5
22