Create a script pour changer a voice-conversion rules

Hi all,

I have a client who wants to when he is on leave and that its closed society the opportunity to redirect all calls arriving on its head-end Agency agreed to take messages.

I told him he can call me before leaving me to but not pour of suitable ca him... he wants to be the Girardon him even.

I wonder therefore if there is the possibility to create a script that will initiate a telnet on the CPU connection and back orders I would do if the customer called me...

Thanks in advance,

Roman

Hello Romain, and I salvation also Eric who is interested in the solution.

Pour to do what you want to do, we will use 2 tools: PLINK.exe and the AUTOIT.

TUS plink.exe

http://www.chiark.greenend.org.uk/~sgtatham/PuTTY/download.html

PLINK is the version of PUTTY console.

PLINK will help us to establish administration sessions encrypted with our equipment.

This is the command-line so big advantage, UN script can therefore include it in. That's what we do.

Copy the utility to a directory on your disk.

Œuvres a session console in this directory and launch a SSH session on the UC500 (user id ADMIN and address IP UC 500 = uc500_IP_ADDR).

Plink - ssh [email protected] / * / _IP_ADDR

Œuvres administrator.

OK on one our SSH client.

TUS now more AUTOIT.

http://www.autoitscript.com/AutoIt3/index.shtml

Download the ZIP package version. How you install anything on your PC. Unzip the package and go.

AutoIt is a suite of tools absolutely magical (the word is weak).

With Autoit can completely automate any Windows application. And without exception.

This script amendments tool of will automatically launch windows programs and in addition to simulate user action in the application. And this by moving the mouse, buttons of the clicking on and typing while reading the contents of the windows, and well tempered by typing keyboard to the. And all instead of user.

On can USE autoit pour to allow any to answer E-Mails only PC!   (Make a PC completely human?   )

Just imagine the power of such a tool.

I use it for everything and anything.

And in this case, I use pour automate connections admins on Cisco equipment.

You'll find en example a script that allows to connect in SSH to your favorite UC 500. This script displays the result of a show version.

Here's the script.  call the session_admin_1.au3

EARLY SCRIPT ===>

$ip_addr = '192.168.10.1 '.
$user = "cisco".
$password = "cisco".
$enable_password = "cisco".
$commande = "plink - ssh" & $ip_addr
;
Run (@ComSpec & "/ c" & $commande, "", @SW_MAXIMIZE)
;
Sleep (500)
Send ($User)
Send ("{Enter}")
Sleep (500)
Send ($Password)
Send ("{Enter}")
Sleep (500)
Send ("Enable")
Send ("{Enter}")
Send ($enable_password)
Send ("{Enter}")
Send "(terme len de 0") "
Send ("{Enter}")
Send ("see the version")
Send ("{Enter}")
Sleep (500)

;===> END SCRIPT

Copy in the same directory as PLINK.exe.

And copies also in the same directory the package AUTOIT AUTOIT3.exe utility

Pour the script of this Tester

1 / copy your script into the directory where the utility autoit3.exe
2 / works a session console in this directory
3 / type the following command: c:\>repertoire_autoit\session_admin_1.au3 autoit3

And normally you need to see an educational SSH session on your CPU and see the version displayed on the screen.

The syntax of the commands in the script is quite simple to understand and very well before in the help file provided in the package.
I think that you won't hurt to adaptar to your needs.

Will notice me instructions pour to login at UC are 500 it contained in variables at the beginning of the script.

If so wishes display windows question marks for the administrator, to ask him to type this information on can adapt the script as a suit.

EARLY SCRIPT ===>

$ip_addr = InputBox ("Login", "IP address?","", "", 200 150 ")
$user = InputBox ("Login", "Administrator?", "","", 200-150)
$password = InputBox ("Login", "Password?", "","", 200-150)
$enable_password = InputBox ("Login", "Enable password?", "","", 200-150)
$commande = "plink - ssh" & $ip_addr
Run (@ComSpec & "/ c" & $commande, "", @SW_MAXIMIZE)
Sleep (500)
Send ($User)
Send ("{Enter}")
Sleep (500)
Send ($Password)
Send ("{Enter}")
Sleep (500)
Send ("Enable")
Send ("{Enter}")
Send ($enable_password)
Send ("{Enter}")
Send "(terme len de 0") "
Send ("{Enter}")
Send ("see the version")
Send ("{Enter}")
Sleep (500)

;===> END SCRIPT

This allows not to let the admin passwords into a file readable in clear on the workstation.

But the coup-ins me the first script and what I do, is to transform the script en executable with the AUT2EXE.exe utility.

So passwords are hidden inside "l" executable. And they are no longer visible.

Then the script launches directly clicking on it without needing the utility 'autoit.exe '. During the generation of the 'executable,
on can choose its icon.

So as you understand, I'll let you make your scripts yourself. A first script to make the configuration change, then another pour back
the configuration in the initial state.

It goes without saying that to write the scripts correctly! We can well imagine the power of the thing. Create executable files from the scripts
is a good way to lock their use to a single use. On may, if necessary, make scripts more complex pay allow them to more controls. Let me know if it is necessary.

The scope of Autoit is huge! Can be used to create complete applications. I will probably have the opportunity again to illustrate it in tea items.

Want current month.

Patrick

Tags: Cisco Support

Similar Questions

  • Create a script en recurcif - photos of optimization pour web

    Hi all

    I need to create a script in Photoshop that will allow me to resize images pour an optimal web view. My problem is it as images of a website and the tree of the site and the images is quite complex, and therefore images of beaucoup records of are distributed in and subfolders. I didn't find how to treat massively images contained in sub folders, and keep records in the exposrt architecture.

    Solution of someone knows - it, please?

    Thank you all.

    Hello everyone, I need to create a Photoshop script that will allow me to resize the images for optimal web viewing. My problem is that these images to a Web site and the site tree and images is quite complex, so the images are divided into several folders and subfolders. I didn't find how massively process images contained in subfolders and preserve architecture export files. Anyone knows the solution please? Thanks to you all.

    I think that in the French version are called Scripts but action would probably not your needs.

    Script (in JavaScript) you can post on the Forum of Photoshop scripts:

    Photoshop scripts

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

  • Create different conversion rules in SRST mode

    Hello world

    Have you ever tried to create rules of different translations for 'normal behaviour' and 'Behaviour SRST'?

    This is my problem:

    In my company, we use waiting them console ARC for the reception, so on my H.323 gateway, I have the following translation-rule:

    translation of the voice-rule 1

    rule 1 / ^ $/ /850/ (because the provider sends just the extension is empty when you call the reception)

    The 850 leads to a CTI route point in CUCM, then the call goes to the CRA can.

    But when the CUCM is broken and phones of failover mode SRST, reception is not available in addition to the outside, because routing CTI 850 is no more accessible. Thus, when SRST mode, I stand at the door of entry use this translation:

    rule 1 / ^ $/ /500/

    so that calls to the home go to the actual DN of the receiving phone.

    It is a kind of a conditional routing... (if mode normal, like this, but in SRST translate, translate like that...)

    Have you guys tried to do something like that?

    I've heard of conversion rules of voice in SRST mode (in call-manager-backup mode), but it doesn't seem to work...

    Good day

    Rémi

    Use the command alias under SRST.

    Chris

    Sent by Cisco Support technique iPhone App

  • Installation of extensions .zxp script pour CC and CS

    Hello

    We have in our computer equipment, configurations MacOS containing both of the CC2014 (pour InDesign) and CS6 (pour Photoshop and Illustrator).

    The installer we need fairly regularly and update of extensions .zxp on these posts.

    Pour CELA, we install the extension a first time with Adobe Extension Manager CC2014 pour InDesign, then a second time with AEM CS6 pour Photoshop and Illustrator.

    This type of configuration for more than 200 posts and it becomes quite solo to install manually.

    I would like to know if it was possible to deploy these extensions remotely by creating a script for example.

    The but is of course to be able to install on the same machine, the same extension on both CC and CS versions.

    We mainly use the MacOS 10.10 and 10.11.

    For deployment, we currently use Apple Remote Desktop.

    Thank you in advance pour your help.

    Rodrigues

    OK, I found:

    Pour the CS6:

    "' / Applications/Adobe Extension Manager CS6/Adobe Extension Manager CS6.app/Contents/MacOS/Adobe Extension Manager CS6" - remove - install zxp="/Path.To.Extension/Extension.zxp" "

    Pour the CC:

    "/ Applications/Adobe Extension Manager CC/Adobe Extension Manager CC.app/Contents/MacOS/ExManCmd '-install ' / Path.To.Extension/Extension.zxp '.

    The ticket can be closed.

    Thank you.

  • script to change the data type of column

    Hi gurus of the oracle.

    I have 190 tables in my database.

    I have the column type CHAR of all these tables data.

    I need to change the data type of CHAR in VARCHAR2 for all these tables...

    There the script to change the data type of all tables at once?

    Please help me in this regard.

    Thanks in advance

    Concerning

    REDA

    Hello

    There is nothing built-in to Oracle SQL to do.  Maybe your front-end has certain characteristics.

    You can write dynamic SQL statements to do.  In other words, you can write a query that the output is a SQL script like this:

    ALTER TABLE TABLE_A CHANGE (A_TXT1 VARCHAR2 (5))

    A_TXT2 VARCHAR2 (10));

    ALTER TABLE TABLE_B CHANGE (B_TXT1 VARCHAR2 (5));

    with one row for each column of type CHAR.  Notice how the first line of output for each table begins with ALTER TABLE... but the later lines at the same table.  Similarly, the last line of a table (which will be the same as the first row, if the table has only one column of type CHAR) to end with a semicolon, but other lines are not.

    Here's a way to generate and execute such a dynamic script in SQL * more:

    -Disable the features that make the output easy to read, but hinder the execution
    SET FEEDBACK OFF
    SET LINESIZE 500
    SET PAGESIZE 0

    -Create fix_char.sql
    COIL c:\some_pathename\fix_char.sql

    SELECT THE CHECK BOX
    WHEN ROW_NUMBER () OVER (PARTITION BY table_name
    ORDER BY column_name
    )  = 1
    THEN 'ALTER TABLE ' | table-name
    || "CHANGE (").
    ELSE «»
    END
    ||        column_name
    ||        "VARCHAR2 (').
    ||        DATA_LENGTH
    ||        ')'
    ||        CASE
    WHEN ROW_NUMBER () OVER (PARTITION BY table_name
    ORDER BY column_name DESC
    )  = 1
    THEN '); "
    Output END AS
    Of user_tab_columns
    WHERE data_type = "CHAR".
    ORDER BY table_name
    column_name
    ;

    SPOOL OFF

    -Turn on the features that make the output easy to read, but hinder the execution
    SET FEEDBACK ON
    SET LINESIZE 80
    SET PAGESIZE 50

    -Fix_char.sql performance
    @c:\some_pathname\fix_char

    It's good to change all the CHARIOT of VARCHAR2 columns.  The CHAR data type is nothing trouble.

  • Can someone help me create a script to repeat to simply open the dialog box to create a link?

    Can someone help me create a script to repeat to simply open the dialog box to create a link?

    the "Connect" command uses the same dialog box as the command to "Place", except for the option "Replace" verified... so, use Ctrl + Shift + P to bring up the place dialog box, select your new image and select the checkbox "replace".

    If check 'Replace' with the mouse slow you down, after you have selected your image, the tab key 'press' 3 times to change the focus, and then press the SPACEBAR to check it out, then ok to place.

  • PowerCLI Script to change the DNS servers and domain name

    Hello

    Brand new to PowerCLI, I'm trying to create a script that will change the domain name and the DNS servers of my ESXi servers. I found that I need to update the Vmware.Vim.HostDnsConfig to update these settings. I created the following script and the following error.

    $config = new-Object VMware.Vim.HostDnsConfig
    $config.domainName = "new.domain.com".
    $config.address = new-Object System.String [] (2)
    $config.address [0] = "10.69.69.80".
    $config.address [1] = "10.69.70.80".

    _this $ = get-view-Id "HostNetworkSystem-networkSystem.

    _this $. UpdateDnsConfig ($config)

    You can not call a method on a null value expression.

    Line: 1 char: 23

    + $_C. UpdateDnsConfig < < < < ($config)

    + CategoryInfo: InvalidOperation: (UpdateDnsConfig:String)], RuntimeException

    + FullyQualifiedErrorId: InvokeMethodOnNull

    I guessed the error message that I need to a value in the host name, I do not need to change the host name. So I create a variable to remove the host name and place it in the $config. Line received host name but still a mistake because the variable is pulling more information that I need.

    $hostname = get-VMHost | Select name

    $config. Hostname = $hostname

    When I insert the above code I have an error.

    Exception by calling 'UpdateDnsConfig' with '1' or the arguments: ' year error occurred during the configuration of the host.
    Line: 1 char: 23
    + $_C. UpdateDnsConfig < < < < ($config)
    + CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)
    + FullyQualifiedErrorId: DotNetMethodException

    When I look at the $config I see the following.

    DHCP: false
    VirtualNicDevice:
    HostName: @{Name = ESXI01}
    Domain name: new.domain.com
    Address: {10.69.69.80, 10.69.70.80}
    SearchDomain:
    DynamicType:
    DynamicProperty:

    Of course the @{Name = ESXI01} will not work. Someone can explain how to get a host name in a variable and pass it to the Config.Hostname?

    You should be able to do easily by using the command "set-vmhostnetwork.

    I don't think that you can just write to VMWare.Vim.HostDnsConfig.

  • Create the script from another script using GUEST

    Oracle 11

    Instead of having to make a link to a different database, I want to create 2 scripts that are run from a shell script and run separately. Run Script1 in Database1 would create 2 Script using PROMPT to create the second script while entering a date of base1 to base2. I've almost got it but the problem is... Script2 using COPY FROM and I need to put a "-" at the end of each line that the GUEST takes as a literal instead of as part of the output.

    SCRIPT1:
    set pagesize 0
    set trimspool on
    set linesize 2000
    set echo off
    set verify off
    set feedback off
    set sqlblanklines on
    
    spool /home/michelle/sql_scripts/sl_dtc_copy2.sql
    
    PROMPT whenever sqlerror exit sql.sqlcode rollback
    PROMPT SET ARRAYSIZE 5000
    PROMPT SET COPYCOMMIT 20
    PROMPT set linesize 4000
    PROMPT 
    PROMPT COPY FROM {username}/{pswd}@{DB2}  TO {username}/{pswd}@{DB2}
    PROMPT CREATE SL_DTC_TMP USING SELECT DISTINCT 
    PROMPT col1, col2, col3
    PROMPT FROM dual
    PROMPT WHERE veh_data_elements_cd = 'ODO_READ'
    PROMPT and       dh.data_collected_timstm >=  
    select trunc(sysdate)-7 from dual; 
    PROMPT and       substr(vdh.vin,10,1) in ('A','B','C','D') 
    PROMPT /
    
    PROMPT spool off
    PROMPT exit
    
    spool off
    exit
    SCRIPT2 NOW:
    whenever sqlerror exit sql.sqlcode rollback
    SET ARRAYSIZE 5000
    SET COPYCOMMIT 20
    set linesize 4000
    
    COPY FROM {username}/{pswd}@{DB2}  TO {username}/{pswd}@{DB2}
    CREATE SL_DTC_TMP USING SELECT DISTINCT
    col1, col2, col3
    FROM dual
    WHERE veh_data_elements_cd = 'ODO_READ'
    and       dh.data_collected_timstm >=
    12-AUG-11
    and       substr(vdh.vin,10,1) in ('A','B','C','D')
    /
    spool off
    exit
    SCRIPT2 HOW IT SHOULD BE:
    -A [SPACE] AND a [-] at the end of each line
    -THE DATE MUST HAVE THE APOSTROPHES AND PREFERABLY AT THE END OF THE PREVIOUS LINE
    whenever sqlerror exit sql.sqlcode rollback
    SET ARRAYSIZE 5000
    SET COPYCOMMIT 20
    set linesize 4000
    
    COPY FROM {username}/{pswd}@{DB2}  TO {username}/{pswd}@{DB2} -
    CREATE SL_DTC_TMP USING SELECT DISTINCT -
    col1, col2, col3 -
    FROM dual -
    WHERE veh_data_elements_cd = 'ODO_READ' -
    and       dh.data_collected_timstm >= '12-AUG-11' -
    and       substr(vdh.vin,10,1) in ('A','B','C','D')
    /
    spool off
    exit
    Thank you

    Oops, sorry, I forgot to change the line.
    Must be double quotes to delimit the orignial:

    SELECT 'WHERE veh_data_elements_cd = ''ODO_READ'' -' from dual
    

    Kind regards
    Sylvie

  • Change the voice of Siri

    I just downloaded iOS 10. I can't find the menu to change the voice of Siri. I have searched for it in the settings, but there is nothing there. Is this an option for iPhones only?

    It is also for iPads (don't know if it is available in all countries), I have it on my Mini 2:

    This is where you're looking?

  • Is it possible to change the voice in the maps app?

    The voice in the maps app is boring, that I just want to be able to change it.

    Hi joegadney,

    Thank you for using communities Support from Apple.

    The voice you hear on your navigation Maps is also the voice you have selected for Siri.  You can change it by following the directions below:

    Change the language or the voice of Siri

    To change the voice of Siri, go to settings > general > Siri > voice between the sexes. To change the language of Siri, go to settings > general > Siri > language. Then choose from the list of languages that understands and speaks of Siri.

    You can use Siri in any country, with the supported languages. Siri is designed to recognize the accents and dialects of the supported country, Siri accuracy rate will be higher for natives. Learn who has Siri is supported in what countries.

    Use Siri on your iPhone, iPad or iPod touch

    Take care.

  • Create a script to list all the .bat and .cmd files with the dir command &

    Hello

    Im trying to create a script that will list all the .bat and .cmd files in a specific folder and add the data to a new file (file.txt) - example below:

    dir c:\>desktop\file.txt/OD
    dir d:\>>desktop\file.txt
    dir f:\jobs\*.bat>>desktop\file.txt/OD

    IM able to search the F drive and the list of all the .bat files using a generic parameter, but ideally id like to search for .bat and .cmd files, but whenever I have it try does not work. Any ideas?

    I tried the following:

    dir c:\>desktop\file.txt/OD
    dir d:\>>desktop\file.txt
    dir f:\jobs\*.bat,*.cmd>>desktop\file.txt/OD

    Any help is appreciated, the reason for which I need to check all the .bat and .cmd files is to ensure that the scripts on a cluster are all data, so need them all listed in a doc if possible

    Thank you

    Hello

    Thank you for visiting the Microsoft answers community site. Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for guys official script Forum. Please ask your question in the official Scripting Guys Forum.

    http://social.technet.Microsoft.com/forums/en-us/iTCG/threads

  • How can I create a shortcut to "change user" on the desktop using rundll32.exe in Vista Home Premium?

    I am trying to create the shortcut to "change user" using rundll32.exewithout to create the shortcut to "lock", only to pass the user. I already know that I have to right click on an empty space on the desktop, press New\Shortcut and type%windir%\System32\rundll32.exe user32.dll,but not after the comma. Type so I can only create the shortcut to "change user" and not the shortcut to 'lock '? (This means that I don't want this: %windir%\System32\rundll32.exe user32.dll, LockWorkStation, with LockWorkStation after him.)

    Unfortunately, it can be done in your version of Vista (or so they say, hang on a moment.)  I found the article according to that cllaims to do in Vista Basic and Vista Home Premium in addint a file and shows a set of procedures.  As it is a 3rd party file, do so at your own risk. http://www.vistarevisited.com/2008/08/02/create-a-desktop-shortcut-to-switch-users-in-vista/.  NOTE: This is not how you suggested higher, but if it works who cares?

    In case you don't want to consider the solution above, you have refused, here is the procedure (how to do it in other versions of Vista):http://www.vistax64.com/tutorials/136969-switch-user-desktop-shortcut.html.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to change the voice of Anna in Windows 7 Ultimate

    I want to change the voice of the narrator in Windows 7 Ultimate how can I do that please help

    Hello

    You can download packages TTS from the internet, some are free some are paid, those paid is obviously better.

    Check out these

    • http://www.Acapela-Group.com/Acapela-for-Windows/
    • https://www.CereProc.com/en/products/windows_sapi

    Good luck!

  • Script to change the key of win8 silently

    I need a script to change the key for win8 silently, there are hundreds of systems whose key is goinng expires soon, so I need a script that can the key Active silently without user interaction. Planning to deply the script using SCCM, any suggestions would be helpful. Thanks in advance...

    Since this isn't a scenario of domestic consumption current, you'll get best advice of experts of INFORMATICS:

    http://forums.technet.Microsoft.com

Maybe you are looking for

  • How to disable the automatic connection at the opening of Thunderbird?

    Thunderbird will automatically connect with my server when opening. I want a login Panel that requires that I get my password. I checked the tools > Options > advanced but find no option "saved passwords".

  • Icons next to the site in the bookmarks folder names have ceased to appear

    I am currently using Firefox 9.0.1. For some reason, the icons of small site next site listed in my bookmarks folder names stopped appearing. Is it possible to recover.

  • The issue of email delivery

    Here's the scenario, the user receives an email with 4 Accessories: a PDF document, a DOCX and two e-mails attached to it. Inside each of these two attachments from message, there is an attached Excel file. The user then sends this message. E-mail re

  • What is the best external display for use with Tecra A8?

    It is perhaps off of a question, but I'm in the market for an external monitor for my Tecra A8. The price range of 400 euro round. Any suggestions?

  • Highlights with false colors

    Just my DVF-L700 was updated with false colours. Very handy when taking Log2 S to display this 18% Gray card. But I really don't understand why after that rose (41, 3-45, 3%) there is nothing before yellow (102, 4-105, 4%)? Highlights, aren't suppose