Possibility to check/compare the configuration on the Ironport changes?

Hello

We have 2 devices of Ironport S370 and several directors of the devices.

Does anyone know of a tool that could help us audit/compare the changes made by each Director? Replaces the political categories and custom specific URL access.

Thank you!

This script can help you: it creates the configuration file, it transfers by FTP and sends the diff between the latest two files from your email config:

#! / bin/bash

ironporthost = "192.168.42.42".
ironportuser = "admin".
ironportpass = "password"

configdir = "/ home/backup/ironport.

"emailalert ="[email protected] / * /"
EmailSubject = "Ironport Config Diff.

pathtosshpass = "/ usr/bin '.
pathtossh = "/ usr/bin '.
pathtolftp = "/ usr/bin '.
pathtomail = "/ usr/bin '.

# create the new configuration file
${pathtosshpass} / sshpass Pei ' ${ironportpass} "${pathtossh} / ssh-l ' ${ironportuser}" ${ironporthost} "saveconfig 0".

# fetch configuration files
CD ${configdir}
${pathtolftp} / lftp u ' ${ironportuser} "," ${ironportpass} "EI" mget EI/configuration / * xml & output "${ironporthost}

# Send diff of the last 2 files
files ='ls t *.xml | head - 2 '
configdiff = "$files diff.

echo ${configdiff} | ${pathtomail} / mail-s "${emailsubject}" ${emailalert}

Tags: Cisco Security

