private void configBulkPdu(Pdu pdu, MaxRepetition maxRepetion) { pdu.NonRepeaters = 0; pdu.MaxRepetitions = (int)maxRepetion; }
public System.Collections.Generic.Dictionary <string, string> GetBulk(string startVariable, MaxRepetition maxRepetition) { if (string.IsNullOrEmpty(startVariable)) { throw new System.ArgumentNullException("The startVariable for the " + SnmpOperationType.GetBulk + " operation is null or empty."); } LeafVarBinding leafVarBinding = new LeafVarBinding(); leafVarBinding.Add(startVariable); leafVarBinding.MaxRepetition = maxRepetition; return(this.SendPacket(SnmpOperationType.GetBulk, leafVarBinding)); }