Create an EEM to find a port (mac address)

Hello

I´d like to create a script to find where an IP address is associated.

Manually I can do it by using the command "show arp | in 10.10.10.50"(IP that I'm looking for), that give me the mac address, then I use the command"Display mac ad ad 4055.39dc.f468"(mac associated with this IP address).

GW01 #show arp | in 10.10.10.71
Internet 10.10.10.71 0 4055.39dc.f468 ARPA Vlan10
GW01 mac ad 4055.39dc.f468 ad #show
Mac address table
-------------------------------------------

VLAN Mac Address Type Ports
----    -----------       --------    -----
10 4055.39dc.f468 Po4 DYNAMICS
Total of the Mac addresses for this criterion: 1

Would be nice if I can run the EEM informing the IP address (example: findport 10.10.10.50) and get the final result (interface where this IP is associated with).

How I do that? How to pass the IP address I typed EEM and after, how to get the MAC that address the first command shown?

Thank you for all.

The error could be related to: https://tools.cisco.com/bugsearch/bug/CSCsy89677

If this is the case, the error message is cosmetic only.

Tags: Cisco Network

Similar Questions

  • Port MAC address Dell 6224 Switch

    Y at - it a command to find ports a 6224 switch MAC address? I am desperately looking for it yesterday... Thanks in advance!

    You can use the following command to view MAC learned on an interface # show bridge address-table address.

    You can also use the technology to see the order #, collect a lot of information about the switch.

    Can you give us more information about the task, you are trying to reach?

  • Find the offending MAC address to bpduguard

    I have a Cisco WS-C6509-E with IOS, connected to a hypervisor with several virtual machines on it.

    The port on the 6500 that connects to the hypervisor is a trunk port and allowed to bpduguard.

    One of the virtual machines is originally the port pass to err - disable State by sending BPDUS. I'm trying to figure out which, the Cisco itself. Specifically, I'm trying to find the MAC address of the virtual machines.

    Is this possible? I watched with full spanning tree debugging on debugging, but all I get is that the port will in err - disable. He's going to tell me what is the address MAC offending (or anything on the BPDUS).

    Short of stripping the VLAN on the trunk, until I have the network guilty (which won't actually give me guilty unit but rather, only sound VLAN), I don't know if there is a direct command or debug to give me this information directly. Can anyone help?

    Hello

    Try extending over the port and capture some of the traffic.

    Thank you

    John

  • It is possible to find the old MAC address?

    I have a serious problem with an application because of licensing depends on the virtual machine's MAC address. This MAC address changed when the transferd vm to another host.

    Do you know if there is a way to find old MAC?

    Thank you

    NR

    While previous answers are basically good, I want to add that you need to search your vmware*.log files or all occurrences ethernetX.generatedAddress to find the older Macs used by the virtual machine.

  • Create the virtual computer with a static MAC address

    Hi all

    Im trying to create a virtual machine with PowerCLi but im failing to connect New - VM with an addapter network?

    I know that you can create new network addapter with:

    New-card network -MacAddress 00:50:56:bb:00:13 -Type e1000 -NetworkName ' Vlan 6 Virtual Machine '

    But this will create just a network card on the server im related to the use

    to connect-viserver

    New-VM

    -Name VMSTORE23 -$vmhost $esxhost -data store $datastore DiskMB - 20000 MemoryMB - 2019 -NumCpu 2

    I think that the cdmlet that I need to use is OScustomizationSpec - but like I said im strugling to connect?

    Someone at - it ideas.

    Thanks in advance for your help.

    Eddie

    You're almost there, the MAC address must be specified as a string, enclose it.

    New machine virtual- - name VMSTORE23 - $vmhost $esxhost - $datastore - DiskMB 20000 - MemoryMB 2048 Datastore - NumCpu 2 - NetworkName "Vlan 6 Machine virtual network | Get-NetworkAdapter | Set-NetworkAdapter -Type Vmxnet3 -MacAddress "00:50:56:bb:00:2 b" - confirm: $false

    I added the - confirm the setting, as it will not request the change.

  • MAC address grabbing PowerCLI - creating virtual machines-

    I'm trying to create a script which will create x number of VMs, enter the mac address of the NETWORK adapter on the newly created virtual e1000 computer and then add it to a CSV file.  When I run my script, I get an error "property"macaddress"is not found on this object; Make sure that there is and can be defined.

    What I am doing wrong?

    Here's what I have so far:

    $newvms = import-csv $importfile

    $objreport = @)

    $Report = import-csv $importfile | Select-object *, macaddress

    $newvms | %{


    $vname = $($_.) Host name)

    New-VM-name $vname - VMhost $vmhost ResourcePool - $pool - DiskMB $disksize - $memsize MemoryMB - NumCpu $cpu DiskStorageFormat - slim - $datastore - ID $os - NetworkName Datastore $nic0-location $location

    $macnic1 = get-NetworkAdapter - vm $vname | where {$_ game-match "e1000"} | Select-object MacAddress

    #$Report.hostname = $($_.) Host name)
    $Report.macaddress = $macnic1

    New-NetworkAdapter - VM $vname NetworkName - $nic1 - StartConnected-Type vmxnet3
    New-NetworkAdapter - VM $vname NetworkName - $nic2 - StartConnected-Type vmxnet3
    $objreport += $Report
    }

    $objreport | Export-csv $outputfile - NoTypeInformation

    It seems to work when I change

    $Report = import-csv $importfile | Select-object *, macaddress

    TO

    $Report = "" | Select-object hostname, macaddress

    But I need the content of the $importfile

    Thanks in advance

    CJ

    Hello, cjcurts-

    You can adjust the code of Luke a little so that it exports the original info as well as the MAC address.  It would be something like:

    ## save the imported info$colVMInfoFromCSV = Import-Csv $importfile## add a NoteProperty to the info (later to be a "column" at Export-Csv time)$colVMInfoFromCSV | Add-Member -MemberType NoteProperty macaddress -value $null$colVMInfoFromCSV | %{    $vname = $($_.Hostname)    New-VM -name $vname -VMhost $vmhost -ResourcePool $pool -DiskMB $disksize -MemoryMB $memsize -NumCpu $cpu -DiskStorageFormat thin -Datastore $datastore -GuestID $os -NetworkName $nic0 -Location $location
    
        $macnic1 = Get-NetworkAdapter -vm $vname | where {$_.type -match "e1000"} | select-object MacAddress
    
        ## put the MAC address in this "row" of the collection of info (this object in the array of objects)    $_.macaddress = $macnic1
    
        New-NetworkAdapter -VM $vname -NetworkName $nic1 -StartConnected -Type vmxnet3    New-NetworkAdapter -VM $vname -NetworkName $nic2 -StartConnected -Type vmxnet3}
    
    ## export the info, which now contains the MAC address info as well as the original info$colVMInfoFromCSV | Export-Csv $outputfile -NoTypeInformation
    

    Who uses the Add-Member cmdlet to add a NoteProperty in the original news and fills then each 'line' with the corresponding MAC address information.  It is in fact setting a value for the "macaddress" for the given custom object property.  It exports then all the info to the "outputfile".

  • assignment range static mac addresses

    Anyone know or knows where I can find what the mac address range is responsible for functions static mac end user for virtual machines?  There is a specific, cited in the 4.x documentation Beach, but the docs 5.x just say do not walk on the beaches of use reserved for vCenter Server, host network adapters physical, virtual cards, but says not what is Beach, reserved or allowed is, so I don't know what to avoid.  I opened a support ticket and asked the same question and I was told there is no specific void range defined for static assignment, and I have to look in my environment to see what was automatically generated for what could not be attributed.  Of course, this does not solve the potential problem of an address that I choose to be automatically generated by vcenter for a future new virtual machine.

    Also, does anyone know what virtual machine operations can cause the mac to change address?  I'm trying to determine whether it is necessary to assign a static address to a virtual machine that has a license associated with it, so I need to know what would be the probability of this change.  Support could not answer this question.

    Thanks to all in advance.

    Have you checked the http://pubs.vmware.com/vsphere-55/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-55-networking-guide.pdf 148 pages

    Documentation - once the MAC address is generated, it does not change unless the virtual machine MAC address conflicts

    with that of another virtual machine saved. The MAC address is stored in the virtual machine configuration file.

  • Change MAC address

    Hi team,

    I'm quite new to VMware technology. I would be grateful for any feedback.

    I came across a situation where I found that Vsphere showed a different MAC address for physically found whats network cards. I guess this is the reason why it says vNIC.

    dojoy@cisco.com_20130529_202324.png

    The screenshot above shows MMIC (of a Cisco UCS server) on the right of the VMware Client to the same host.

    T1) why there at - it a Variant?

    Q2) how to find the real MAC address on the Vshpere Client using GUI or CLI?

    Are you sure have the same selected host?  On the vmnic0 left and 1 are connected.  On the right, vmnic2 is showing something to watch IP ranges which suggests it is plugged.

  • Need to find a way to block a MAC address

    Hi all

    I'm trying to block a certain MAC address or get an IP via DHCP, or if not possible to access the network.  I have remote sites with Cisco routers, but have not all Cisco switches.  What I find is that some people are plugging their devices and portable personal computers to the network.  Since I caught and got the MAC address of the DHCP bindings, I'm willing to put in some sort of rule to block.  I asked, but they openly ignore me.  If I have something in the router, they can get around that.  I tried to create an access list 700 to block the mac, but that doesn't seem to work.  I tried this on a Cisco 1841, 1921 and 2901 and it did not work.  Guidance on how to block a particular MAC address, or a bit of doing anything with a Cisco router, running, but without a Cisco Switch location is greatly appreciated.

    Thank you

    David

    Far from having a full network as Cisco ISE access control system, it is easier to do on your DHCP server, but whether or not you can do depends on the type of server you are using.

  • where can I find the mac address for Airport Extreme

    just bought a new Airport Extreme 802.11ac and I don't know here to find the MAC ADDRESS. Can someone tell me where to look. I have the model and serial number, but can not find the MAC ADDRESS.

    Is the AirPort Extreme, set up and operation right now... even if he could not have an Internet connection?

    If Yes... Open the AirPort on your Mac utility... (Finder > Applications > utilities > AirPort Utility)

    Hold down the option key on your Mac when you double-click on the image of the AirPort Extreme

    The next page will display a summary of the parameters

    The AirPort Extreme has done 3 different MAC addresses... Ethernet, WiFi 2.4 GHz and 5 GHz WiFi.   If your AirPort Extreme is connected to a modem by an Ethernet cable, then the Ethernet ID is the MAC address.

    If the AirPort Extreme has not set up yet at all...

    Open AirPort Utility as above, and then click the file menu in the upper left corner of the screen next to the Apple icon

    Click on configure the other

    For address, enter 10.0.1.1

    A password is normally not necessary, but if you are prompted for a password, use the word

    public

    Click OK, the settings summary page is displayed.  In most cases, given that the AirPort Extreme connects to a modem via an Ethernet connection, you want to use the Ethernet ID as the MAC address.

    If you are still experiencing difficulties, you have 90 days of support Apple phone. Call them and maybe they can explain why that should be a very simple task is so difficult.

    Contact - Support official Apple

  • Stolen MacBook. How can I find my mac address?

    Hello

    MY Macbook was stolen along with my air ipad and the iphone 6.

    How can I find my lost my macbook mac address in order to help the police with the case?

    Thanks in advance,

    Florin

    If you find my iPhone/iPad/Mac before they were stolen, use the link below:

    https://www.iCloud.com/#find

    If you are looking for the serial number, it is in the box of the device provided with.

    Or if you have another computer when you synchronize your iPhone/iPad

    computer iTunes > Preferences... > devices > hover your mouse over the backups to see serial number, etc..

  • Where the photos are normally stored on a Mac computer? In the folder images in the Finder on my Mac, I see a file called "Library.photoslibrary Photos" i.e. 28.52 GB but I also have about 160 other image files in the same folder. But in pictures,.

    Where the photos are normally stored on a Mac computer? In the folder images in the Finder on my Mac, I have a file named "Library.photoslibrary Photos" i.e. 28.52 gb and another folder called 'iPhoto Library.migratedphotolibrary' i.e. 4.95 GB, but then I have also on the 160 other photo and video files in the same folder. But in my Photos app, it says that I have 6 260 'elements '.

    The pictures that you have imported into the photo library are, by default, stored inside the package (not file) "Library.photoslibrary Photos" in your pictures folder. The 'iPhoto Library.migratedphotolibrary' package would contain photos that have been stored in your library, iPhoto at the time of the migration.

    The other files in the pictures folder are that: other files. Also, they can be in libraries if you imported and has not deleted the copies lying around in the images.

  • Find the MAC address of my computer

    I know that there is a simple command to run in the command prompt window when I want to find the MAC address of my computer to connect to my router for the MAC address filtering.

    I thought it was MSCONFIG, but it isn't and darn if I can remember the correct command.  Can someone help me?

    Thank you

    Walt

    Hi, Walt:

    Run ipconfig/all from your command prompt command in accessories

    Paul

  • Is it possible to find the MAC address in Microsoft Windows computers.

    Original title: help
    its possible find in microsoft net computers IP - MAC address, and where I need to write if I run to

    Hello

    Yes, the MAC address is present in every system that connects to the Internet and runs any version of Windows.

    MAC address stands for Media Access Control (MAC address) is a unique identifier assigned to the network interfaces for communications on the physical network segment.

    To find the MAC address on Windows XP computer try the steps below.

    (a) click the start menu button in the Windows taskbar.

    (b) click 'run... '. "in this menu.

    (c) type "cmd" in the text box that appears. A command prompt window launches on the desktop.

    (d) in the command window, type ' ipconfig/all'. The details are displayed for each of the network adapters on the computer. Computers installed with the software VPN or software emulation will have one or more virtual cards.

    (e) the "IP address" field contains the IP address of the network card.

    (f) the 'physical address' field contains the MAC address of the card.

  • What command to find the MAC address of a Dell XP pc

    What dos command or where XP you can find the MAC address of the embedded network interface card?

    What dos command or where XP you can find the MAC address of the embedded network interface card?

    ipconfig/all

