How to generate Java code from the IF-MIB using AgenPro

Hi Bill, setting the log level on the Agent category is sufficient for having the log output of the simulation agent. That you do not see any log output is quite unusual and I do not have any idea how this could happen.

If you use the start parameters as follows:

udp:0.0.0.0/4700

You should get the following log output (at the end):

...
2023-07-31T05:34:55.097880Z  INFO	SNMP4J.agent.AgentConfigManager		Agent state advanced to 30
2023-07-31T05:34:55.107300Z  INFO	SNMP4J.transport.TLSTM			TCP address 0.0.0.0/0 bound successfully
2023-07-31T05:34:55.109217Z  INFO	SNMP4J.transport.DefaultUdpTransportMapping	Listening on socket 0:0:0:0:0:0:0:0/4700
2023-07-31T05:34:55.109721Z  INFO	SNMP4J.agent.AgentConfigManager			Agent state advanced to 40
2023-07-31T05:34:55.109771Z  INFO	SNMP4J.transport.DefaultUdpTransportMapping	Listening on socket 0:0:0:0:0:0:0:0/56556
2023-07-31T05:34:55.112388Z  INFO	SNMP4J.agent.mo.snmp.NotificationOriginatorImpl		Notification coldStart reported with [] for context
2023-07-31T05:35:00.143Z  INFO	SNMP4J.agent.mo.snmp.NotificationOriginatorImpl		Sent notification with ID 1 INFORM[requestID=947435257, errorStatus=Success(0), errorIndex=0, VBS[sysUpTime.0 = 37; snmpTrapOID.0 = coldStart]] to CommunityTarget[address=127.0.0.1/162,version=1,timeout=2500,retries=1,securityLevel=1,securityModel=1,securityName=public,preferredTransports=null]
2023-07-31T05:35:00.146955Z  INFO	SNMP4J.agent.mo.snmp.NotificationOriginatorImpl		Sent notification with ID 1 TRAP[requestID=947435258, errorStatus=Success(0), errorIndex=0, VBS[sysUpTime.0 = 540; snmpTrapOID.0 = coldStart]] to CommunityTarget[address=127.0.0.1/162,version=1,timeout=2500,retries=1,securityLevel=1,securityModel=1,securityName=public,preferredTransports=null]
2023-07-31T05:35:00.158698Z  INFO	SNMP4J.agent.mo.snmp.NotificationOriginatorImpl		Sent notification with ID 1 TRAP[{contextEngineID=80:00:13:70:01:7f:00:00:01:a9:43:a1:50, contextName=}, requestID=947435259, errorStatus=0, errorIndex=0, VBS[sysUpTime.0 = 541; snmpTrapOID.0 = coldStart]] to UserTarget[address=127.0.0.1/162,version=3,timeout=2500,retries=1,securityLevel=3,securityModel=3,securityName=SHA256AES128,preferredTransports=null, authoritativeEngineID=80:00:13:70:01:7f:00:00:01:a9:43:a1:50, securityLevel=3]
2023-07-31T05:35:00.161461Z  INFO	SNMP4J.agent.mo.snmp.NotificationOriginatorImpl		Sent notification with ID 1 V1TRAP[reqestID=0,timestamp=0:00:05.42,enterprise=zeroDotZero,genericTrap=0,specificTrap=0, VBS[]] to CommunityTarget[address=127.0.0.1/162,version=0,timeout=2500,retries=1,securityLevel=1,securityModel=1,securityName=public,preferredTransports=null]

Hello Frank:

Could it be that the issue is specific to MacOS Ventura 13.5?

On which operating system are you testing?

Regards,

Bill

I am testing on MacOS Ventura 13.5

Hello Frank:

It is very strange that you are not getting the issue on your MacOS Ventura 13.5.

I changed the Agent start parameters to udp:0.0.0.0/4700 and also verified that the assigned log priority for the agent is set to INFO. Still no logs and the agent dialog window is hung on “Starting Simulator Agent…” I am using an Intel-based Mac running MacOS Venture 13.5 with 64GB RAM and lots of disk space.

Regards,

Bill

Hi Bill,

I tested with Intel CPU and M1 MAX. I all cases log is showing and simulation agent starts, even if all MIBs in a repository are selected for code generation (and therefore selected for the simulation agent).

Best regards,
Frank

Hello Frank:

Thank you for the information.

For some unknown reason I am unable to get the same results.

Regards,

Bill