Ejemplo n.º 1
0
 private void configBulkPdu(Pdu pdu, MaxRepetition maxRepetion)
 {
     pdu.NonRepeaters   = 0;
     pdu.MaxRepetitions = (int)maxRepetion;
 }
Ejemplo n.º 2
0
        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));
        }