MacAddress

2005-08-24 Thread Hongjunli
Hi, I want to write a columnar ojbect whose type is "MacAddress" ,but the following command can not work normally: snmpset -v 2c -c private localhost dot11WEPKeyMappingAddress.345.1.2 = 1:2:3:4:5:6. Could you give me a right example? ThanksHS^甸��X�J�'���u辑��^蹲�J�砹�� ��z阀q�<��ψ�m牾�m队NRjqkjw"笔

Re: A question about snmpset

2005-06-24 Thread Hongjunli
Name.234 s "tester",but snmpset showed me the message: Error in packet. Reason: wrongLength (The set value has an illegal length from what the agent expects) Failed object: ARROWSPAN-MIB::stationName.234 why ? On Wed, 2005-06-22 at 23:16, Robert Story wrote: > On Tue, 21 Jun 2005 13:19:4

A question about snmpset

2005-06-22 Thread Hongjunli
HI, I defined a table containing string variable: stationName OBJECT-TYPE SYNTAX OCTET STRING (SIZE (0..63)) MAX-ACCESS read-write STATUS current DESCRIPTION "Station name." ::= { meshInfoEntry 1 } I want to change value of is using command:snmpset -v 2c

About mib-2

2005-05-03 Thread Hongjunli
which mib-2 should I use ? RFC1213 or TCP-MIB,UDP-MIB and IF-MIB,and so on.

How to use public mibs in my system

2005-04-27 Thread Hongjunli
hi Now, I have built a distributed system. there are several nodes and a gateway ,and every node has a index ,eg,nodeIndex. Gateway is in chage of snmp request. If I want to quiry ifTable of one of node, nodeIndex and ifIndex should be privide. If I can not modify the IF-module,how do I impl

How to add an index to standard mibs

2005-04-27 Thread Hongjunli
hi we can import some modules ,for example, IMPORTSifMIB FROM IF-MIB. Now I want to add an index to ifTable ,how can I do?

How can I write function XXXX_load(netsnmp_cache *cache, void *vmagic)?

2005-04-20 Thread Hongjunli
_load(netsnmp_cache *cache, void *vmagic) can be used to load table data,but I don't know how to use parameters cache and vmagic. Do these two patameters take some index parameters? I want to load data according to index.Can I do such?

Why do I get such response when using command "snmptable"?

2005-04-20 Thread Hongjunli
Why do I get such response when using command "snmptable"? LocalIPAddrRemoteIPAddr LocalPort RemotePort 86.102.137.103 101.71.120.106 5678 9876 Wrong Type (should be Gauge32 or Unsigned32): 86.118.137.103 101.151.120.106 8987

Why will my function xxxTable_load(...) be called twice after only one snmpwalk/snmptable used ?

2005-04-15 Thread Hongjunli
Why will my function xxxTable_load(...) be called twice after only one snmpwalk/snmptable used ?I have traced tcpTable_load(...),but it is called just once. Could you expain the cause? thanks a lot.

Why my agent will be shut down?

2005-04-15 Thread Hongjunli
d(netsnmp_cache *cache, void *vmagic) { struct AdminUsrTable_entry *entry; AdminUsrTable_free(cache, vmagic); entry = SNMP_MALLOC_TYPEDEF(struct AdminUsrTable_entry); if (!entry) return 1; // just for test strcpy(entry->AdminUsr,"hongjunli"); strcpy(en

When I use snmptable to visite myself table,I get "USER-MIB::AdminUsrTable: No entries"

2005-04-15 Thread Hongjunli
When I use snmptable to visite myself table,I get "USER-MIB::AdminUsrTable: No entries".Could you tell me the cause?

Why I got the message:"Cannot find module (LM-SENSORS-MIB): At line 0 in (none)",when using mib2c to generate c file?

2005-04-11 Thread Hongjunli
the whole message is as follow: No log handling enabled - turning on stderr logging Cannot find module (LM-SENSORS-MIB): At line 0 in (none) writing to user.h writing to user.c running indent on user.h running indent on user.c

Why do I get "noSuchName" when asking for tcp.tcpRtoAlgorithm.0 and some variables under enterprises?

2005-04-06 Thread Hongjunli
HW?)b彩h?+y烛N??v??y?'z?jwbv矾?,?n???!3搿?肚擘j?[???(疥?'!?顾l痘ナX??⒇^?^J肢斗?)??囤?l⑶gr?i?

Is Net-SNMP available for some real-time operating systems?

2005-03-23 Thread Hongjunli
N?Y薜??级?V?h旅(n)^?^苍?h?~??h旅(n)^?诒?∩答?处j??薇???┸z??褂M?│X?亘???贺?I??u??m???vw(??