问题标签 [cisco-ios]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
396 浏览

wireshark - 将wireshark移植到基于qnx的系统

我是行业新手,作为实习的一部分,我被分配了上述项目。我没有如何将特定应用程序移植到不同操作系统的经验。

到目前为止,我已经尝试了解组件的基本结构(即应用程序称为 IOS-XR),但据我所知,移植 wireshark 还需要将 libpcap 库移植到 XR。

有人可以说明我应该如何接近它吗?

0 投票
2 回答
635 浏览

operating-system - 如何知道设备的操作系统

如果我知道设备的型号或供应商。有什么直接的方法可以让我知道这个设备的操作系统(例如通过设备驱动程序或类似的东西?)。例如,我将引用我之前提出的问题的答案:固件和操作系统之间有什么区别?

有人说过:

硬件供应商通常使用 linux 的衍生产品(例如 Cisco IOS)

我怎么会知道这个。我知道一个 cisco 设备的名称,但我没有该设备,我需要检查它的操作系统是什么(即使众所周知它是 Linux,我也需要自己检查)。我怎样才能得到这条信息?我查了公司网站和谷歌,我找不到任何答案。

0 投票
1 回答
180 浏览

scripting - IOS编程,是怎么做的?

在我家中的 Cisco 800 路由器上,我看到一个叫做“IOS”的东西,我知道它是互联网操作系统。但在编程世界中,这是一种像 Python、Ruby、Java 等这样的语言吗?如果您想编写一个在路由器本身上运行的脚本,而不是让另一台计算机打开一个套接字,请转到该设备并运行一些 shell 命令。像每 60 分钟向我的路由器广播连接设备这样简单的事情。对于用于编写 IOS 的实际程序,我们在这里谈论的是什么?

0 投票
1 回答
586 浏览

snmp - 使用 SNMP 配置路由

有没有办法使用 snmp 请求将路由添加到例如 RIP 路由表?我在哪里可以逐步描述这些场景?

谢谢你。

0 投票
1 回答
803 浏览

tcl - 期望在 Tcl 中使用 catch 语句

我的代码:

输出:

有人可以告诉我如何捕捉 NO SUCH FILENAME 的异常吗?

0 投票
1 回答
235 浏览

networking - Cisco iOS - 两个 SSID,1 个阻止特定 URL

这里的路由器广播两个 SSID。一个用于访客,另一个用于公司用户。我们的用户正在尝试访问特定 URL,但无法通过公司 WiFi。但是能够通过访客网络访问 URL,并且可以通过以太网直接连接。这让我相信这是公司 WiFi 上的一些 ACL 问题阻止了它。我们的路由器不使用 Web GUI,而且我是 Cisco iOS 的新手,那么我将如何允许这个特定的 URL?它属于哪个访问列表?以下是特定 SSID / 接口的信息:

如您所见,它导入地址列表 700,这是每个用户的所有 MAC 地址和 Blocks - unknown-source。我必须编辑网桥组还是必须创建特定于 URL 的访问列表并将其也导入网桥组?还是我只是把事情复杂化了?

0 投票
1 回答
814 浏览

perl - Perl SSH 进入设备

我有一个奇怪的问题,我想深入了解:

我有一个超过 1000 个 CISCO 设备的列表,我需要通过 ssh 进入并运行一些命令。所以在 Perl 中,我有以下代码:

上面的代码可以向我展示我需要的输出。

但是,当我创建一个循环并尝试在一个循环中对每个设备进行 ssh 时,我得到 $stdout 为空白。

以下是不起作用的代码:

上面的输出只是空白 - 它什么都不返回。

任何想法我做错了什么?

0 投票
1 回答
1001 浏览

php - 如何将 XML 发送到 TCP 端口并使用 php 进行对话?

我正在尝试为 Cisco IOS XR 使用 XML API(文档:Cisco IOS XR XML API Guide,Cisco IOS XR Release 4.1),但我不确定在 PHP(simpleXML?)中使用什么库来打开 TCP连接到设备上的端口并开始向其读取和写入 XML。

我了解模式等的概念,但我能找到的关于 PHP 和 XML 的一切似乎都面向 Web 服务、POST 等,而这只是读取和写入 XML。

0 投票
1 回答
1100 浏览

tcl - Am I missing the target with exp_continue?

I'm trying to write an expect script that allows me to ssh into a switch, look for a certain set of software in flash, then delete it. I would like to say that if you see result "A" do action "B", and if you see result "C" do action "B". All of these results are displayed when I run one command.

This is an example of a result I'm expecting.

What I'm looking for is the "flash1:" directory. Now there is a possibility of their being a total of nine flash file systems. You'll always have "flash1:"; what I want to do is go into each of the possible directories and delete either a file or an entire directory. And if their is no other directories just to move on.

What I want to know is how to properly use exp_continue, or if I need to use it at all in this instance. This is what I've got written, and it will copy the software to flash1, but if flas2 and so on exist it wont copy or delete the software over to the other flashes.

Here is the output from the script when I pipe it to a file... I'm only capturing the first loop.

Here's an example of what it would look like if I ran all of those commands manually.

This is the only section that's failing right now!

0 投票
1 回答
251 浏览

cisco - cisco pix 501 到 5505 静态(内部、外部)命令不起作用

在 pix 501 中有以下命令,完美运行:

每当我将这些包含在 5505 中时,单元都会接受配置,但现在我无法从外部 ssh,以及其他问题?