Tcl ping script respond with hostname?

Hey Everyone!
I need to run a Tcl script against a bunch of IP's and I would like the output to come back with the nodes hostnames as oppsed to just the IP (it will make it easier to read and less work trying to manually reverse lookup these things later)
So far I have created static hostname-to-address mappings and a very basic Tcl script but this isn't working out so well...
Basically this allows me to ping by name but it only comes back with the IP. With the large number of IP's this will be done with it would be a lot easier if we could return with a name instead, is this possible?
Here is a sample of what I've done:
Set the hostnames
ip host host1 192.168.1.1
ip host host2 192.168.1.2
ip host host3 192.168.1.3
Run a Tcl ping script
R1#tclsh
R1(tcl)#foreach addr {
+>host1
+>host2
+>host3
+>} {ping vrf Mgmt-intf $addr repe 2}
Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/1/2 ms
Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/1/2 ms
Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 192,168.1.3 timeout is 2 seconds:
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/1/2 ms
So I'm wondering if it would be possible to see the hostname returned as opposed to the IP address shown above?
Thank you!

Something like this should work:
set output [exec "show hosts | include IP"]array set hostname [list]array set ipaddr [list]foreach line [split $output "\n"] {    set hostname([lindex $line end]) [lindex $line 0]    set ipaddr([lindex $line 0]) [lindex $line end]}foreach addr {host 1 host2 host3} {    set output [exec "ping vrf Mgmt-intf $addr repe 2"]    set ip $ipaddr($addr)    regsub -all "$ip" $output $hostname($ip) output    puts $output}

