[tkined] createAndGo

From: George Ross (gdmr@dcs.ed.ac.uk)
Date: Fri Apr 07 2000 - 17:34:45 MET DST


-----BEGIN PGP SIGNED MESSAGE-----

Content-Type: text/plain; charset=us-ascii

Suppose I want to create a new row in a table using tnm::snmp. What I
should do is find a free slot in the table, then create a vbl with the
values I want filled in and createAndGo in the row status column? For
example, assuming the tcl variables are set up with the Right Things,

   set vbl [list \
            [list "HP-VLAN!hpVlanIdentName.$free" "$name"] \
            [list "HP-VLAN!hpVlanDot1QID.$free" "$tag"] \
            [list "HP-VLAN!hpVlanIdentStatus.$free" "createAndGo"]]
   if [catch {$snmpS set $vbl} why] {
      puts "snmpCreateVlan: $why"
      return 0
   }
   puts "OK so far..."

It's intended to create a new VLAN on a ProCurve 4000, and indeed it does
appear to do so.

However, the next snmp# operation of any kind that I do appears to reuse the
same vbl instead of the one I give it, and then fails because of that
createAndGo.

First time around:

vbl before: {HP-VLAN!hpVlanIdentName.5 Wire-B} {HP-VLAN!hpVlanDot1QID.5 64} {HP-VLAN!hpVlanIdentStatus.5 createAndGo}
vbl after: {1.3.6.1.4.1.11.2.14.11.5.1.3.1.1.4.1.2.5 {OCTET STRING} Wire-B} {1.3.6.1.4.1.11.2.14.11.5.1.3.1.1.4.1.5.5 Integer32 64} {1.3.6.1.4.1.11.2.14.11.5.1.3.1.1.4.1.4.5 Integer32 createAndGo}

Looks OK. Second time around:

vbl before: {HP-VLAN!hpVlanIdentName.6 Wire-AT0} {HP-VLAN!hpVlanDot1QID.6 74} {HP-VLAN!hpVlanIdentStatus.6 createAndGo}
snmpCreateVlan: badValue 2 {1.3.6.1.4.1.11.2.14.11.5.1.3.1.1.4.1.2.5 {OCTET STRING} Wire-B} {1.3.6.1.4.1.11.2.14.11.5.1.3.1.1.4.1.5.5 Integer32 64} {1.3.6.1.4.1.11.2.14.11.5.1.3.1.1.4.1.4.5 Integer32 createAndGo}

Seems OK before, but the after value is still what it was the first time
around.

Any suggestions? Tnm snapshot 99-08-12 (because I can't easily upgrade
tcl on this machine).

Thanks.
- --
Dr George D M Ross, Division of Informatics, University of Edinburgh
     Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: gdmr@dcs.ed.ac.uk Voice: +44 131 650 5147 Fax: +44 131 667 7209
 PGP: 1024/B74A4F7D 14 E8 B3 00 20 04 68 F8 95 40 CB 36 A4 D4 FA 90

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQCVAwUBOO4AFGU939K3Sk99AQEKHAP/b30wCw4zIuaH2bMQyQmnhm2q08cMEleB
OR0iW+W7Dw0/qj+IS3gTwEP8YY2Ecv+xlZTbHZjnOlkPErring+oHrAfLwng/nx6
loF4pk5Mbntc2FJ4qP41zgSh3lYbu97tb1ac1n3ikllU9078fFhkilIFTasYzQmp
LEpJzltdqP4=
=IFLf
-----END PGP SIGNATURE-----

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:40 MET