Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎么能发送一个 net-snmp GET 请求,这样:
netsnmp_check_vb_type
将返回 SNMP_ERR_WRONGTYPE?
您需要修改您正在与之交谈的代理,以便它会发送回 GET 的错误代码。除非代理中存在错误,否则任何代理都不应该为 GET 请求执行此操作。换句话说:您必须在代理中放置一个错误!
我认为这是不可能的,因为错误的类型检查只适用于 SET 请求。