cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1350
Views
0
Helpful
1
Replies

EXPRESSION-MIB and TCL

Ian Underwood
Level 1
Level 1

I'm having some difficulty with the EXPRESSION-MIB.  I am attempting to set up an expression as part of a TCL script that I'd like to run periodically, but I can't seem to be able to make this work, so I have to be missing something simple.

For my environment I am running a Cisco 1861 w/ 15.1(4)M6, ADVENTERPRISE-K9.

SNMP is configured on my device as such:

snmp-server group NMS v3 auth write SNMP_VIEW access 90

snmp-server group NMS v3 priv write SNMP_VIEW access 90

snmp-server group SNMP_RO v3 auth read SNMP_VIEW access 80

snmp-server group SNMP_RO v3 priv read SNMP_VIEW access 80

snmp-server view READ_ONLY iso included

snmp-server view SNMP_VIEW iso included

snmp-server community writeme RW 90

snmp-server community readme RO 80

snmp-server community TCL_WRITE RW 99

snmp-server manager

#sh access-list 99

Standard IP access list 99

    10 permit 172.31.254.1 (90 matches)

    30 permit 192.168.16.8 (100 matches)

    20 permit 127.0.0.1 (120 matches)

For grins, I am using the example from this page:

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a008023267a.shtml

If I convert just the first line from the first expression example, I get a NO_CREATION_ERROR.  This is what it looks like:

edr1(tcl)#$ 1.3.6.1.4.1.9.10.22.1.2.3.1.3.101.49.101.120.112 -i 6   

{<snmp error type='tcl_snmp_processing_error' value='11' text='NO_CREATION_ERROR: 1.' />}

lcsrma1-edr1(tcl)#SrDoSnmp: received set pdu

CheckMIBView: OID is in MIB view.

FindObjectClassCore: findObject failed

do_sets: can't find object

make_error_pdu: Variable does not exist,

                            and the agent cannot create it.

edr1(tcl)#'

If I used the SNMP commands enabled w/ snmp-server manager:

edr1#snmp set v2c 172.31.254.1 TCL_WRITE oid 1.3.6.1.4.1.9.10.22.1.2.3.1.3.101.49.101.120.112 integer 6     

SNMP Response: reqid 151, errstat 11, erridx 1

ciscoExperiment.22.1.2.3.1.3.101.49.101.120.112 = 6

lcsrma1-edr1#

process_mgmt_req_int: UDP packet being de-queued

SrDoSnmp: received set pdu

CheckMIBView: OID is in MIB view.

FindObjectClassCore: findObject failed

do_sets: can't find object

make_error_pdu: Variable does not exist,

                            and the agent cannot create it.

edr1#

And finally, from one of my FreeBSD systems:

[boxen]# snmpset -v 2c -c TCL_WRITE 192.168.16.1 1.3.6.1.4.1.9.10.22.1.2.3.1.3.101.49.101.120.112 integer 6

Error in packet.

Reason: noCreation (That table does not support row creation or that object can not ever be created)

Failed object: SNMPv2-SMI::enterprises.9.10.22.1.2.3.1.3.101.49.101.120.112

Even running the script here fails to set the MIB, despite correct configuration.

https://supportforums.cisco.com/docs/DOC-19587

I figure I have to be missing something as far as using this feature goes.

++I;       

++I;
1 Reply 1

kerstin-534
Level 1
Level 1

you platform does not support the EXPRESSION-MIB.

Please verify this in the Cisco MIB Loator

Review Cisco Networking for a $25 gift card