Help create messages Syslog uses the router host name

We currently have an IP SLA related to the EEM scripts that work great to send syslog messages to alert purposes.  However, I would like for each router that sends a syslog to send its host name using wildcards instead of the specified host name.  I'm guessing some sort of filtering would do the trick, but I can't find any good documentation on this topic.  That's what I currently have:

ALS IP 1
echo ICMP - 172.24.50.1 source-interface GigabitEthernet2
threshold 250
timeout of 1000
frequency 5
IP SLA annex 1 point of life to always start-time now

!

LAN_interface_Link_down event manager applet
syslog "Interface GigabitEthernet2, state change downstairs" event model
order cli action 1 'enable '.
Action 2 syslog priority to information msg "command, LAN_interface_Link_down is running on C1-GrandView-PA-CSR1000-Recover... »
3 wait 5 action
Action4 cli command "configures terminal.
action 5 'interface range t3 - 4 cli command.
action 6 'closed' cli command
Action 7 cli command 'end '.
LAN_interface_Link_up event manager applet
syslog event model "Interface GigabitEthernet2, altered state until.
order cli action 1 'enable '.
action 2 cli command "configures terminal.
action 3 'interface range t3 - 4 cli command.
Action4 "not shut" cli command
Action 5 cli command 'end '.
6 wait 15 action
Action 7 syslog priority to information msg "command, LAN_interface_Link_up is running on C1-GrandView-PA-CSR1000-Recover... »
Next_Hop_LAN_Unreachable event manager applet
event track 10 low maxrun 40
order cli action 1 'enable '.
Action 2 syslog priority to information msg "command, Next_Hop_LAN_Unreachable is running on C1-GrandView-PA-CSR1000-Recover... »
3 wait 5 action
Action4 cli command "configures terminal.
action 5 'interface range t3 - 4 cli command.
action 6 'closed' cli command
Action 7 cli command 'end '.
Next_Hop_LAN_Reachable event manager applet
event track 10 status place maxrun 40
order cli action 1 'enable '.
action 2 cli command "configures terminal.
action 3 'interface range t3 - 4 cli command.
Action4 "not shut" cli command
Action 5 cli command 'end '.
6 wait 15 action
Action 7 syslog priority to information msg "command, Next_Hop_LAN_Reachable is running on C1-GrandView-PA-CSR1000-Recover... »

You can use the action of information to gather the hostname:

routername type info action 1.0

message from syslog to action 2.0 "my name is $_info_routername.

Tags: Cisco Network