Similar Messages

  • Tcl Ping Script Help

    Hello Community,
    I'm currently getting assistance from Joseph and Mike on another ping script.
    In the meantime, I have come across the attached Tcl Ping script that might help. However, each time I attempt to run the script from the command line as such
    event manager run pingall5.tcl
    I get the following error message
    MX-IPS1#eve man run pingall5.tcl
    invalid command name "ping"
        while executing
    "ping $address"
        ("foreach" body line 1)
        invoked from within
    "foreach address {
    10.36.36.225
    183.19.28.8
    150.19.2.2
    183.19.28.2
    183.19.123.2} { ping $address
        invoked from within
    "$slave eval $Contents"
        (procedure "eval_script" line 7)
        invoked from within
    "eval_script slave $scriptname"
        invoked from within
    "if {$security_level == 1} {       #untrusted script
         interp create -safe slave
         interp share {} stdin slave
         interp share {} stdout slave
        (file "tmpsys:/lib/tcl/base.tcl" line 50)
    Tcl policy execute failed: invalid command name "ping"
    So I tried another tcl script called pingall8, but it simply won't get applied to the router.
    I have attached both scripts.
    You're assistance will be greatly appreciated.
    Cheers
    Carlton

    You can execute the policy with event manager run" command and that is running eem manually rather than having it trigger from some event.   Attached is a EEM policy that will ping each IP addresses and print it to the screen.
    CISCO1941_WAASX#event manager run pinger.tcl
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.223.3, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
    CISCO1941_WAASX#
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.223.126, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
    CISCO1941_WAASX#
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.223.2, timeout is 2 seconds:
    Success rate is 0 percent (0/5)
    CISCO1941_WAASX#

  • Script errors with Weatherbug, not related to "unresponsive" problem

    This script problem with Weatherbug has been going on forever. It is not the "unresponsive" script error problem. I get repeated messages asking me if I want to continue running scripts. ( followed buy the error message {invalid etc}) Responding "yes" or "no" results in nothing, just another script error message I changed the "dom.max_script_run_time" to "0" as recommended from a WWW support site, this had no effect.

    http://www.msi.com.tw/program/support/cpu_support/cpu/spt_cpu_detail.php?UID=22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20&NAME=MS-6378
    what pcb revision
    will be with name between pci slots

  • [svn:fx-trunk] 5099: Update action script files with asdoc version tags.

    Revision: 5099
    Author: [email protected]
    Date: 2009-02-26 19:43:02 -0800 (Thu, 26 Feb 2009)
    Log Message:
    Update action script files with asdoc version tags.
    QE Notes: None.
    Doc Notes: Please review and update as necessary.
    tests: checkintests
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChanne l.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChann el.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandl er.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXContext.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/ChannelError.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidChannelError.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidDestinationError.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError. as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/NoChannelAvailableError.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/MessageAckEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/MessageEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/MessageFaultEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/MessagePersisterEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/Attribute.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/MBeanAttributeInfo.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/MBeanConstructorInfo.a s
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/MBeanFeatureInfo.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/MBeanInfo.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/MBeanOperationInfo.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/MBeanParameterInfo.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/ObjectInstance.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/management/ObjectName.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/AbstractMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/AcknowledgeMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/AcknowledgeMessageExt.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessageExt.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/CommandMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/CommandMessageExt.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/ErrorMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/IMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/ISmallMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/MessagePerformanceInfo.a s
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/MessagePerformanceUtils. as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/RemotingMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/AbstractEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/HeaderEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/InvokeEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/SchemaLoadEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/mxml/Concurrency.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/mxml/IMXMLSupport.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPEncoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPConstants.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPDecoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPEncoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPFault.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPHeader.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/WebService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/types/DataSetType.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/types/SOAPArrayType.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLBinding.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLConstants.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLEncoding.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLLoader.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLMessage.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLMessagePart.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLPort.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLPortType.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/ContentProxy.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLSchemaInstance.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/QualifiedResourceManager.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/Schema.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaConstants.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaLoader.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaManager.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaMarshaller.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaProcessor.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaTypeRegistry.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLLoader.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/HexEncoder.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RPCStringUtil.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RPCUIDUtil.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/Translator.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/URLUtil.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Hi, I was trying to copy and paste a lot of  info for one day on my calendar to another day and an error message popped up saying that the system responded with an error. Msg won't go away I force quit ical

    Need help for trying to unfreeze a message on my ical.  I was trying to copy and paste some appointment info from one day to another on my ical and a message popped up saying the system responded with an error.  All of my info was below the message.  I can't get that message to go away or work on the ical now at all.  I try to force quit ical and have shut down the computer and it still comes up.  Any suggestions?

    K,
    Try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. To find that Library folder, if you are using Lion, use Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart.
    Next, make sure that you are not connected to the internet. Then to to your Macintosh HD/Users/yourusername/Library/Calendars Folder and remove any files with "Cache" as a part of the file name. Use the same method as listed above to get to the correct Library Folder. Log out/in, or restart and check iCal for functionality.

  • I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any sugge

    I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any suggestions on how I could kill this error message? Thanks.
    iMac, Mac OS X (10.7.2)
    Basically i tried to enter too much information into my calendar and it has crashed  now i can not get rid of the error message or use the calendar  can anyone help please

    did you find ou how to get rid of it i can't

  • "The Server Responded With An Error"

    Y'day I was pasting details of a reserv into ICAL.  it was perhaps too much data.  As soon as I clicked to paste, I got msg "The Server Responded With An Error" & below that was the info I was copying into my calendar.  Then calendar froze.  Then "Force Quit", then reopen Ical & the same msg appears and frozen.  I attempted to drag the msg to trash to no avail.  I rebooted computer.  Everything else is working on my MacBookPro.  I do NOT have Lion.  Thks

    That sounds like something went wrong in the database the governs syncing.
    Restore from your backup to restore your calendar.
    Reset your sync history: http://docs.info.apple.com/article.html?path=iSync/3.1/en/9247.html and then follow the steps:
    Go into iCal > Preferences > Accounts and delete the MobileMe account from here.
    If you are using it you can then re-add it and be careful to enter in the correct name and password.
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.

  • I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.

    I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.
    I don't want it to be an EEM Event, I just want to run it from the (tcl)# prompt.
    So I guess I'm asking if you can use cli_exec and other commands in the "namespace import ::cisco::eem::*" in a normal non-EEM script - can I do that?
    This is the error I get:
    OTN.159(tcl)#source flash:TCL_SNMP_Remote_Read.tcl
    invalid command name "::cisco::eem::event_register_none"             ^
    % Invalid input detected at '^' marker.
    What am I missing?
    =================  TCL_SNMP_Remote_Read.tcl  ==============================
    ::cisco::eem::event_register_none
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if [catch {cli_open} RESULT]
        { error $RESULT $errorInfo }
        else { array set cli1 $RESULT }
    if [catch {cli_exec $cli1(fd) "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0" } RESULT]
           { error $RESULT $errorInfo  }
           else { set SnmpSysDesc $RESULT }
    if [catch {cli_close $cli1(fd) $cli1(tty_id)} RESULT] {
                error $RESULT $errorInfo
    puts $SnmpSysDesc
    =========================================================================
    In the sho-run config I have:
    event manager directory user policy "flash:/"
    event manager session cli username "cisco"
    Any help to get me started would be greatly appreciated!
    Tim

    If you don't want an EEM policy, then don't use any of the EEM constructs.  Instead, all you need is this:
    set output [exec "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0"]puts $output

  • When I open Firefox, it goes to the first page and then stops, saying "Not Responding" with the cursor spinning. What can I do to fix this? Thanks for any help

    When I open Firefox, it goes to the first page I open, but then stops and says "Not Responding" with the mouse cursor spinning. I hit the close button and it says Windows is searching for a solution (which doesn't come).
    When I open Firefox again, it says:
    Well, this is embarrassing.
    Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page.
    You can try:
    Removing one or more tabs that you think may be causing the problem
    Starting an entirely new browsing session
    Any ideas? I gretly appreciate any help. Thanks!!

    What is that first page?
    Can't you open any web pages in Firefox?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • I added a reminder in iCal and it froze up.  The error message is:The server responded with an error.

    I added a reminder in iCal and it froze up.  The error message I am receiving is:The server responded with an error.  The application then locks up and I can't find out how to resolve the issue.

    Check the parameters in your email account against what is recommended by your email provider.
    Settings > Mail, Contacts, Calendars > account
    Have you contacted the support contact at your email provider?

  • I received the error (in iCal on my mac) : "The server responded with an error" while creating an event. I can't delete or acknowledge this error and now iCal is frozen. Any suggestions?

    I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any suggestions on how I could kill this error message? Thanks.

    did you find ou how to get rid of it i can't

  • Mac 10.6.8 ical "server responded with an error" endless loop

    I get an endless loop. "The Server Responded with an Error "--click OK. Next window "The Server Respnded with an Error"--whether click "go offline" or "return to server" takes me back to first window, ad infinitum. Can't change anything on calendar; cannot access ical Preferences. basically cannot do anything except Force Quit, whether logged into my account or my wife's [registered to my wife's yahoo! email].
    Also cannot synch calendars now between imac, iphone, and ipad like we could in beginning. Using 10.6.8 because some of my peripherals not compatible with later.
    This problem just started a couple of days ago [the server problem freezing the calendar, it hasn't been working properly for awhile and the calendar synch was lost when a friend upgraded the iphone software.]
    What can I do to restore 1] the functionality of the ical? and 2] synching the imac, ipad, and iphone icals?

    I read another response to a similar question posted a couple of years ago. I turned off the Wifi, restarted iCal offline, and that eliminated the message. However, as soon as I turned on the Wifi the message again appeared, the app froze requiring a Force Quit, and the game is still afoot. NO SOLUTIONS ANYONE?

  • Suppress the pop-up box in iCal when "The server responded with an error"

    So there are tons of questions already on this site about this pop-up error in iCal when trying to connect to Google calendars or MobileMe calendars. My issue is that the connection is fine 90% of the time, but every now and then the connection fails (it checks every 5 minutes) and I get this pop-up.
    Now in a perfect world, this error would not result in a pop-up that demands my immediate attention, but would fail silently and simply try again 5 minutes later. Normally Apple's software design is sensible and would do things this way, so I'm totally confused why they think a pop-up (and bouncing dock icon) is anything but annoying, especially when I know it's not a big deal and will probably connect successfully next time.
    Soooo... is there a top-secret way I can suppress this pop-up box? It is one of those things that can drive one insane. I even switched to BusyCal for a while but decided it wasn't quite worth $50 just to be rid of the pop-up.

    Is this the pop-up you get?
    The request for account “[email protected]” failed.
    The server responded with
    “HTTP/1.1 502 Bad Gateway”
    to operation CalDAVAccountRefreshQueueableOperation.
    I've never seen it before but am getting it this evening (UK time). Also if I try to log in to MMe Calendar it's not logging in but going to 'find my iPhone' like it did when Mail was mucking about a few weeks back.

  • Ical: Server responded with an error. no error

    The server responded with an error.
    The request for “Your INR Result: PT INR 2.6 05/14/2014
    INR Low Range: 2.5 - INR High Range: 3.5
    Warfarin Tab (MG): 5mg Peach
    **CONTINUE YOUR SAME WARFARIN DOSE BELOW.**
    According to our records, your current Warfarin instruction is as follows:
    Sunday (mg): 5 MG
    Monday (mg): 5 MG
    Tuesday (mg): 5 MG
    Wednesday (mg): 7.5 MG
    Thursday (mg): 5 MG
    Friday (mg): 5 MG
    Saturday (mg): 5 MG
    Please have your next Protime/INR blood test on: Follow up date: 06/18/14
    Your INR Result: PT INR 2.6 05/14/2014
    INR Low Range: 2.5 - INR High Range: 3.5
    Warfarin Tab (MG): 5mg Peach
    **CONTINUE YOUR SAME WARFARIN DOSE BELOW.**
    According to our records, your current Warfarin instruction is as follows:
    Sunday (mg): 5 MG
    Monday (mg): 5 MG
    Tuesday (mg): 5 MG
    Wednesday (mg): 7.5 MG
    Thursday (mg): 5 MG
    Friday (mg): 5 MG
    Saturday (mg): 5 MG
    Please have your next Protime/INR blood test on: Follow up date: 06/18/14
    Your INR Result: PT INR 2.6 05/14/2014
    INR Low Range: 2.5 - INR High Range: 3.5
    Warfarin Tab (MG): 5mg Peach
    **CONTINUE YOUR SAME WARFARIN DOSE BELOW.**
    According to our records, your current Warfarin instruction is as follows:
    Sunday (mg): 5 MG
    Monday (mg): 5 MG
    Tuesday (mg): 5 MG
    Wednesday (mg): 7.5 MG
    Thursday (mg): 5 MG
    Friday (mg): 5 MG
    Saturday (mg): 5 MG
    Please have your next Protime/INR blood test on: Follow up date: 06/18/14
    Your INR Result: PT INR 2.6 05/14/2014
    INR Low Range: 2.5 - INR High Range: 3.5
    Warfarin Tab (MG): 5mg Peach
    This information, which I highlighted in red, shows up on a separate page from and above the calendar page, and is half the width of the standard page; and repeats all the three times on the page. I cannot close ical without force quitting. I cannot access ical preferences as suggested in another answer to a similar problem, because the "separate page" remains dominant. I tried ridding the computer of the calendar plist, that did not work. I cannot discard ical because the computer will not allow me to trash. I am really befuddled.
    Fortunately, it only affects ical on my MacBook Pro running 10.9.2- it has not affected my iPad or iPhone, both running ios 7.2... they seem to be syncing with iCloud correctly. Anyone had this animal in their zoo lately?

    I read another response to a similar question posted a couple of years ago. I turned off the Wifi, restarted iCal offline, and that eliminated the message. However, as soon as I turned on the Wifi the message again appeared, the app froze requiring a Force Quit, and the game is still afoot. NO SOLUTIONS ANYONE?

  • ICal issue - "The server responded with an error"

    Hi All. I've been having this error pop up on my iCal for the last week after the last iOS update and it's driving me a little batty.
    I don't have any shared calendars, appointments loaded in. I'm just running the iCal calendar frm icloud between my Air and my iPhone.
    Error that pops up reads:
    The server responded with an error.
    The URL ***icloud***/principal/ encountered HTTP error 404. Make sure the URL is correct.
    I haven't changed anything in settings. The appointments are still syncing between my computer and phone however, this pop up comes up every 5-30 seconds on my computer if iCal is open.
    Ideas on how to fix it?

    Is this the pop-up you get?
    The request for account “[email protected]” failed.
    The server responded with
    “HTTP/1.1 502 Bad Gateway”
    to operation CalDAVAccountRefreshQueueableOperation.
    I've never seen it before but am getting it this evening (UK time). Also if I try to log in to MMe Calendar it's not logging in but going to 'find my iPhone' like it did when Mail was mucking about a few weeks back.

Maybe you are looking for

  • Adobe Download Assistant not installing

    I'm trying to download the CS6 trials on a MacbookPro running Mountain Lion; however on opening the AdobeDownloadAssistant.dmg it will load, then give me an error message with the following: "Sorry, an error has occurred. The application could not be

  • Can't get iCloud to work on Mac, but seems ok on iPad

    I set up iCloud on my Mac and iPad.  On my iMac I checked off mail, contacts, calendar, bookmarks and find my mac.  When I click on "manage",  It shows Backups and Mail on the left but Mail says 0kb.  Backups show my last iPad back up but no iMac bac

  • ITunes Setup Assistant Warning Dialogue Box

    I upgraded to version 6.0.4.2 and now a dialogue box appears each time I start iTunes. It is titled "iTunes Setup Assistant" and has the following text: Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs

  • Has anyone managed to get an XA datasource working with Oracle?

    In Sun j2sdkee 1.3.1 you must use XA-Datasources when you are using more than one datasource in one transaction. So I declared my Oracle datasource to be a XA-Datasource. The container is able to load and initlialize the Oracle XADataSource clasess.

  • GTS tables relations and important function modules

    Hi Friends, I am totally new for the developments in GTS.  Wanted some help on the  tables for master data, transactional data in GTS.  Also what are the important function modules used in GTS. Anybody can give me some inputs on the above..? regards