snmp target address problem
MANSOUR NASERI <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am using net-snmp ver5.7.1 and config snmpd as a master agent and using my app as a sub agent. I am working on ARM linux and compile net-snmp on version 2. on snmpd.conf file I added "trapsink 192.168.2.5" it means I want to send traps to 192.168.2.5. when I run snmpd and then my subagent it works and I can send traps on sub agent to 192.168.2.5 and manager will receive all traps. in that case I can read by MG-soft these tables: snmpTargetAddrTable: Instance ----------->internal0 snmpTargetAddrName(IDX, IMP) ----------->Not accessible snmpTargetAddrTDomain ----------->snmpUDPDomain snmpTargetAddrTAddress -----------> C0.A8.02.05.00.A2 (hex) snmpTargetAddrTimeout----------->0 snmpTargetAddrRetryCount----------->0 snmpTargetAddrTagList ----------->internal0 snmpTargetAddrParams ----------->internal0 snmpTargetAddrStorageType----------->readOnly(5) snmpTargetAddrRowStatus -----------> active(1) snmpTargetParamsTable: Instance -----------> internal0 snmpTargetParamsName(IDX, IMP)----------->Not accessible snmpTargetParamsMPModel----------->0 snmpTargetParamsSecurityModel----------->1 snmpTargetParamsSecurityName----------->public snmpTargetParamsSecurityLevel----------->noAuthNoPriv(1) snmpTargetParamsStorageType----------->readOnly(5) snmpTargetParamsRowStatus----------->active(1) snmpNotifyTable: Instance -----------> internal0 snmpNotifyName(IDX, IMP) ----------->Not accessible snmpNotifyTag ----------->internal0 snmpNotifyType ----------->trap(1) snmpNotifyStorageType ----------->readOnly(5) snmpNotifyRowStatus ----------->active(1) next time i removed "trapsink 192.168.2.5" from snmpd.conf and raster snmpd , there is nothings on that tables. I want to added some rows on that tables manually to have destination target address like before. my sequence is( using MG-soft): Step1 : First of all as the document says Get snmpTargetSpinLock valule it return 0 Step2: then Set snmpTargetSpinLock to 0 again Step3: Get snmpTargetSpinLock , it return 1(for test) Step4: adding new row with index internal0 and change snmpTargetAddrTable like this(by MG-soft add row) Instance ----------->internal0 snmpTargetAddrName(IDX, IMP) ----------->Not accessible snmpTargetAddrTDomain ----------->snmpUDPDomain.0 snmpTargetAddrTAddress -----------> C0.A8.02.05.00.A2 (hex) snmpTargetAddrTimeout----------->0 snmpTargetAddrRetryCount----------->0 snmpTargetAddrTagList ----------->internal0 snmpTargetAddrParams ----------->internal0 snmpTargetAddrStorageType----------->readOnly(5) snmpTargetAddrRowStatus -----------> createAndGo(4) after I set all of them , return an error that I can not write snmpTargetAddrStorageType >readOnly(5) but I can write snmpTargetAddrStorageType >other(1) after that when i read the row it returns: snmpTargetAddrName(IDX, IMP) ----------->Not accessible snmpTargetAddrTDomain ----------->snmpUDPDomain.0 snmpTargetAddrTAddress -----------> C0.A8.02.05.00.A2 (hex) snmpTargetAddrTimeout----------->1500 snmpTargetAddrRetryCount----------->3 snmpTargetAddrTagList ----------->internal0 snmpTargetAddrParams ----------->internal0 snmpTargetAddrStorageType----------->other(1) snmpTargetAddrRowStatus ----------->active(1) Step5: like step4 i added a row to snmpTargetParamsTable and it returns : Instance -----------> internal0 snmpTargetParamsName(IDX, IMP)----------->Not accessible snmpTargetParamsMPModel----------->0 snmpTargetParamsSecurityModel----------->1 snmpTargetParamsSecurityName----------->public snmpTargetParamsSecurityLevel----------->noAuthNoPriv(1) snmpTargetParamsStorageType----------->other(1) snmpTargetParamsRowStatus----------->active(1) most of the time ,snmpTargetParamsRowStatus----------->notReady(3)(I dont know why) Step6: like step4 i added a row to snmpNotifyTable and it returns : Instance -----------> internal0 snmpNotifyName(IDX, IMP) ----------->Not accessible snmpNotifyTag ----------->internal0 snmpNotifyType ----------->trap(1) snmpNotifyStorageType ----------->other(1) snmpNotifyRowStatus ----------->active(1) in that case still I can not receive any traps. my console return an error like this 2 times: unsupported domain for target address table entry internal0. I am realy confused what should I do, I have read lots of docs ,is there any thing wrong . I would be grateful if someone could help me. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users