Dart Home | PowerSNMP for ActiveX | Custom Development | Reply | PowerSNMP for ActiveX Topics | Forums |
Author | Forum: PowerSNMP for ActiveX Topic: How can I assign a value to a agent table in the manager? |
bestlihj bestlihj@126.com From: ZhouXu, Peoples Rep of China Posts: 5 Member Since: 05/21/06 |
posted May 21, 2006 11:37 PM I have read the value of the table from the agent sample which you given successfully.Now,I want to assign a value to a agent table.But,I can't set it.It always reture error.How can I do it in Delphi 7?Do I also use the procedure AddVariable(collection: ISnmpVariables; Oid: String; vType: VariableTypeConstants; value: OleVariant) in the agent sample? Another,I have get or set a value from the agent sample by manager sample.Then,I use the MG-brower to get the value from the agent sample ,but I can't set or walk the value ?Why? anyone give me a sample code? Thanks |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 23, 2006 5:28 PM The table values are read-only and can't be set via SNMP. Each row is created when a Set request comes in. In regards to you second question, I am not quite sure. It would help if you could send detailed instructions on how to duplicate the problem to support@dart.com. Please include your serial number in the email. |
bestlihj bestlihj@126.com From: ZhouXu, Peoples Rep of China Posts: 5 Member Since: 05/21/06 |
posted May 24, 2006 10:54 PM The table I use is private table in my MIB.And the values are read-write in the table.It intializtion in the agent run.I just want to re-set the value in the table.The wrong in the line 'DefaultInterface.Send;'.I don't know how to do next? |
bestlihj bestlihj@126.com From: ZhouXu, Peoples Rep of China Posts: 5 Member Since: 05/21/06 |
posted May 24, 2006 11:10 PM frm_start.Manager1.Timeout := 1000; frm_start.Manager1.Message.Reset; frm_start.Manager1.AgentPort := 161; frm_start.Manager1.AgentName :=192.168.0.4; // Create a new variable using the new value v := CoSnmpVariable.Create; v.Type_:=snmpInteger; v.value :='2'; oid := frm_start.Manager1.Mib.Variables.GetOIDFromName('chanE1State')+'.1' ; v.Oid := oid; lblinfo_E14.Caption:=oid; frm_start.Manager1.Message.Type_ := snmpSet1;//snmpSet2; frm_start.Manager1.Message.Variables.Add(v); //frm_start.Manager1.Message.Community:='private'; frm_start.Manager1.Send; chanE1State is a variable in the table. |
bestlihj bestlihj@126.com From: ZhouXu, Peoples Rep of China Posts: 5 Member Since: 05/21/06 |
posted May 24, 2006 11:12 PM I can read the table value.The MG-brower can't set and walk the Agent sample.MG-brower retures the time was out.The agent not add the set into the dart table. |
Reply | PowerSNMP for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |