Questions tagged [cisco]

0

votes
0

answer
3

Views

steps for accessing resource over a network , ccna question

I'm currently studying for CCNA, and I faced this question, can anyone help?this image contains steps that must be ordered
raghad
0

votes
0

answer
5

Views

Meraki MX68 dropping internet

My MX68 keeps loosing internet once in a while each day. I have a cable going from our Comcast modem to WAN 1 on the MX68. Sometimes when I ping 10.1.10.1, I can't ping and the MX68 disconnects from the internet. If I unplug the cable on the modem connected to the MX68, and reconnect, I'll get in...
Matt Damoz
1

votes
1

answer
156

Views

Need help in java Port forwarding in socket (AWS CISCO router with AWS Server)

I am having a aws server(10.10.10.1) which will act as a CISCO Router and it will port forward to another aws server(10.10.10.2). Now I am connecting a server in ssh using the following command. ssh -i server.pem [email protected] -p 2222 Then it will connect to the Server 10.10.10.2. Now I need t...
samaswin
1

votes
2

answer
1.4k

Views

Unable to open shell: Ansible v2.3.1.0

So I use Ansible day-to-day to manage our AWS instances and now I'm testing out managing our network infrastructure (I'm a Network guy, who can do some system admin stuff) but have run into a problem that I can't seem to get around. I have a Cisco 3750G here that I've enabled SSH on. I can ssh in wi...
Ajoda Sattaur
1

votes
1

answer
480

Views

SOAP/AXL Request to CUCM Fails with Node.js

All, Thanks for taking a moment to check out this question. Any help is appreciated as I'm a beginner. I am trying to work with Node.js to make a SOAP/AXL call over to a v11.5 Cisco Callmanager. I have copied the code from this person blog which has a really awesome explanation: http://blog.darrenpa...
Andrew Petersen
1

votes
2

answer
810

Views

How can I create a new JSON object form another using Python? [duplicate]

This question already has an answer here: Filter dict to contain only certain keys? 11 answers python getting a list of value from list of dict 7 answers I need to make a JSON object with less information than the original: The original JSON object after I get it from the api service looks like th...
Maxtrix
0

votes
0

answer
3

Views

Simulate custom packet being received at local interface

Say I want to test my local box for specific environment edge cases without using an external traffic generator / hard loopback. Is there a way that I can get the local network stack to receive custom packets?
user3051040
1

votes
2

answer
7.8k

Views

Cisco IOS “show conf” to XML?

Is there either: A freely available program that can convert the output of a Cisco's 'show conf' to some sensible XML, like this (probably not very sensible) block form: enable ...or, if not, at an XML schema that I could look to implement? Without a deep understanding of the IOS syntax, building up...
Trueblood
1

votes
1

answer
623

Views

How to error read in expect with out executing other commands?

I am having an issue. I have a simple expect script that i call in a php script to login to a cisco terminal server to clear vty lines after a lab time is over. The logic is simple that if a user is present then it only occupies line vty 0. The problem occurs if a user is not present... the cisco ro...
RAY
1

votes
3

answer
2.1k

Views

phpseclib - can't connect to cisco switch

I'm trying to use phpseclib to connect to a cisco SF308 switch. I am using this library to successfully connect to some HP switches, but for some reason, it just won't work with my cisco. Here's the code: set_include_path(get_include_path() . PATH_SEPARATOR . '/var/www/phpseclib'); include('/var/w...
dot
1

votes
3

answer
4.4k

Views

Python's request.get only show 200 status

I'm trying to workd with the Cisco Prime API, and it seems to work when using Postman (the output is an xml file). However, when I try to reproduce the same with Python: request.get(url, verify=False, auth=credentials) print(response) the only response I get is (and a warning for disabling SSL, but...
dersoi
1

votes
1

answer
1k

Views

How to use GetLineReq in AXL Java Client using JAX-WS

