19 February, 2014

Cisco IOS empty XML output issue

Noticed a weird issue with using the | format command. The switch had been idle for about 16 hours since last connection.

Issued command:
DLS2#sh cdp neighbors detail | format

Got reply:
<?xml version="1.0" encoding="UTF-8"?>
  <show_cdp_neighbors_detail xmlns="ODM://flash:/finalspan.odm//show_cdp_neighbors_detail">
    <SpecVersion>built-in</SpecVersion>
  </show_cdp_neighbors_detail>

No output of CDP whatsoever. I issued the same command again, 5 seconds later without any config alteration:
DLS2#sh cdp neighbors detail | format

Got reply:
<?xml version="1.0" encoding="UTF-8"?>
  <show_cdp_neighbors_detail xmlns="ODM://flash:/finalspan.odm//show_cdp_neighbors_detail">
    <SpecVersion>built-in</SpecVersion>
    <beginner>
      <remote_hostname>DLS1</remote_hostname>
      <remote_ip_addr>10.1.1.11</remote_ip_addr>
      <local_int>FastEthernet0/12,</local_int>
      <remote_int>FastEthernet1/0/12</remote_int>
    </beginner>
    <beginner>
      <remote_hostname>DLS1</remote_hostname>
      <remote_ip_addr>10.1.1.11</remote_ip_addr>
      <local_int>FastEthernet0/11,</local_int>
      <remote_int>FastEthernet1/0/11</remote_int>
    </beginner>
    <beginner>
      <remote_hostname>ALS2</remote_hostname>
      <remote_ip_addr>10.1.1.14</remote_ip_addr>
      <local_int>FastEthernet0/8,</local_int>
      <remote_int>FastEthernet0/8</remote_int>
    </beginner>
    <beginner>
      <remote_hostname>ALS2</remote_hostname>
      <remote_ip_addr>10.1.1.14</remote_ip_addr>
      <local_int>FastEthernet0/7,</local_int>
      <remote_int>FastEthernet0/7</remote_int>
    </beginner>
    <beginner>
      <remote_hostname>ALS1</remote_hostname>
      <remote_ip_addr>10.1.1.13</remote_ip_addr>
      <local_int>FastEthernet0/10,</local_int>
      <remote_int>FastEthernet0/10</remote_int>
    </beginner>
    <beginner>
      <remote_hostname>ALS1</remote_hostname>
      <remote_ip_addr>10.1.1.13</remote_ip_addr>
      <local_int>FastEthernet0/9,</local_int>
      <remote_int>FastEthernet0/9</remote_int>
    </beginner>
  </show_cdp_neighbors_detail>

Exact same anomaly occured on my other switch.
Affected hardware is running on:
c3560-ipservicesk9-mz.122-55.SE7.bin
c3750-ipservicesk9-mz.122-55.SE8.bin

No comments:

Post a Comment