function pdu(options) {
  this.options = options;

  if (typeof options.host === "undefined") {
    throw "Please define a host";
  }
  community = this.options.community || 'private'
  this.session = snmp.createSession(this.options.host, community, {
    version: snmp.Version1,
    timeout: 1000
  });

  // beginning of all oid's
  this.oid = "1.3.6.1.4.1.318.";
}
/**
 * Create the SNMP session
 *
 * @param options
 */
Create the SNMP session
@param options
Create the SNMP session @param options
function pdu(options) {
  this.options = options;
  if (typeof options.host === "undefined") {
    throw "Please define a host";
  }
  community = this.options.community || 'private'
  this.session = snmp.createSession(this.options.host, community, {
    version: snmp.Version1,
    timeout: 1000
  });
  this.oid = "1.3.6.1.4.1.318.";
}
function pdu ( options ) { this . options = options ; if ( typeof options . host === "undefined" ) { throw "Please define a host" ; } community = this . options . community || 'private' this . session = snmp . createSession ( this . options . host , community , { version : snmp . Version1 , timeout : 1000 } ) ; this . oid = "1.3.6.1.4.1.318." ; }
Create the SNMP session
 @param options
Create the SNMP session @param options
// beginning of all oid's