What I'm trying to do is to obtain a Directory Number from CUCM, using the AXL API from Cisco. Here's the relevant Code: private void getNumber(){ AXLAPIService axlService = new AXLAPIService(); AXLPort axlPort = axlService.getAXLPort(); String validatorUrl = 'https://mycucm:8443/axl/'; ((BindingPro...
Michael
0

votes
0

answer
5

Views

Blocked Cisco RV320 router or why you don’t need to buy Cisco

Through the web-admin panel of the router, I generated a new certificate and set this certificate as primary Now: - I can not access the web-admin panel - After resetting the router via reset btn (30-30-30), the certificate is not reset. At Cisco, they tell me that I have no guarantee and they canno...
Probojnik
0

votes
0

answer
15

Views

AWS authentication failed using HTTPS request

I'm deploying CSR 1000v on an EC2 instance in AWS. This is my python code for authentication in order to use RESTCONF which is already enabled in the router. import requests import pprint from aws_requests_auth.aws_auth import AWSRequestsAuth def get_json(interface): authaws = AWSRequestsAuth(aws_a...
Khalil Mebarkia
1

votes
1

answer
2.8k

Views

Cisco Unified Messenger SOAP (AXL) query, how to return all values?

Using SOAP against CUCM's AXL web service, there are a number of query calls. getLine getDeviceProfile getUser and so on. The WDSL shows: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?...
geoffc
1

votes
2

answer
169

Views

TCL: Grouping tunnel message together by date day and tunnel

Hi I'm pretty new to TCL coding and wrote this script with the help of this site. I was wondering if there is a better/cleaner way to write this? set y [read -nonewline [set f [open 'tmp.txt' r]]]; array set counts [list]; foreach message [split $y '\n'] { # This gets the status, ie: DOWN/UP/OFFLINE...
onxx
1

votes
2

answer
7.6k

Views

Exception:“The request was aborted: The connection was closed unexpectedly” When invoking two methods same object

I am having a problem that many people have experienced but all of the solution that are available online are specific to their scenarios. I have tried the suggestions available but still no luck wha I have tried was: 1.) req.KeepAlive = false; 2.) req.ProtocolVersion = HttpVersion.Version10; (this...
laitha0
1

votes
1

answer
1.2k

Views

NTP round-trip delay

How does NTP, compute the round-trip delay time and the offset.
1

votes
2

answer
6.2k

Views

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 text file. Checked lots of posts by forum members wh...
Raj
1

votes
1

answer
102

Views

Displaying a portion of the configuration (--More)

I made my script that connects to my switch but the problem is that when viewing it only says part, the rest is displayed as size (--More). How can I do to view all the configuration and thank you use Net::OpenSSH; use warnings; use Expect; my $password = 'admin'; my $enable = ''; my $ip = '192.16.2...
ahmed
0

votes
1

answer
45

Views

Sort json table by time

. Hello, I have this json file : { 'fbl': { 'id': 'fbl', 'user_id': '[email protected]', 'nb_error': 0, 'time': '1:27.700' }, 'dev': { 'id': 'dev', 'user_id': '[email protected]', 'nb_error': 0, 'time': '1:12.54' }, 'jul': { 'id': 'jul', 'user_id': '[email protected]', 'nb_error': 0, 'time': '0:58.700' } } I want read t...
SkroS
1

votes
0

answer
17

Views

c# client for CISCO IP Phones, that using tapi3lib, don't work in win 10

Our company uses Cisco telephony. And we have a little program on user-s PC wrote by our partner. This program tracks incoming calls and for the call rises record in our CRM-System. This program uses tapi3 (it is COM-object from deep inside of windows). Unfortunately, it doesn't work on PC with Wind...
Afro Tray
6

votes
3

answer
5.9k

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 @author: Amit Barik ''' import pexpect hostname = 'hostname' login_cmd = 'telnet ' + hostname + '.net'...
abarik
1

votes
2

answer
3.4k

Views

ssh-login with python.paramiko module into cisco device fails

I try to make a ssh-login into a cisco device, which fails with paramiko.SSHClient. ssh = paramiko.SSHClient() ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) transport = ssh.get_transport() ssh.connect(hostname, username='user', password='pwd') ssh.close() With...
Adrian
1

votes
2

answer
1.7k

Views

CCNA IP routing - arp issue

I met a question on the CCNA exam which I got wrong and even though I found it on different websites with a few explanations available, I'm still confused about it. The question is about what arp entry will a host have in its arp table after a successful ping to a another host on a different router....
user2844129
3

votes
1

answer
1.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 from another server via VPN without having an effect on the machine's network connectivity - The machine...
totalfreakingnoob
5

votes
1

answer
1.7k

Views

getting nullPointerException with commons-httpclient and EWSJavaAPI

i am using EWS Java API 1.1.5 and i am trying to bind the service to inbox folder as follows: ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new WebCredentials(email, password); service.setCredentials(credentials); service.setUrl(new java.net.URI('https://' + host...
Mahmoud Saleh
20

votes
6

answer
27.5k

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 using putty without issue. I've turned on debugging and copied the info here. Please let me know if...
Tony
2

votes
4

answer
1.4k

Views

Remove all characters between two words and replace with a space

I'm using Python 3. I've written two programs. One loops through a csv file to obtain IP addresses for Cisco switches, logs in, runs a command, and outputs to results for each to an individual text file. So I end up with a number of text files...one for each switch. The second program uses xlwt to w...
Shane
2

votes
1

answer
232

Views

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 end. I'm able to get about 90% of the way there but...
jak119
5

votes
1

answer
302

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 malloc heap initialized fatal error: runtime: cannot reserve arena virtual address space runtime stack...
Rahul
2

votes
1

answer
8.2k

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 know the OID, if so, kindly post me. Thanks
prasankn
0

votes
0

answer
7

Views

Paramiko - Bad Authentication Type [Cisco SG-300 Switch]

I use the configuration script over the ssh on the following link.The Script is not important, the important thing is that importing parmaiko module. But I added a link: https://github.com/enessanal/NetConfPy/blob/master/netconf.py And code: import paramiko, argparse,time,socket,os,platform def pain...
periferik
4

votes
1

answer
12.6k

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 disconnect. To monitor the connection I would like use ICMP (Like 5 failed pings) and if working VPN the...
Rodolpho Pereira
5

votes
6

answer
6.8k

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 somehow get a status from the client itself. I don't want to have to try to ping some IP on the other end...
Mike Marshall
6

votes
2

answer
3.8k

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 network. I cannot run the Cisco IPSec client sw on the Host, because it is 64-bit, Cisco doesn't sup...
RobDemo
2

votes
3

answer
5.8k

Views

Using python, to parse cisco configuration files to find interfaces with specific service policy

I have hundreds of cisco configuration files and I need to find (via python) the interfaces with a specific service policy applied in this case WIRELESS-IN. The Regex I am using to capture the interface is: pat=re.compile('(interface.*?)!$',re.DOTALL|re.M) I'd need to return FastEthernet1/0/2 in thi...
Deep6
2

votes
1

answer
2.2k

Views

VB script on Cisco Anyconnect VPN

I am new to use VB script. I am using the below code to connect my VPN. But the problem is that after entering 'select' button in VPN client, the second page display is depending on Network Speed. Sometimes it is loaded within 4 sec, sometimes after 10 sec. Is there any code where i can get the VPN...
Indra
12

votes
3

answer
31.5k

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 library). When it is time to run this program, I manually connect to the VPN using the client software in...
Adam Paynter
2

votes
2

answer
1k

Views

How to Split String with 2 Foreach Perl

Hello I have a perl script that connected to cisco router the actual output if not splited like this show int desc Interface Status Protocol Description Gi1/0/0 up up TRUNK ME-A-JKT-TAN 5/2/1 u/ Service VPN-IP (Support QoS) Gi1/0...
Ipeph

View additional questions