Welcome to advance GET mode, type ? for help. get> sysUpTime.0 Timeticks: (144975302) 16 days, 18:42:33.02 134527040 get> sysUpTime No Such Instance currently exists at this OID 134527040 get> sysUpTime.0 No Such Instance currently exists at this OID 134527040 get> ---------------------------------------------------------------- void get_advance1(char *get_adv_val) { pdu = snmp_pdu_create(SNMP_MSG_GET); get_node(get_adv_val, id_oid, &id_len); snmp_add_null_var(pdu, id_oid, id_len); status = snmp_synch_response(sess_handle, pdu, &response); for(vars = response->variables; vars; vars = vars->next_variable) print_value(vars->name, vars->name_length, vars); printf("%d\n", id_oid); } ----------------------------------------- case '9': system("clear"); printf("Welcome to advance GET mode, type ? for help.\n"); printf("get> "); scanf("%s", get_adv_val); while (strcmp (get_adv_val, "exit")) { open_session(ip); get_advance1(get_adv_val); printf("get> "); close_session(); scanf("%s", get_adv_val); } system("\nread -rs -n1 -p 'Press any key to continue ...'; echo"); break; ---------------------