Advanced Script Execution questions

Advanced Script Execution questions

I am looking for assistance in understanding what can and can't be done using Advanced Scripts in Device Expert as so far I am finding it to be very limited.
 
I am new to DevExpert app but very familiar with NCM type products and Cisco scripting.
This is an existing DevExpert environment but the current staff have not used it much. We have Build # 5980.
 
 
Here are some of my questions
 
1. Can you add a variable (specifically hostname) to the command prompt= section such OR truncate what is expected of the command prompt
 
ex.   I am looking for it to expect a command prompt of "STR0008SWC(config-if-range)#"
 
something like <command prompt=']<hostname>(config-if-range)#'>interface range g0/1 - 48</command>
 
2. Is there any if/then type functionality in the scripting?  I don't seem to find anything referenced in the docs.  I don't even see any type of "do this action on failure" of command prompt response - it just seems to stop all execution.
 
 
My first specific need is the following
 
I have 500+ Cisco 35xx switches - some of which are 24 port and some of which are 48 port.
 
I want to be able to write a single script to go update ports 1-24 on a 24 port switch (but not update ports 25/26 which are uplinks).  And update ports 1-48 on a 48 port switch.
 
I want to be able to run a single script against all switches - I don't want to have to figure out which switches are 24 and which are 48 and separate them out into different device groups and run different scripts against the different groups.
 
I know that on the switch when I run the command
 
interface range g0/1 - 48 on a 48 port switch it will return with a prompt of
STR0008SWC(config-if-range)#
 
and if I run the above command on a 24 port switch it will fail and give the normal config prompt again
STR0008SWC(config)#
 
 
 
Any thoughts or assistance on this item?
 
 
 
                New to ADManager Plus?

                  New to ADSelfService Plus?