Jtag axi memory test tcl script
Hi
For interactive testing memory AXI bus via JTAG AXI master, I use commands:
create_hw_axi_txn wr_txn[get_hw_axis hw_axi_1] -address -data -len 16 -size 32 -type write
create_hw_axi_txn rd_txn [get_hw_axis hw_axi_1] -address -len 16 -size 32 -type read
run_hw_axi wr_txn rd_txn
which output results to stdout
I want to write tcl script for testing all Memory. I am beginner in TCL programming.
How to redirect result of Read transaction in internal variable for comparing read and write data?
Maybe there is script for testing memory
Alexandr
I dont if there is already tcl command to verify this but i will answer your question from tcl point of view
You can assign output to internal variable like
set b [create_hw_axi_txn rd_txn [get_hw_axis hw_axi_1] -address -len 16 -size 32 -type read]
Comapre b with the write data. To see the varible b rub command puts $b
To compare you can use below command . $b is read data 00000_11111 write data here
string compare $b 00000_11111
If this tcl command returns 0 means read data is equal to write data
Similar Messages
-
The states of tcl script is loaded
I develop a tcl script and upload to a router 2811.after loading this script,this script's states is loaded.i think that this script's states is registered is correct.
please help me fix this issue.thanksDeveloping and testing tcl scripts is not easy.
If you want professional help doing that, contact me at the address present in my profile. -
Running a TCL script through EEM every 60 seconds
I have a script written in the TCLSH of IOS, I can test this script from the shell using the following commands
LAB-RTR#tclsh
LAB-RTR(tcl)#source flash:test.tcl
NO CALLS
Is there a way I can run this test.tcl script every 60 seconds on the router.
SCRIPT test.tcl
proc get_ints {} {
set syslog [open "syslog:" w+]
#puts "BEFORE\n"
set check ""
set int_out [ exec "show voice call status\n" ]
#puts "INTOUT $int_out\n"
set mylist [regexp -nocase -line -inline {(^([0-9]*|No) active calls? found)} $int_out]
#puts "MYLIST $mylist\n"
foreach int $mylist {
#puts "INT $int\n"
if {$int == "No"} {
puts " NO CALLS\n";
puts $syslog "NO CALLS"
} elseif {[string is integer -strict $int]} {
puts "$int CALLS\n";
puts $syslog "$int CALLS"
} else {
#puts "GARBAGE\n";
close $syslog
#puts ""
puts [eval get_ints]Hey Joseph, Thanks for all your help. I have one last question, so now that I am running my script every 60 seconds if there is an issue I send multiple traps to our monitoring system. Is there any way you can keep track if the trap was already sent I will not send another trap again.
One way I can think of is using a loopback interface. But I would prefer not shutting down the loopback interface just to keep track of what my script is doing.
IF issue {
IF Loop1 is up {
don't send trap
} ELSE {
bring Loop1 up
Send Trap
} ELSE (No issue) {
shutdown Loop1 -
How to run tcl scripts with arguments on OMBPlus
Hi,
I am trying to deploy mappings from OMBPlus. I could do it by saving step by step commands to a tcl file and run it on OMBPlus as
source e:\\mi\\test.tcl
Contents of test.tcl is:
=======================
OMBCONNECT owbdesigner/owbdesigner@humistst:1521:mistst
OMBCC 'S80_DWH_PROJECT'
OMBCONNECT RUNTIME 'CONN_MISTST' USE PASSWORD 'owbruntime'
OMBCC 'S80_OWBTARGET'
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN \
'CRE_MAP' ADD ACTION 'MAPPING_DEPLOY' \
SET PROPERTIES (OPERATION) \
VALUES ('CREATE') SET REFERENCE MAPPING \
'DWH_BA_MAPPING'
OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'CRE_MAP'
puts "Mapping Deployed..."
OMBDISC
===========================
Now i want to pass mapping name as argument/parameter, so that my script can work dynamically. I tried following in test.tcl:
OMBCONNECT owbdesigner/owbdesigner@humistst:1521:mistst
set mapname [lindex $argv 1]
OMBCC 'S80_DWH_PROJECT'
OMBCONNECT RUNTIME 'CONN_MISTST' USE PASSWORD 'owbruntime'
OMBCC 'S80_OWBTARGET'
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN \
'CRE_MAP' ADD ACTION 'MAPPING_DEPLOY' \
SET PROPERTIES (OPERATION) \
VALUES ('CREATE') SET REFERENCE MAPPING \
'$mapname'
OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'CRE_MAP'
puts "Mapping Deployed..."
OMBDISC
and, run it as follows on OMBPlus
source e:\\mi\\test_map.tcl DWH_BA_MAPPING
then it is giving error for invalid arguments.
Can anybody help me to sort it out.
Many Thanks.
DeepaliAs Jorg said, you can pass command line arguments when you start OMBPlus.
If you want to pass parameters from within OMB, just create a proc and then run it...
proc deployMap {mapName} {
set mapName [string toupper $mapName]
OMBCONNECT owbdesigner/owbdesigner@humistst:1521:mistst
OMBCC 'S80_DWH_PROJECT'
OMBCONNECT RUNTIME 'CONN_MISTST' USE PASSWORD 'owbruntime'
OMBCC 'S80_OWBTARGET'
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN \
'CRE_MAP' ADD ACTION 'MAPPING_DEPLOY' \
SET PROPERTIES (OPERATION) \
VALUES ('CREATE') SET REFERENCE MAPPING \
'$mapname'
OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'CRE_MAP'
puts "Mapping Deployed..."
OMBDISC
}Run it like this
deployMap <map_name>You can automatically load the proc when you start OMBPlus but putting it into ombinit.tcl (or put it in another file and put "source myprocs.tcl" at the bottom of ombinit.tcl). -
OMBPlus TCL-script in OWB Designer at startup?
Is there a way to run a OMBPlus script in OWB Designer automatically at startup?
What I would like is a small tcl script that just contains a procedure like:
proc run_script {} {
source "I://OMB//SCRIPTS//2009//DEPLOY//START_DEPLOY.tcl"
Then the users can just access the OMBplus part of the screen and type
OMB> run_script
(This instead of typing the entire source command...)
Is this possible? To automatically run a small script at startup?Hi,
Is this possible? To automatically run a small script at startup?OMBPlus is a Tcl/Java based (Jacl) TCL interpreter and it support auto_load mechanism (with auto_path variable and tclIndexfile).
And please note that this mechanism doesn't work if you start OWB from Windows Start menu (use OWBHOME\owb\bin\win32\owbclient.bat instead).
1) place your small tcl script into directory (for example into c:\tcl_autostart and name of your script small_script.tcl)
2) Modify setowbenv.bat file (in OWBHOME\owb\bin\win32 directory) - add line
SET TCLLIBPATH="C:/tcl_autostart"3) create in c:\tcl_autostart directory file tclIndex (without any file extension!) with contents (the first line must be exact I specify, because TCL interpreter check it before processing tclIndex)
# Tcl autoload index file, version 2.0
set auto_index(run_script) \[list source \[file join $dir small_script.tcl\]\]Now start OMBPlus (with OMBPlus.bat) or OWB (with owbclient.bat) - and you have new command run_script
Tested on OWB 10.2.0.3
Regards,
Oleg
Edited by: Oleg on 29/1/2010 15:33 correct contents of tclIndex -
Cisco OnRamp.tcl script - maximum fax size(s)
Hi all!
For the last several years I've been deploying Cisco's CME solution, and occasionally I've included the OnRamp .tcl script for receiving faxes, converting to .tif files, and forwarding to an email address.
Lately I've had a customer query regarding max size of faxes that can be supported. To wit, they are trying to send a 48 page fax, and in their email inbox they only get the first page. They've tested fax to fax and all works well.
Does anyone know of any sizing limitations, or tweaks I can make to either dial-peers, or hardware, or perhaps the script itself to support any size fax?
Thanks in advance for any help or information.
KevinI tried to configure T37 onramp/offramp fax in my network but after several attempts I failed to apply it completely and just portion of that worked well. despite describing the scenario in many forums (like here), I got nothing!
anyway, I'm going to test it in a simple form. I mean, I want to connect my edge router to PSTN line via an FXO port and via ethernet to internal network. my internal network has many physical fax machines that have gotten their internal tel numbers (like 866, 867, ...) from PBX . so can I use this scenario to configure the router to support these fax machine, or I should connect fax machines directly to router through FXS ports? tnx. -
CSM TCL script or http checksum
Hello,
I need to do some HTTP keepalive based on the http page itself (no error code returned by the server).
With the CSS we were able to do it because the css was doing a checksum of the http page. So when there was changes the service was considered to be down.
I have not seen a similar option with the CSM so it is why I am looking for a tcl script that get the page and look for a regexp in it.
I am having some trouble seeing the service up :( so I don't know if my script is good. I see that it is doing the http get on the server but it does not seem to succeed doing the regexp match...
Here is my script :
# !name = HTTP_TEST
# get the IP address of the real server from a predefined global array csm_env
set ip $csm_env(realIP)
set port 80
set url "GET /supervision/test.jsp"
# Open a socket to the server. This creates a TCP connection to the real server
set sock [socket $ip $port]
fconfigure $sock -buffering none -eofchar {}
# Send the get request as defined
puts -nonewline $sock $url;
# Wait for the response from the server and read that in variable line
set line [ read $sock ]
# Parse the response
if { [ regexp "BD \+ SA OK.*\<BR\>Gateway OK.*\<BR\>Gateway2 OK" $line ] } {
exit 5000
} else {
exit 5001
And the regexp should be looking for :
BD + SA OK
<BR>Gateway OK
<BR>Gateway2 OK
any help is welcome !
ThanksThis URL should help you:
http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_feature_guide09186a00801a75a7.html -
Hello Community,
I have been testing a EEM/Tcl scripts for IP SLA. However, after testing I realised that the script didn't go far enough in identifying the link(s) that has actually gone down.
I was wondering if someone knows any good EEM/Tcl scripts for IP SLA?
Cheers
CarltonWhat about it doesn't work? Is the policy not triggering? Is the IPSLA operation not transitioning state?
-
Hello everyone, okay?
I was thinking of a possibility to use my ACE to monitor a database, in this case a MySQL database Today I use a TCP probe, monitoring the port, but I would go one step further and try to make a connection in the DATABASE.
I would like to see the possibility of a guideline in creating a TCL script to make a simple connection to a database.
The idea is to try to make a connection in a database, run a query / select on any table just to validate its functionality and not just checking if the port is responding.
I do not know how complex it is or what would be my pre -requisites required, but any help would be welcome.
I thought about using an HTTP probe to make this validation and use a web page making the connection to the database, but it ended up creating another layer and if there is any problem in web service, the database would be affected indirectly.
Thank you. All suggestions are welcome.Hi Plinio,
I cannot see any support for testing authentication, SQL queries or connections to a database that is supported directly in TCL at this time.
Here is the TCL guide that expalains the supported commands ( there is a HTTP example probe at the bottom )
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA4_2_0/configuration/slb/guide/script.html
Beyond a TCL TCP probe to the port to test the listener is running, I believe your suggestion of a HTTP TCL script is probably the most accurate way to check the integrity of the database. You could write code to set a certain response to all types of failure scenarios and on the ACE you could then use a HTTP TCL script to parse the response from the web server to identify exactly what has failed in your database and act accordingly.
cheers,
Chris -
To run a tcl script in ombplus
how do i run a script in ombplus
when i give a command ompplus.bat test.tcl the script doesnt run.
it is given in a doc that in INTERACTIVE SHELL the SOURCE should be set as test.tcl
and then ombplus.bat test.tcl command should be given in the ombplus command line.
what is interactive shell in ombplus.
and how to run a tcl script in ombplus.What is in the script?
Try starting ombplus - you get cmd window and then type:
eg.
source c:/test.tcl
and so on... -
EEM / Tcl Script Help Please
Hello Community,
I have been evaluating a Tcl Script posted here sometime ago, designed to help monitor track interfaces and routes, see attached.
I believe I have applied the configurations correctly, however when I test the script by shutting down interfaces nothing happens.
I'm sure its something very simple that I'm missing.
I wonder if someone could take a look at the configs and let me know what I'm doing wrong. I have also attached a diagram.
Cheers
CarltonJoseph,
I did read again and I got it to work :-)
Cheers
On a slightly different topic, is it possible to 'track' a static ip address?
For example, I have the following tracking configured:
track 1 ip route 0.0.0.0 0.0.0.0 reachability
track 2 interface FastEthernet0/0 ip routing
track 3 interface FastEthernet0/1 ip routing
track 4 ip route 180.80.8.4 255.255.255.255 reachability
track 5 ip route 170.70.7.4 255.255.255.255 reachability
R3#show track brie
Track Object Parameter Value
1 ip route 0.0.0.0/0 reachability Up (static)
2 interface FastEthernet0/0 ip routing Up
3 interface FastEthernet0/1 ip routing Up
4 ip route 180.80.8.4/32 reachability Down (no route)
5 ip route 170.70.7.4/32 reachability Down (no route)
However, you will see that track 4 and 5 are down. This is because, although I can ping 180.80.8.4 and 170.70.7.4 the actual ip addresses don't appear in the routing table:
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
170.70.0.0/24 is subnetted, 1 subnets
C 170.70.7.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet1/0
180.80.0.0/24 is subnetted, 1 subnets
C 180.80.8.0 is directly connected, FastEthernet0/1
150.50.0.0/24 is subnetted, 1 subnets
C 150.50.5.0 is directly connected, Ethernet2/0
S* 0.0.0.0/0 is directly connected, FastEthernet1/0
R3#
Therefore, is there way of creating a track for /32 ip addresses?
I hope that makes sense.
Cheers -
Regexp problem with TCL Script
Hello,
I'm having some troubles with my regexp in a tcl script.
My switch 3750 doesn't want to compil my script if there is [0-9] or \d in my script ...
After a show energywise children I'm doing:
set intd [ regexp -all -line -inline "1\/0\/." $result ]
($result is the show energywise cli result)
It work with interfaces from 1/0/1to9.
set intd [ regexp -all -line -inline "1\/0\/.." $result ]
It work with interfaces from 1/0/10to48
but i need to have all interfaces in the same regexp, why "1\/0\/[0-9]+" or "1\/0\/\d+" don't work ?
Here is my ios : c3750-ipservicesk9-mz.122-53.SE1.bin
Anybody have a clue ?
ThanksMaybe need more details, my eem version is :
Embedded Event Manager Version 3.20
Component Versions:
eem: (v320_throttle)2.1.50
eem-gold: (v320_throttle)1.0.4
eem-call-home: (v320_throttle)1.0.4
Event Detectors:
Name Version Node Type
application 01.00 node0/0 RP
mat 01.00 node0/0 RP
neighbor-discovery 01.00 node0/0 RP
identity 01.00 node0/0 RP
syslog 01.00 node0/0 RP
routing 03.00 node0/0 RP
cli 01.00 node0/0 RP
counter 01.00 node0/0 RP
interface 01.00 node0/0 RP
ioswdsysmon 01.00 node0/0 RP
none 01.00 node0/0 RP
oir 01.00 node0/0 RP
snmp 01.00 node0/0 RP
snmp-object 01.00 node0/0 RP
ipsla 01.00 node0/0 RP
snmp-notification 01.00 node0/0 RP
timer 01.00 node0/0 RP
rpc 01.00 node0/0 RP
My problem is here :
if [catch {cli_exec $cli(fd) "show ene chi | include SEP"} result] {
error $result $errorInfo
puts "$result"
foreach intf [ regexp -all -line -inline "00.{10}" $result ] { /* this line is good, it save the mac address of an equipment*/
set intd [ regexp -all -line -inline "1\/0\/.." $result ]
puts "Mac-address:$intf"
puts "test:$intd"
So my code works but the regexp "1\/0\/.." give me the interface from 1/0/1 to 9 betwin { }.
If i try "1\/0\/[0-9]+" or "1\/0\/\d+", it returns nothing, and I have an error at compilation. -
Hi,
Has anyone tested TCL 2.0 scripts with IPIPGW IOS feature set? I found some conflicting information from Cisco's website, one page saying that interactive voice prompts are not supported and another saying that full TCL 2.0 support is included with IPIPGW. I have tested some scripts (no audio promts, just digit collection stuff) with my 3725 (IOS ver 12.3.11T3) with no luck. The incoming VoIP call leg is H.323 and the outgoing is SIP. H.323 - SIP calls are working fine, TCL script is not.
Any tips/comments would be greatly appreciated.12.3 software is capable to do SIP-H323 TCL scripts.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/vvfax_c/callc_c/h323_c/ipipgw/ipgw.pdf
http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_configuration_guide_chapter09186a008022a7ea.html -
Hello,
For one of my customer, I have to write two csm probes:
- One that connects on tcp port 6200, sends the following message "test\\n" and verifies that the answer is "UP"
- Another that checks if ICAP is working or not. To test this, I need to write a probe that makes an "OPTION" ICAP request.
Is it something possible ? If yes, where can I find some guidelines.
Thankssimply go to the CSM software download page and get the TCL scripts file (*.tcl)
Edit the file and should have many examples to use. For your probe #1, you could reuse the echo_probe that sends a line and check the response from the server.
For the 2nd probe, you should probably get more info on how the "option" request works and what response to expect.
This is however definitely possible to do.
Gilles -
How to run .tcl scripts with VTK?
I have a bunch of .tcl scripts that use VTK. How do I run them? I have tcl/tk/vtk installed, but when I try to run `tclsh script.tcl` it outputs errors about VTK. On other distros i saw a binary named `vtk` that could run .tcl scripts out of the box. Is there something like this on Arch?
Thanks.Hi, vtk is in community. It should supply the tcl bindings. I once was the maintainer when it was in AUR. It works here with the tcl examples that come with the vtk package. Have not tested the version in community yet.
Maybe you are looking for
-
Delete Condition Type Depending on Item category Va01
HI all, I wan to delete condition record depending on item category. I have a good link from sap.This link explains how to hide the condition but i want the delete the condition. was badly struck here. http://wiki.sdn.sap.com/wiki/display/ABAP/Manip
-
Photoshop problem isolated to user account.
I am unable to open Adobe Photoshop CS2. An error displays, unrecoverable problem has occurred because something prevented the text engine from being initialized. Support helped me to isolate this problem to my user account. Now I would like to fix t
-
IDoc Packaging + Ack ALEAUD = bad behavior ?
Hi, I'm in version PI 7.11 and I'm studying the IDoc packaging of EhP1 with Acknowledgment (ALEAUD). My scenario is a basic one: File -> PI --> ECC (100 idocs). And then ECC returns Ack. So for the returned Acknowledgment, I have that: - on ECC, I di
-
Hi All, I would like to be able to perform a Column Datatype conversion on a database. I want to find all tables for a schema that has a CHAR type column and then convert it into VARCHAR2 of the same length and MODIFY existing data with a TRIM functi
-
Hello. I'm currently running ColdFusion 9.0 on a Windows Server 2008 R2 machine. I need to uninstall ColdFusion altogether so that I may reinstall it. My ColdFusion came with an 'uninstall' directory, which contains the file "Uninstall Adobe ColdFu