简体   繁体   English

我怎么知道远程设备是cisco交换机还是带php的路由器?

[英]how can i know remote device is cisco switch or router with php?

I dont know if this topic can be written in this forum but if i am wrong warn me.Let's go my question... How can i know remote device is cisco or other companies' switch or router device by using php(sockets) by using send SNMP or connecting witth telnet?I dont want php codes but i want to know if this type of operation can be done or not.If it can,which way is the best?Sending SNMP or connecting with telnet on 23th port or the way you suggest. 我不知道是否可以在此论坛中撰写此主题,但是如果我写错了,请警告我。让我问一个问题...我如何通过使用php(sockets)知道远程设备是cisco还是其他公司的交换机或路由器设备?使用发送SNMP或使用telnet连接?我不想要php代码,但我想知道这种操作是否可以完成。如果可以,哪种方法是最好的?在23号端口上发送SNMP或与telnet连接或您的建议方式。 Thanks for advance... 感谢您的提前...

Well assuming you have permission, and you have the correct SNMP username/passwords, a request of SNMPv2-MIB::sysDescr.0 will give you 假设您具有权限,并且您具有正确的SNMP用户名/密码,则SNMPv2-MIB::sysDescr.0的请求将为您提供

A textual description of the entity. 实体的文字描述。 This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software. 该值应包括系统硬件类型,软件操作系统和网络软件的全名和版本标识。

see Cisco MIB here 在此处查看Cisco MIB

This should meet your needs. 这应该可以满足您的需求。

PHP has a snmpget method that sounds like what you need. PHP具有听起来像您需要的snmpget方法

If you don't have network permission, then I suggest you download nmap, and study how it identifies host operating systems. 如果您没有网络许可,那么建议您下载nmap,并研究它如何识别主机操作系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM