Can someone send me a fragment that will accomplish the same goal?
set fileid [ open "|/usr/local/bin/snmpwalk $hostname $comm_name .1.3.6.1.4.1.2021" ]
while { [gets $fileid data ]>=0 } {
set xx [ split $data "=" ]
set idx [ string trim [ lindex $xx 0 ] ]
set snmpdata($idx) [ string trim [ lindex $xx 1 ] ]
# puts "$idx : $snmpdata($idx)"
}
Thanks
-- Bill Harris Internet America (Systems)
-- !! 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.