![]() |
![]() |
![]() |
![]() |
![]() |
Running Your Application
Your application acts as snmp agent. It connects to some network entity, sends request to snmp port and receives reply with the requested information.
If you have chosen the network printer as your network entity and implemented additional debug print, you might get a log like this for the sysDescr request:
snmp_request : Sending request #1001snmp_request :snmp_request : datalen = 40snmp_request : BER encoded = 30 26 2 1 0 4 6 70 75 62 6c 69 63 a0 19 2 1 2 2 1 0 2 1 0 30 e 30 c 6 8 2b 6 1 2 1 1 1 0 5 0snmp_request : Sending this message to SNMP agent 192.168.0.20:161...snmp_request : 40 bytes sentsnmp_reply :snmp_reply : Receiving data from socket...snmp_reply : Received 131 bytes reply from SNMP agentsnmp_reply : BER encoded = 30 81 80 2 1 0 4 6 70 75 62 6c 69 63 a2 73 2 1 2 2 1 0 2 1 0 30 68 30 66 6 8 2b 6 1 2 1 1 1 0 4 5a 48 50 20 45 54 48 45 52 4e 45 54 20 4d 55 4c 54 49 2d 45 4e 56 49 52 4f 4e 4d 45 4e 54 2c 52 4f 4d 20 42 2e 32 35 2e 30 31 2c 4a 45 54 44 49 52 45 43 54 2c 4a 44 31 32 30 2c 45 45 50 52 4f 4d 20 56 2e 32 38 2e 37 32 2c 43 49 44 41 54 45 20 30 37 2f 32 30 2f 32 30 30 34snmp_reply : Received in SDL process snmp_processsnmp_reply : Received 1 values for request # 1001snmp_reply : Value #1 = HP ETHERNET MULTI-ENVIRONMENT,ROM B.25.01,JETDIRECT,JD120,EEPROM V.28.72,CIDATE 07/20/2004
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |