Cisco IOS Shell (IOS.sh)

Hi,
Lately I was looking for scripting possibilities on Cisco ISR routers.
I found little information about IOS.sh.
Where can I find more information about:
- how to use it
- what's possible with it
- IOS (and maybe HW) requirements
Many thanks for any hints.

IOS.sh is still in its infancy.  It was only recently added to the ISR in 15.1(3)T.  There are many things you may be used to with bash scripting that you cannot yet do in IOS.sh (i.e. redirect command output).  If you want to have more complete scripting, consider using Tcl.  You can either use the Tcl shell (started with the tclsh command) or the Embedded Event Manager Tcl interpreter.  Documentation for tclsh can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_script_tcl.html where as documentation for EEM Tcl can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_policy_tcl.html .  Support for tclsh was added to 12.3(2)T, and support for EEM Tcl was added in 12.3(14)T.  So chances are you have this support in your ISR already.

Similar Messages

  • What are the following:1)Cisco 1600 Series IOS WIRELESS LAN RECOVERY. 2)Service Provider Option 60 for Vendor Class Idenfier

    What are the following:1)Cisco 1600 Series IOS WIRELESS LAN RECOVERY. 2)Service Provider Option 60 for Vendor Class Idenfier
    These items are listed with 1600 series AP but I'm unable to understand what are these things & the use of them

    DHCP Option 60:  Go HERE.

  • CME B-ACD on Cisco 2911 with IOS 15.2(4)M5 not working

    Hi Folks,
    I am currently setting up CME version 9.1 with B-ACD (app-b-acd-aa-3.0.0.2.tcl & app-b-acd-3.0.0.2.tcl), running on
    Cisco 2911 with IOS ver 15.2(4)M5, this is for lab purposes.
    Below is my CME & B-ACD configuration :
    voice service voip
    ip address trusted list
      ipv4 0.0.0.0 0.0.0.0
    allow-connections h323 to h323
    allow-connections h323 to sip
    allow-connections sip to h323
    allow-connections sip to sip
    fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
    h323
      h225 listen-port 1820
      no call service stop
    sip
      bind control source-interface Vlan400
      bind media source-interface Vlan400
      registrar server expires max 600 min 60
    voice register global
    mode cme
    source-address 172.25.202.1 port 5060
    max-dn 2
    max-pool 2
    load 9971 sip9971.9-2-2SR1-9
    authenticate register
    timezone 28
    time-format 24
    date-format D/M/Y
    tftp-path flash:
    create profile sync 0004714411607756
    voice register dn  1
    number 3005
    name br2phn2
    voice register dn  2
    number 3006
    name br2phn4
    voice register template  1
    dialplan 1
    voice register dialplan 1
    type 7940-7960-others
    pattern 1 3...
    pattern 2 999
    voice register pool  1
    id mac 1C1D.86C4.0D6D
    type 9971
    number 1 dn 1
    template 1
    dtmf-relay rtp-nte
    username 3005 password cisco
    description 3214-3005
    codec g711ulaw
    voice register pool  2
    id mac 1C1D.86C4.A574
    type 9971
    number 1 dn 2
    template 1
    dtmf-relay rtp-nte
    username 3006 password cisco
    description 3214-3006
    codec g711ulaw
    voice hunt-group 1 parallel
    list 3002,3006
    pilot 3210
    application
    service aa flash:/app-b-acd-aa-3.0.0.2.tcl
      paramspace english index 1
      param number-of-hunt-grps 2
      param handoff-string aa
      paramspace english language en
      param max-time-vm-retry 2
      param aa-pilot 3500
      paramspace english location flash://
      param second-greeting-time 60
      param welcome-prompt _bacd_welcome.au
      param call-retry-timer 15
      param voice-mail 3001
      param max-time-call-retry 90
      param service-name queue
    service aa-drop flash:/app-b-acd-aa-3.0.0.2.tcl
      paramspace english index 1
      param service-name queue
      param drop-through-option 2
      param second-greeting-time 60
      paramspace english language en
      param max-time-vm-retry 2
      param max-time-call-retry 90
      param voice-mail 3001
      paramspace english location flash://
      param aa-pilot 3501
      param number-of-hunt-grps 1
      param handoff-string aa-drop
      param call-retry-timer 15
    service queue flash:/app-b-acd-3.0.0.2.tcl
      param queue-len 15
      param aa-hunt10 3006
      param queue-manager-debugs 1
      param number-of-hunt-grps 2
      param aa-hunt2 3210
    interface Loopback0
    ip address 172.25.110.3 255.255.255.255
    ip ospf network point-to-point
    h323-gateway voip interface
    h323-gateway voip id Spain ipaddr 172.25.110.1 1719
    h323-gateway voip h323-id BR2-RTR
    h323-gateway voip tech-prefix 1#
    h323-gateway voip bind srcaddr 172.25.110.3
    interface Vlan400
    ip address 172.25.202.1 255.255.255.0
    ip pim dense-mode
    dial-peer voice 3500 voip
    service aa
    destination-pattern 3500
    session target ipv4:172.25.110.3
    incoming called-number 3500
    dtmf-relay h245-alphanumeric
    codec g711ulaw
    no vad
    dial-peer voice 3501 voip
    service aa-drop
    destination-pattern 3501
    session target ipv4:172.25.110.3
    incoming called-number 3501
    dtmf-relay h245-alphanumeric
    codec g711ulaw
    no vad
    telephony-service
    no auto-reg-ephone
    max-ephones 2
    max-dn 2 no-reg both
    ip source-address 172.25.110.3 port 2000
    cnf-file location flash:
    load 7965 term65.default.loads
    time-zone 28
    time-format 24
    date-format dd-mm-yy
    max-conferences 8 gain -6
    moh "music-on-hold.au"
    web admin system name admin password cisco
    dn-webedit
    transfer-system full-consult
    create cnf-files version-stamp 7960 Feb 14 2014 05:54:44
    ephone-template  1
    softkeys connected  Endcall Hold Park Trnsfer Acct Flash
    ephone-dn  1  octo-line
    number 3001 no-reg both
    description 3214-3001
    name br2phn1
    ephone-dn  2  octo-line
    number 3002 no-reg both
    description 3214-3002
    name br2phn3
    ephone  1
    device-security-mode none
    mac-address 189C.5DB6.D303
    ephone-template 1
    max-calls-per-button 5
    busy-trigger-per-button 3
    type 7965
    button  1:1
    ephone  2
    device-security-mode none
    description 3214-3002
    mac-address 984B.E194.FDDD
    ephone-template 1
    max-calls-per-button 5
    busy-trigger-per-button 3
    type 7960
    button  1:2
    Problem :
    1. When I test call from CME Phone both SIP and SCCP Phone by dial 3500 or 3501, I get the busy tone.
    2. Debug voip dial-peer, match with dial-peer voice 3500 for (aa service) & 3501 for (aa-drop service).
    3. Debug voice application script, show nothing.
    Is there something wrong with my configuration ?
    Rgds
    Novri

    Hi Novriadi,
    In your configuration
    service aa flash:/app-b-acd-aa-3.0.0.2.tcl
    service queue flash:/app-b-acd-3.0.0.2.tcl
    paramspace english location flash://
    Remove "/" and "//" from the configuration
    Then use the call application voice load command in privileged EXEC mode to reload the scripts.
    Router# call application voice load aa
    Router# call application voice load queue
    Router# call application voice load aa-drop
    You can refer to following document as well for more info
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucme/bacd/configuration/guide/cme40tcl/40bacd.html#wp1018270
    Please find the sample configuration that is required to configure b-acd in CME for reference.
    telephony-service
    moh music-on-hold.au
    multicast moh 239.1.1.1 port 2000
    application
    service queue flash:app-b-acd-2.1.0.0.tcl
      param number-of-hunt-grps 2
      param aa-hunt2 1111
      param aa-hunt3 1222
      param queue-len 15
      param queue-manager-debugs 1
    service aa flash:app-b-acd-aa-2.1.0.0.tcl
      paramspace english index 1
      paramspace english language en
      paramspace english location flash:
      param service-name queue
      param handoff-string aa
      param aa-pilot 8005550123
      param welcome-prompt _bacd_welcome.au
      param number-of-hunt-grps 2
      param dial-by-extension-option 1
      param second-greeting-time 60
      param call-retry-timer 15
      param max-time-call-retry 700
      param max-time-vm-retry 2
      param voice-mail 5003
    dial-peer voice 222 voip
    service aa
    destination-pattern 8005550123
    session target ipv4:192.168.1.1
    incoming called-number 8005550123
    dtmf-relay h245-alphanumeric
    codec g711ulaw
    no vad
    Thanks & Regards,
    Mudit Mathur

  • I understand that your iPhone 5 is not recognized by iTunes 11.2 on Windows 8 pc after you updated your device iOS to iOS 7.1.1.

    iPhone 5 is not recognized by iTunes 11.2 on  Windows 8 pc after you updated your device iOS to iOS 7.1.1.

    Hi calltimecasting,
    Welcome to the Apple Support Communities! If your iPhone is not recognized by iTunes on Windows 8, I suggest the steps in the following article to get this resolved.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    I hope this helps,  
    -Joe

  • I just updated my iPhone 4s iOS to iOS 8 and but can no longer find personal hotspot, How and where can I find it on my iPhone 4s

    I just updated my iPhone 4s iOS to iOS 8 and but can no longer find personal hotspot, How and where can I find it on my iPhone 4s.
    Usually I share my internet with other device with ios7 but now that I have ios8 on my iPhone 4s I can no longer find the personal hotspot. How can I share internet with other device using ios8 on my iPhone 4s?
    THanks

    Settings>Cellular>Personal Hotspot. The carrier has to support this for you. This is where you should find the setting to turn it on or off.

  • If you mean you are having trouble activating your iPhone after  updating to iOS 6:  iOS 6.0.1  Generally this is a sign that the iPhone had previously been  hacked/modified/jailbroken and the update relocked it to the  original wireless carrier. If this

    If you mean you are having trouble activating your iPhone after
    updating to iOS 6:
    iOS 6.0.1
    Generally this is a sign that the iPhone had previously been
    hacked/modified/jailbroken and the update relocked it to the
    original wireless carrier. If this is the case, only that wireless
    carrier can unlock your iPhone. You must contact them to see
    if they offer unlocking and if you qualify.
    My phone is from USA and unlocked version and I paid 750 USD.
    Where did you acquire this iPhone?
    USA
    What wireless carrier did you use before this problem?
    I used BSNL - India previously. After I get problem, I used Mobily -Saudi Arabia again I got problem and I am trying to use Airtel - India.
    Does the app Cydia appear on your iPhone?
    What does It mean?
    What does it say when you look at Settings=>General=>About=>Carrier?
    Airtel 13.0

    It would be better for troubleshhoting if you posted back to your original question.... here

  • TS4036 My iPhone has just been replaced and I am trying to restore from iCloud but its saying no backups are compatible with the version of IOS 6.0.1. My back iOS are IOS 6.1. Can you update the phone first then restore?

    My iPhone has just been replaced and I am trying to restore from iCloud but its saying no backups are compatible with the version of IOS 6.0.1. My back iOS are IOS 6.1. Can you update the phone first then restore?

    Welcome to the Apple Community.
    Yes, update first, Settings > General > Software Update.
    Then navigate to Settings > General > Reset > Erase all contents and settings on the device you want to restore.
    When this completes and the Set-Up Assistant starts, choose "Restore from iCloud Backup" and enter your iCloud account and password. You will see the three most recent backups for each of the devices on which you enabled Backup. Choose which backup to restore from.

  • Which ios is better in choice, ios 7 or ios 6 , ios 5?

    which which ios is better in choice, ios 7 or ios 6 , ios 5 ?
    i am going to buy iphone 4s 8gb or 16 gb.
    i would be buy it from apple store or from reseller.
    i wanted ios 7.1.1 or 7.1.2 in my iphone 4s .
    please help in as soon as possible.

    There is no choice
    New iPhones come with the latest release the model will handle unless a very old model or very old stock and as soon as the iPhone is updated it will update to the latest release for that iPhone

  • Music Application in iOS 5 / iOS 5.0.1

    Music Application in iOS 5 / iOS 5.0.1
    you choose a particular song!
    pplications and the other play or not play music!
    or you click pause and resume several times!
    or is without music!
    It happened to someone?
    thank you

    Yep that's a good idea. I gave my feedback to Apple to tell them, that It is very bad that the lyrics are not shown anymore in the iOS  5 Music App.
    CALL TO EVERYONE WHO THINKS THE SAME WAY: Submit your Feedback to Apple and tell them to fix this! The more people will do it, the better it is.  Hopefully that will help.
    Submit it here:
    http://www.apple.com/feedback/ipad.html

  • It not updating my iOS 5,iOS 6,iOS 4 and iOS 4.3.

    It not updating my iOS 4,iOS 4.3,iOS 5 and iOS 6.

    Ok, what happens when you try.
    If you need help, it would be great if you provided more details as to what is or isn't happening.

  • I have upgraded my I phone's ios from ios 6.1.4 to ios 7. After that my phone is very slow and getting hang. So now I wants to downgrade from ios 7 to ios 6.1.4. Please let me know how I can do it

    Subject: need to downgrade ios
    I have upgraded my I phone's ios from ios 6.1.4 to ios 7. After that my phone is very slow and getting hang. So now I wants to downgrade from ios 7 to ios 6.1.4. Please let me know how I can do it

    You cannot downgrade.

  • I was in the middle of using my iPhone 4 running on the latest iOS before iOS 6 and the screen went black but you can see it is still on because the color of the screen is blueish blackish like when your phone is turning off. Any suggestions?

    I was in the middle of using my iPhone 4 running on the latest iOS before iOS 6 and the screen went black but you can see it is still on because the color of the screen is blueish blackish like when your phone is turning off. Any suggestions?

    Reset the device by pressing and holding the home and power buttons for 15-20 seconds until the white Apple logo appears.

  • Ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    - Reboot the computer
    - Try DFU mode and then restore/update
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Delete the update file so that new one has to be download.
    IPSW file location for Mac and Windows
    - Try on another computer to help determine if you have an iPod or computer problem.

  • Stlport4 cout.setf(ios::fixed, ios::floatfield) causes SEGV on big values

    We are trying to compile & run the following simple program with Studio 11 using the stlport4 libraries. It works without the stlport4 libraries but we have performance problems with the other libraries.
    The compiler patches 120760-01 and 121017-01 have been applied.
    The Solaris 10 version is 01/06. All the free patches are applied to Solaris 10.
    CC -library=stlport4 -obug bug.cc
    #include <iostream>
    #include <values.h>
    using namespace std;
    int
    main(int argc, char **argv)
            cout.setf(ios::fixed, ios::floatfield);
            cout << MAXDOUBLE << endl;
    The problem also occurred on Solaris 9 with Studio 10.
    $ ./bug
    Segmentation Fault - core dumped
    $ mdb bug core
    Loading modules: [ libc.so.1 ld.so.1 ]
    $Cffbff828 libstlport.so.1`__1cDstdU__format_float_fixed6Fpcpkciibiib_v_+0xd8(c7cdcfc9, ffbff9b3, 35383633, 38323037, 31, 1048)
    ffbff890 libstlport.so.1`__1cDstdO__format_float4Cd_6FpcpkciiTAiib_v_+0xec(ffbffa60, ffbff990, 35383633, 35383935, 7fefffff, 38323037)
    ffbff908 libstlport.so.1`__1cDstdN__write_float6Fpciid_1_+0x170(ffbffa60, 1048,6, 7fefffff, ffffffff, 0)
    ffbff9f0 libstlport.so.1`__1cDstdP_M_do_put_float4Ccn0ATostreambuf_iterator4Ccn0ALchar_traits4Cc____Cd_6FTBrn0AIios_base_TATC_1_+0x18(36383839, 34363431, 38323736,38343637, 35343637, 30333533)

    And here are the results with Sun Studio 9
    CC: Sun C++ 5.6 Patch 117549-04 2005/10/11
    ./bugg
    Segmentation Fault(coredump)
    Actually doing this gives coredump ...
    cout << ( 99999999999999999999999999999999999999999999999999999999999999
    999999999999999999999.0 ) << endl;And this gives a negative output
    cout << ( 99999999999999999999999999999999999999999999999999999999999999
    99999999999999999999.0 ) << endl;-9999999999999999634067965630886574200000000000000000000000000000000000000000000000.000000
    /Lars

  • How do I update my ipad ios to ios 5 or 6

    How do I update my ipad ios to ios 5 or 6.  I plug it into my computer but all that happens is that it syncs and I still don't have an upgraded ios.  I need step by step instructions

    Philly_Phan wrote:
    Connect again and look closely at the screen.  A message will appear telling you that an update is available.  Follow the on-screen instructions.
    If that doesn't work, has the unit ever been jailbroke?

Maybe you are looking for

  • Oracle 11g Certification Query

    Hi all, I have given my Oracle 11g exams for OCP certification. Now, i need to take one of the mandatory training to fulfill the requirements for certification. I am in Kuwait and when i select the country as Kuwait, the cheapest training course is o

  • Need Planned PO and PO Releases API or Interface

    Hey guys i hope you will doing well. My client using external system for Planned PO and its releases i need to integrated custom Application with EBS, so that why i need Interface or API load Planned PO and its releases. I am waiting for kind respons

  • Blocking of receipt process

    How to block the receipt process for a non stock procurement. Thx.

  • How to use Designiconclicked?

    Is there anybody know how to use command "Designiconclicked" in Bex Analyzer? If yes, pls give me an example how to use it. Thank you very much.

  • View sent/received text numbers in My Verizon

    I was wondering where I could view the information about texts that I received in "My Verizon?" I'm just looking for the number I received it from, not the content. Stupid me erased some information from a potential employer and I need to find her nu