⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netsnmp.html

📁 snmp based application it is used to get the info of snmp
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../org/netsnmp/OID.html">OID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#usmSHAAuthOID">usmSHAAuthOID</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#doDebugging(boolean)">doDebugging</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables net-snmp stderr debugging</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#enableStderrLogging(boolean)">enableStderrLogging</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method enableStderrLogging  Enables or disables the stderrlogging Equivalent to the netsnmplib calls snmp_disable_stderrlog and snmp_enable_stderrlog</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#getNetSNMPVersion()">getNetSNMPVersion</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the version of net-snmp that the native library is is using.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#getReleaseVersion()">getReleaseVersion</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the netsnmpj release name</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;org.netsnmp.agentx.AgentX</CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#registerAgentX(org.netsnmp.OID, org.netsnmp.agentx.AgentX, int)">registerAgentX</A></B>(<A HREF="../../org/netsnmp/OID.html">OID</A>&nbsp;oid,               org.netsnmp.agentx.AgentX&nbsp;agentObject,               int&nbsp;flags)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#setAgentXSocket(java.lang.String)">setAgentXSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;portSpec)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#setAgentXSocket(java.lang.String, int)">setAgentXSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;portSpec,                int&nbsp;pingInterval)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;org.netsnmp.agentx.AgentX</CODE></FONT></TD><TD><CODE><B><A HREF="../../org/netsnmp/NetSNMP.html#unregisterAgentX(org.netsnmp.OID)">unregisterAgentX</A></B>(<A HREF="../../org/netsnmp/OID.html">OID</A>&nbsp;oid)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unregisters an agent at OID</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="authNoPriv"><!-- --></A><H3>authNoPriv</H3><PRE>public static final <A HREF="../../org/netsnmp/SecurityLevel.html">SecurityLevel</A> <B>authNoPriv</B></PRE><DL><DL></DL></DL><HR><A NAME="authPriv"><!-- --></A><H3>authPriv</H3><PRE>public static final <A HREF="../../org/netsnmp/SecurityLevel.html">SecurityLevel</A> <B>authPriv</B></PRE><DL><DL></DL></DL><HR><A NAME="defaultHostList"><!-- --></A><H3>defaultHostList</H3><PRE>public static <A HREF="../../org/netsnmp/util/HostLister.html">HostLister</A> <B>defaultHostList</B></PRE><DL><DL></DL></DL><HR><A NAME="MSG_GET"><!-- --></A><H3>MSG_GET</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_GET</B></PRE><DL><DD>Command type to construct pdu to be sent to a remote agent to perform a GET operation.  (i.e. sending a pdu to a remote agent in order to have it send back a pdu containing information)<P><DL></DL></DL><HR><A NAME="MSG_GETBULK"><!-- --></A><H3>MSG_GETBULK</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_GETBULK</B></PRE><DL><DD>Command type to construct a pdu to be sent to a remote agent to perform a GETBULK operation(i.e. large request is made to an agent, and the agent can reply with multiple PDUs instead of one large one.)<P><DL></DL></DL><HR><A NAME="MSG_GETNEXT"><!-- --></A><H3>MSG_GETNEXT</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_GETNEXT</B></PRE><DL><DD>Command type to construct a pdu to be sent to a remote agent to perform a GETNEXT operation (i.e. sending a pdu to remote agent in order to retrieve the next object from the object(s) contained in the pdu.<P><DL></DL></DL><HR><A NAME="MSG_INFORM"><!-- --></A><H3>MSG_INFORM</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_INFORM</B></PRE><DL><DL></DL></DL><HR><A NAME="MSG_REPORT"><!-- --></A><H3>MSG_REPORT</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_REPORT</B></PRE><DL><DL></DL></DL><HR><A NAME="MSG_RESPONSE"><!-- --></A><H3>MSG_RESPONSE</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_RESPONSE</B></PRE><DL><DL></DL></DL><HR><A NAME="MSG_SET"><!-- --></A><H3>MSG_SET</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_SET</B></PRE><DL><DD>Command type to construct a pdu to be sent to a remote agent to perform a SET operation.  (i.e. sending a pdu to a remote agent to set values internally).<BR><BR>   NOTE:  SNMPv2 and above compliant agents may require extra privelages in order to successfully perform this operation.  In addtion not all fields have write access, and agent configurations can restrict write access to certain OID trees while granting others.  Consult the documentation for the remote agent.<P><DL><DT><B>See Also:</B><DD><A HREF="../../org/netsnmp/PDU.html#PDU(org.netsnmp.PDU.PDU_COMMAND)"><CODE>PDU.PDU(PDU.PDU_COMMAND)</CODE></A>, <CODE>snmpd.conf</CODE></DL></DL><HR><A NAME="MSG_TRAP"><!-- --></A><H3>MSG_TRAP</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_TRAP</B></PRE><DL><DL></DL></DL><HR><A NAME="MSG_TRAP2"><!-- --></A><H3>MSG_TRAP2</H3><PRE>public static final <A HREF="../../org/netsnmp/PDU.PDU_COMMAND.html">PDU.PDU_COMMAND</A> <B>MSG_TRAP2</B></PRE><DL><DL></DL></DL><HR><A NAME="noAuth"><!-- --></A><H3>noAuth</H3><PRE>public static final <A HREF="../../org/netsnmp/SecurityLevel.html">SecurityLevel</A> <B>noAuth</B></PRE><DL><DL></DL></DL><HR><A NAME="SNMPv1"><!-- --></A><H3>SNMPv1</H3><PRE>public static final <A HREF="../../org/netsnmp/SNMPVersion.html">SNMPVersion</A> <B>SNMPv1</B></PRE><DL><DD>SNMPVersion object to use to request a SNMP Version 1 session  <pre>  NetSNMPSession sess = new NetSNMPSession() ;     sess.<CODE>setSNMPVersion</CODE>(NetSNMP.SNMPv1) ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -