Hi everybody,

 

I’m newbie in net-snmp, so sorry if the question has been already answered in the mailing lists, but I’ve been looking for I while and my problem remains :-(

 

I’m using the Windows’s distribution (V 5.1.3-1).

 

I’m trying to use the pass feature for executing an executable (a BAT) but it seems is not working.

Here the files:

 

Snmpd.conf

pass .1.3.6.1.4.1.2021.255    test.bat

 

 

test.bat

@echo off

echo [START]         >> x

echo Argumento1 : %1 >> x

echo Argumento2 : %2 >> x

echo Argumento3 : %3 >> x

echo [END]           >> x

echo .1.3.6.1.4.1.2021.255

echo integer

echo 123

:fin

@echo on

 

I have added som “debug” information to check if the BAT is called or not.

When I execute

 

snmpget -v 2c -c private localhost .1.3.6.1.4.1.2021.255

UCD-SNMP-MIB::ucdavis.255 = No Such Instance currently exists at this OID

 

And the file x is empty.

 

Any hint would be really nice J

 

Thanks a lot,

 

Isi,

 

 

 

 

 

Reply via email to