Similar Questions

  • Is it possible to check whether the action of a defined action exists?

    In the script photoshop (CC 2014) I will execute action with action and action game that you may not be able to add more. I wonder if I can somehow checks to see if the action is first.

    all the code that I have:

    document = app. Open (new file(Fichierentree));

    some check if there is such action?

    app. doAction (actionToRun, actionSetToRun)

    The easiest way is to run the action. If it throws an exception, check to see if it is the exception for missing action.

    document = app.open(new File(inputFile));
    
    try {
        app.doAction(actionToRun, actionSetToRun);
    } catch (e) {
       // Check e to see if it's the missing action exception.
    }
    

    Or you can use this extracted from xtools/xlib/stdlib.js.

    function hasAction(atn, atnSet) {
      function cTID(s) { return app.charIDToTypeID(s); };
      var asetDesc;
      var rc = false;
      var i = 1;
      var asMatches = [];
      while (true) {
        var ref = new ActionReference();
        ref.putIndex(cTID("ASet"), i);
        var desc;
        try {
          desc = executeActionGet(ref);
        } catch (e) {
          break;    // all done
        }
        if (desc.hasKey(cTID("Nm  ")) &&
            desc.getString(cTID("Nm  ")) == atnSet) {
          asetDesc = desc;
          asMatches.push({ index: i, desc: desc});
          //break;
        }
        i++;
      }
      if (asMatches.length == 0) {
        return false;
      }
      for (var i = 0; i < asMatches.length; i++) {
        var asmatch = asMatches[i];
        var asetIndex = asmatch.index;
        asetDesc = asmatch.desc;
        if (!asetDesc.hasKey(cTID("NmbC"))) {
          continue;
        }
        var max = asetDesc.getInteger(cTID("NmbC"));
        for (var j = 1; j <= max; j++) {
          var ref = new ActionReference();
          ref.putIndex(cTID("Actn"), j);           // Action index
          ref.putIndex(cTID("ASet"), asetIndex);   // ActionSet index
          var desc;
          try {
            desc = executeActionGet(ref);
          } catch (e) {
            break;   // all done
          }
          if (desc.hasKey(cTID("Nm  ")) &&
              desc.getString(cTID("Nm  ")) == atn) {
            return true;
          }
        }
      }
      return rc;
    };
    
  • Compare the gold - change of scale model?

    Hello

    I have a prototype system of control works very well with the Template.vi or compare and find most of the defects in my DataSet.

    However, currently I have position and scale information coming from the pattern match in compare it gold screw model (as in the example of OR). This works well when the samples have the same size, but if there are any changes to the scale but the comparison of the model begins to fight. (I tried the border thickness settings to ignore it, but it could be even better)

    I would like to be able to use the pass information on the scale of the Pattern Match in the model compare gold, but when I just wire the value in front of the cluster of pattern match (as is done with the information of position and angle) the program and then not picking up not the other flaws he did before, even when the scale has not changed.

    Has anyone encountered this problem before?
    I have to somehow prepare the VI of model or compare to a size change?

    (final application is a system of inspection of logo, very similar to the example of NOR provided)

    Obtained this sort ultimately (via a call to support) so leave a note for all those who in the future which has this problem:

    The scheme normal game VI does not scale ouput information.

    You must use the GEOMETRIC pattern match to get the information across.

  • How to check if the device is configured for the HTTP connection data plan?

    Is it possible to check if the device has data during http connection (regular data plan just not bes or bis)?

    I don't want my app to make connections if it leads to an additional burden for the user by the carrier.

    lol but you can provide it as an option to the user, he should know.

  • Check if the bounding box is another setting of

    Using the PDETextIsAtRect function, I discovered that if returns items that do not part of the bounding box. So I wanted to know if I have two bounding boxes, is it possible to check if the an element bounding box is located in the bx covering something else.

    This isn't valid C. Eh well, clearly, it compiles, but it doesn't do very well what you think. You cannot use form one<= b=""><= c,="" only="" compare="" two="" things,="" not="">

  • How to check if the mobile/cell the same phone number is registered on the different apple ID?

    Hello

    Is it possible to have the same number of mobile/cell phone with several Apple ID?

    If Yes, is it possible to check if the number is connected to several Apple ID? and how it can be removed?

    When I changed my job, I got a new cell phone number.

    I disconnected all my devices and removed my old number of my Apple ID, after that, I added my new number to my Apple ID and connected to my devices (iPhone, iPad and MacBook Air).

    The thing is that the person who had my new phone number previously, had the same phone number, added to their Apple ID.

    I get time iMessage and FaceTime applications contact the previous owner of my phone number.

    Even if it's annoying that I don't really like, I just block the numbers I don't recognize.

    But my big question is, if my friends iMessage and FaceTime applications for my new phone number can be found at the i-devices previous holders?

    I hope it's understandable - because it feels like a security risk.

    / Calle

    Unregister the old number

    https://selfsolve.Apple.com/deregister-IMessage

  • How (if possible) to check several Applecare statutes at the same time?

    I have several assets (hundreds) I want to check the soap operas to reach purchase date, and when the warranty expires. The Web site to check this allows only one at a time so as you can guess, it would be painstakingly your time.

    Is it possible to check in bulk of serials to acquire this information?

    None that I know, and I suppose that if there was a way he could mention on the status page.

  • Octoshape streaming services: could not bind to the local host. Please check your firewall configuration

    Original title:

    Octashape streaming system

    Hello

    A dialog box appears on my screen:
    Octoshape streaming services: could not bind to the local host. Please check your firewall configuration

    What should I do?

    And if this does not work between the firewall what is the solution?

    Thank you!

    [Moved from the community centre of Participation]

    You seem to have installed a useless program, Octoshape.

    http://www.bing.com/search?q=Octoshape

    You should be able to remove it from programs and features (or the list of installed programs, depending on your version of Windows.)

    Don

  • I get a popup that says no audio device imput found. Make sure that your audio hardware is workingand check your audio configuration in the audio device and sound themes control anel

    I get a popup that says that no sound device imput is to make sure that your audio hardware works and check your audio configuration in the audio device and sound control panel themes

    Hello

    1. what operating system is installed on the computer?

    2. when exactly you receive this pop up?

    3. able to play sounds using Windows Media Player?

    Please provide more information on the issue so that we can better help you.

    In the meantime, try the troubleshooting provided in the link below steps to solve the problem.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

  • Is it possible to compare the contents of two folders

    Someone copied one of our folders with subfolders on the server from one place to the other. Now, some people use the old location and the new location. Is it possible to compare the two, to find the difference and merge them into a file without losing any information?

    There are third party tools that can automate a large part of it, but you still need to judge what part gets merged from which file.  One of those tools that I know is "Beyond Compare"

    Beyond Compare: <> http://www.scootersoftware.com/index.php >

    Not free, but in my humble OPINION is worth the price.

    HTH,

    JW

  • PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctl

    PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctly, contact your host about the configuration of PHP.

    Hi Graham,

    If you, please add your site to this link ( http://my-site.com/scripts/form_check.php ) and make sure that all green checkmarks are appearing. If they don't, let us know what errors you seem to receive and include the link to your site.

    In addition, check out this guide on the forums of Muse troubleshooting: Troubleshooting Muse form used on the servers of third party Widgets

    I hope this helps!

    Emily

  • How to check if the database for DRDA gateway is installed and configured.

    Hi all

    How can we check if the database for DRDA gateway is installed and configured.

    Our operating system is AIX 5 L 64 bit OS.
    RDBMS: 11.2.0.3

    Kind regards

    Duplicated
    How to check if the database for DRDA gateway is installed and configured.

    + - locked thread-+.

    Nicolas.

  • Is it possible to check if a user has a font of the device before using it?

    It's all in the title really. I was hoping that he could be a way to check if the user has already installed on the computer here to try to save the police loading the runtime when is not necessary a certain font. Is this possible with Flex4 and the new TLF?

    Thank you

    Ollie

    Font.enumerateFonts (true); I will give you a picture of the embedded fonts and device.

  • possible to customize #{bindings. Delete.Enabled} check at the ADFBC level?

    11g ADF Faces w/ADFBC

    It is possible to customize the controls for a deletion lie at the underlying level EntityImpl or ViewRowImpl?

    On my page, I have a table within a collection of panels. On the toolbar of the collection of panels, I have a button linked to a delete operation on the iterator that provides the data in the table.

    I want the delete button should be disabled for certain lines, from various data controls. (In my case, check if the DB line is referenced elsewhere in the DB). Is there an EntityImpl method or ViewRowImpl I can substitute to perform this check?

    (I know I can replace remove() to check and throw an exception, but it would happen once the user has pressed the button on the web page.)

    (I also know that I can get the desired effect at work by creating a method on a bean of support to retrieve the selected row in the table and on the basis of my custom logic control on it. However, I was wondering if there was a better way to work with the ADFBC framework to achieve.)

    Thank you for reading my question.

    A way to do it would be to create a transient attribute in your VO, which returns true or false based on the question of whether the line can be deleted.
    Then in your page have the property to disable the button depending on the value of this transitional attribute.

  • It is possible to compare the contact fields based on the value of data updated?

    Hi all -

    I would like to run a filter and compare my contact fields if the value in a field has been updated or changed.

    for example if the data in the "first name" value changes to be empty to have a value, which would respect the requirement.  Also if "phone number" 123-456-7890 to 999-000-0000 that would also meet the requirement.

    Did anyone done this before?  Any ideas of how to implement?

    Any contribution is appreciated.  Thank you!

    If that's what you're talking about, there is no trace of audit in Eloqua.

    It will be great if Oracle can verify the critical fields.

    The solution is to create to the top of the field in another area, so when it changes, you can compare the values.

    Good luck

Maybe you are looking for