Package org.snmp4j.getnext
Class UsmGetNext
- java.lang.Object
-
- org.snmp4j.getnext.UsmGetNext
-
public class UsmGetNext extends Object
Sample class to run a SNMPv3 GETNEXT operation using the USM security model with SHA256 authentication and AES128 privacy (if non zero length passwords are provided for each).- Version:
- 1.1
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Constructor Description UsmGetNext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitSnmpClassic()static voidmain(String[] args)voidnextClassic(String address, String contextName, String securityName, String authPassphrase, String privPassphrase, String... oids)voidnextFluent(String address, String contextName, String securityName, String authPassphrase, String privPassphrase, String... oids)
-
-
-
Method Detail
-
initSnmpClassic
public void initSnmpClassic() throws IOException- Throws:
IOException
-
nextClassic
public void nextClassic(String address, String contextName, String securityName, String authPassphrase, String privPassphrase, String... oids) throws IOException
- Throws:
IOException
-
nextFluent
public void nextFluent(String address, String contextName, String securityName, String authPassphrase, String privPassphrase, String... oids) throws IOException
- Throws:
IOException
-
main
public static void main(String[] args)
-
-