Dear all,

Just some more info on my problem if I use a basic shell script as my
pass
executable it works, but if my executable is a c program it doesn't :

config file :

pass .1.3.6.1.4.1.96.255.1.0 /tmp/a/lbclient
pass .1.3.6.1.4.1.96.255.2.0 /tmp/a/test.sh

output of the script and executable 

[EMAIL PROTECTED] root]# /tmp/a/lbclient 
.1.3.6.1.4.1.96.255.1.0
integer
32

[root@ root]# /tmp/a/test.sh  
.1.3.6.1.4.1.96.255.2.0
integer
50

but if I do a snmpget to the two variables:

[EMAIL PROTECTED] snmpget -v2c -c community machine .1.3.6.1.4.1.96.255.1.0
SNMPv2-SMI::enterprises.96.255.1.0 = No Such Instance currently exists
at this OID

[root@ root]# snmpget -v2c -c community castor .1.3.6.1.4.1.96.255.2.0
SNMPv2-SMI::enterprises.96.255.2.0 = INTEGER: 50


Can you give me some hints ??? (I'm using NET-SNMP version: 5.1.1)

Thank you very much
Hugo Cacote

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hugo
Monteiro Cacote
Sent: Friday, June 11, 2004 6:22 PM
To: [EMAIL PROTECTED]
Subject: pass extension 



Dear all,

I've being using the pass method to extend as method to extend the
agent. 
This has being working ok in uc-snmp, but now I have upgraded the
machine 
for the newest net-snmp version and it doesnt work ....
snmpget -v2c -c community machine  .1.3.6.1.4.1.96.255.1.0
SNMPv2-SMI::enterprises.96.255.1.0 = No Such Instance currently exists
at 
this OID

If I see the logs it seems that everything is ok ....

004-06-11 18:03:09 trace: var_extensible_pass(): ucd-snmp/pass.c, 280:
2004-06-11 18:03:09 ucd-snmp/pass: pass-running:  /tmp/a/lbclient -g 
.1.3.6.1.4.1.96.255.1.0
2004-06-11 18:03:09 trace: netsnmp_call_handler(): agent_handler.c, 369:
2004-06-11 18:03:09 handler:returned: handler old_api returned 0
2004-06-11 18:03:09 trace: netsnmp_call_handler(): agent_handler.c, 369:
2004-06-11 18:03:09 handler:returned: handler bulk_to_next returned 0
2004-06-11 18:03:09 trace: netsnmp_handle_request(): snmp_agent.c, 2810:
2004-06-11 18:03:09 results: request results (status = 0): 2004-06-11
18:03:09 trace: netsnmp_handle_request(): snmp_agent.c, 2814:
2004-06-11 18:03:09 results:    SNMPv2-SMI::enterprises.96.255.1.0 = No 
Such Instance currently exists at this OID
2004-06-11 18:03:09 trace: _snmp_build(): snmp_api.c, 2769:


Can someone give me some hints ....



Thanks,
Hugo



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Net-snmp-users mailing list [EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to