Хочу тупо забрать данные со свича:
<?php
if ($mac=snmpget("10.10.69.6", "1.3.6.1.2.1.17.7.1.2.2.1", "public", 1, 2)) echo 1; else echo 'false

';
?>
В логах наблюдаю следующее:
SNMP request received from 10.10.69.2 with invalid community string!
Подскажите пожалуйста, где я ошибся. Весь мосг себе изгадил. Ток сильно не ругайте, никогда с SNMP не работал, тонкостей не знаю
MIB не добавлял
Конфин свича:
#-------------------------------------------------------------------
# DES-3526 Configuration
#
# Firmware: Build 4.01-B19
# Copyright(C) 2000-2005 D-Link Corporation. All rights reserved.
#-------------------------------------------------------------------
...
# SNMPv3
delete snmp community public
delete snmp community private
delete snmp user initial
delete snmp group initial
delete snmp view restricted all
delete snmp view CommunityView all
config snmp engineID 800000ab0300179abbd657
create snmp view restricted 1.3.6.1.2.1.1 view_type included
create snmp view restricted 1.3.6.1.2.1.11 view_type included
create snmp view restricted 1.3.6.1.6.3.10.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.11.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.15.1.1 view_type included
create snmp view CommunityView 1 view_type included
create snmp view CommunityView 1.3.6.1.6.3 view_type excluded
create snmp view CommunityView 1.3.6.1.6.3.1 view_type included
create snmp group public v1 read_view CommunityView notify_view CommunityView
create snmp group public v2c read_view CommunityView notify_view CommunityView
create snmp group initial v3 noauth_nopriv read_view restricted notify_view restricted
create snmp group private v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group private v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group ReadGroup v1 read_view CommunityView notify_view CommunityView
create snmp group ReadGroup v2c read_view CommunityView notify_view CommunityView
create snmp group WriteGroup v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group WriteGroup v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp community private view CommunityView read_write
create snmp community public view CommunityView read_only
create snmp user billing private
create snmp user initial initial
# MANAGEMENT
enable snmp traps
enable snmp authenticate traps
disable rmon
...