Similar Questions

  • I get a message: to use the 'java' command line tool, you must install a JDK.  I tried 10 times to install without success.  Help, please.

    I get a message: to use the 'java' command line tool, you must install a JDK.  I tried 10 times to install without success.  Help, please.

    You probably have some of the older than the needs/desires software legacy Java installed.

    Please see these sons of community message:

    After the installation of El Capitan, I get the message: to use the 'java' command line tool, you must install a JDK

    Just found this last Java does not work with El Capitan

    This is the Apple link to the legacy version of Java 6.

    Download Java for OS X 2015-001

    First of all, I would like to try to identify what application generated the next message and update (delete) this request as the case may be. If you need to run Java then, as the Apple Support page says it's certainly preferable that your installation of Java entirely up-to-date with the Oracle's Java course. If you can get without Java, you should install it not - like the Flash, it should not be installed unless you have no choice.

  • I have XP pro and you want to connect to the MSN remote connection that uses my computer through my D Link router so that I can use the router to connect a tablet.

    How D link to connect to the modem connection

    I have XP pro and you want to connect to the remote connection MSN my computer use through my D Link router so that I can use the router to connect a tablet like Kindle Fire.

    Hi Bob,

    You can follow this link & check if it helps:

    How to set up and use remote connections in Windows XP?

    Internet Connection Wizard


    Reference:
    How to configure Internet access in Windows XP Professional?

    Hope the helps of information.

  • Message saying that the Generic Host Process for Win32 Services has had a problem and will end. Then I have no sound more until I reboot

    I have a hp Pavilion working with XP but recently I installed Windows Office 2007. Since then, I have problems with the sound system. I got a message saying that the Generic Host Process for Win32 Services has had a problem and will end. Then I have no more sound. I can't open the volume control as the system says that nothing is installed. I always need to restart my computer to get the sound working again. Help!

    Thank you, Jerry. I'll try it, but for now it works well. I fit it and it seems to have done the trick.

    See you soon,.
    Karine

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • I can map a public IP address on a pc using the router tplink?

    I can map a public IP address on a pc using the router tplink?

    Moved from the community involvement Center

    Original title: Port forwading

    Check with the support of tplink.

  • Why and how 'create a profile using the e-mail icon?

    When I try to send a screenshot of a web page, and after that I'm going to "email recipient" a small screen appears and tells me that "no profiles have been created.  To create a profile use the mail Control Panel icon.  What this means and how can I do?  I use outlook express and can not send another email, just not screenshots of web pages.  UPS used to before.  I recently "upgraded" in IE8.  Thank you!

    Check in Internet Options as your default mail Outlook Express Manager
    (The mail applet is to use with Outlook, part of the Office family and completely different from Outlook Express)

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • I try to add a route using the route add command, the command response is "the requested operation requires a rise."

    I'm traying to add a route using the route add command, the command response is "the requested operation requires a rise."

    Command: route add 10.1.1.0 mask 192.168.31.3 192.168.31.33

    Whay can I do, because I had tried in many cases

    original title: route command

    In response to a previous and similar thread...

    You can watch using the PowerShell...

    http://TechNet.Microsoft.com/en-us/library/bb978526.aspx

    http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419.aspx

    .. .and post this question on the forum of Windows PowerShell...

    http://social.technet.Microsoft.com/forums/en/winserverpowershell/threads

  • If I create a form using the free trial software, will I be able to use and access the form, after the trial period is over?

    If I create a form using the free trial software, will I be able to use and access the form, after the trial period is over?

    Yes, you can access the project that you created after the trial is over, but you need to back it up.

    Concerning

    Stéphane

  • Hello, December 22, 2015, I paid € 144,33 on account of Adobesystem (using photoshop). I wonder what for? I got no answer, no program to install etc... Can you help me? I used the demo version with the idea that I could be updated, but

    Hello, December 22, 2015, I paid € 144,33 on account of Adobesystem (using photoshop). I wonder what for? I got no answer, no program to install etc... Can you help me? I used the demo version with the idea that I could update, but nothing.

    Download/install the desktop application, connect and install applications subscription.
    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications
    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • Need help on how to use the conference room in adobe connect

    I need help on how to use the conference room in adobe connect?

    I would recommend you start here: Getting Started with Adobe Connect - Adobe Connect user community

  • abstractWSDL points to the physical host name when using URL loadbalanced

    Document tracking "Oracle® Fusion Middleware Enterprise Deployment Guide for Oracle SOA Suite 11 g Release 1 (11.1.1) E12036-04" to implement soa suite 11 g PS2 in two node cluster environment.

    Hostname SOA physical server (SOAHOST1 & SOAHOST2)

    More SOA is configured with the virtual host name (SOAHOST1VHN1 & SOAHOST2VHN1 Port: 8001) and loadbalancer URL is http://soa.mycompany.com:7777.

    Successfully completed installation and the steps of post-installation as update callbackServerURL and serverURL to http://soa.mycompany.com:7777

    Also updated HttpServerURL as http://soa.mycompany.com:7777.

    Composite SOA successfully deployed to the cluster from jdeveloper soa and tested control of Fusion middleware 11g (EM) webservices. And his works fine.

    When I goto page to Test Composite, the WSDL and endpoint URL appear as expected is http://soa.mycompany.com:7777 / soa-infra/services/default/ccValidation/getStatusByCC? WSDL and http://soa.mycompany.com:7777 / soa-infra/services/default/ccValidation/getStatusByCC


    But when I access the WSDL in the abstractWSDL browser is having hostname of the server that is mentioned below. Cause this problem by calling this webservice of some other jdeveloper 11g bpel processes. When I enter the url http://soa.mycompany.com:7777 WSDL / soa-infra /... in Web service activity (after placing the activity in the corridor of "External References") and wire BPEL to webservice, WSDL url in webservice is changed to http://soahost1.mycompany.com:8001 / soa-infra /... and wiring is faulty.

    Since soa suite managed server is configured with the virtual host name, the wsdl file is accessible only by using their virtual hostnames (SOAHOST1VHN1 & SOAHOST2VHN1) and load balancer url. Access WSDL using the physical hostname soahost1 would result in "Page not found" error. Why Jdeveloper isn't able to wire bpel with webservice component.

    Question:

    Is there any configuration that I need to change for this problem?

    Thanks in advance.

    Kind regards
    Kumar

    ===========================================

    <? XML version = "1.0" encoding = "UTF-8"? >
    -< wsdl:definitions name = "getStatusByCC" targetNamespace = "http://oracle.com/sca/soapservice/CreditCardValidation/ccValidation/getStatusByCC" xmlns:tns = "http://oracle.com/sca/soapservice/CreditCardValidation/ccValidation/getStatusByCC" xmlns:inp1 = "http://www.globalcompany.com/ns/CCAuthorizationService" xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/" xmlns:flt1 = "http://www.globalcompany.com/ns/CCAuthorizationService" xmlns:out1 = "http://www.globalcompany.com/ns/CCAuthorizationService" >
    -< wsdl:documentation >
    _ * < abstractWSDL > < /abstractWSDL > http://soahost1.mycompany.com:8001/soa-infra/services/default/ccValidation!1.0/getStatusByCC.wsdl * _
    < / wsdl:documentation >
    -< wsdl: types >
    -< scheme xmlns = "http://www.w3.org/2001/XMLSchema" >
    < import namespace = "http://www.globalcompany.com/ns/CCAuthorizationService" schemaLocation = "http://soa.mycompany.com:7777/soa-infra/services/default/ccValidation/getStatusByCC?XSD=xsd/creditcheck.xsd" / >
    < / schema >
    -< scheme xmlns = "http://www.w3.org/2001/XMLSchema" >
    < import namespace = "http://www.globalcompany.com/ns/CCAuthorizationService" schemaLocation = "http://soa.mycompany.com:7777/soa-infra/services/default/ccValidation/getStatusByCC?XSD=xsd/creditcheck.xsd" / >
    < / schema >
    -< scheme xmlns = "http://www.w3.org/2001/XMLSchema" >
    < import namespace = "http://www.globalcompany.com/ns/CCAuthorizationService" schemaLocation = "http://soa.mycompany.com:7777/soa-infra/services/default/ccValidation/getStatusByCC?XSD=xsd/creditcheck.xsd" / >
    < / schema >
    < / wsdl: types >

    ======================================================

    Try to define the interface host and port of Front-ends such as specified in the link below

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/webserv/setenv.html#wp220945

    Address: soap in the dynamic wsdl document is determined according to the following priority:

    # If the Web Service is deployed on a cluster and the cluster host Frontend, Frontend HTTP Port, and the Port HTTPS Frontend are defined, WebLogic Server then uses these values in the server of the dynamic WSDL address.

    # If the previous cluster values are not defined, but the Host Frontend, Frontend HTTP Port and HTTPS front-end Port values are defined for the server on which the Web Service is deployed, WebLogic Server then uses these values in the address of the server.

    # If these values are not defined for the cluster or an individual server, WebLogic Server then uses the address of the server the query WSDL in the dynamic WSDL.

  • link broken-&gt; creating WebLogic domains using the CW

    Hello!

    Create domains in the Configuration Wizard guides you through the process of creating or
    expand a field for your target environment. See Creating WebLogic
    Areas using the Configuration Wizard.

    This link does not work... any idea where I could find the info?

    Check this one-> http://download.oracle.com/docs/cd/E13179_01/common/docs102/confgwiz/index.html

    http://download.Oracle.com/docs/CD/E13179_01/common/docs102/confgwiz/newdom.html#wp1080587

    Published by: Dubois Thomas on October 15, 2009 01:36

  • Breaking SMB permissions after the NAS host name change.

    Broken SMB permissions after the NAS host name change

    ReadyNAS 104 firmware 6.5.1

    Who can help me?

    I couldn't reach the NAS with Windows Explorer. Problem solved now.

Maybe you are looking for

  • is there a guide/manual for 2012 of MSSQL or 2008?

    Hi as the title suggests. Thanks ;) If there is where I could find it? Thank you

  • I have professional window XP and I said that my product key is not good.

    original title: I have window XP Professional And it keeps telling me that I can't use my product key its not good. Please I need help the code is * removed product key * I just got this new of ebay thanks

  • Comunidad

    Yo compre 2 con devices 4 camaras cada una y 5ta camara despues me dicen q tengo than pay a premium service o elite? Porque? If yo por tener cada dispositvo x 5 gratis camaras? Alguiem me you can responder? Gracias

  • product key for vista window

    How can I access my product key on my laptop after having access via safe mode

  • RAID 5 bad car

    I have a RAID 5 and one of the drives went bad. I replaced with a new drive and entered in the controller Config (HUMINT r). I went to the foreign disk tab and hit clear instead of import. Now the reader says ready and I can't do anything other than