Maybe you are looking for

  • Bookmarks of the original HARD disk

    HelloI recently installed a new HARD drive with updated windows OS (7).I searched how I can copy my favorites to my new profile, however that does not appear the list of bookmarks I had saved, so I was not confident in any copy. Am I missing somethin

  • Permanent and continuous storage for family photos large and video solution

    I have been using external hard drives to save years of athletics competitions for my children, for posterity and my team amateur video (iMovie project) at the end of the season.  However, I need a failsafe, courses and the permanent storage for my t

  • X 220-problem of server terminal server / 3 G / VPN

    Hi all I have two X 220 with identical problems. The procedure to connect to our server terminal server (Windows 7, server = v2008) is: -connect to the internet -connect to the VPN (using the Version of Cisco VPN Client 5.0.07.0290) -connect to the s

  • computer is empty when trying to system recovery.

    Hi, I have a hp pavilion elite e9220y of windows 7. I got a message bootMGR missing on my computer and did not have a restore disk created. When I tried using the built in recovery of the system that has nothing past. (tried several times). So I orde

  • How to remove the unwanted icons in the toolbar next to the Start button?

    I have two of these lines has never asked for them. What are they and can you help me to get rid of them please * original title - I have unwanted icons in my toolbar next to the Start button, how can I get rid of them please *.