[rancid] Cisco commands in 3.6.2

Craig Hopkins c.o.hopkins at gmail.com
Thu Jun 29 10:18:00 UTC 2017


On a Catalyst switch:

#show inventory ?
  WORD  Entity name
  raw   Show every entity in the container hierarchy
  |     Output modifiers
  <cr>

so raw is supported, and I can see that in the backups.

The ASAs only support show inventory, though.

So should I just remove raw from the end of the command in rancid base
types, and then it will work for all devices?

On 28 June 2017 at 23:13, Piegorsch, Weylin William <weylin at bu.edu> wrote:

> ASA5545-X-version9.4(4)5/pri/act# sh inventory
> Name: "Chassis", DESCR: "ASA 5545-X with SW, 8 GE Data, 1 GE Mgmt"
> PID: ASA5545           , VID: V02     , SN: FTX184410TS
>
> Name: "power supply 0", DESCR: "ASA 5545-X/5555-X AC Power Supply"
> PID: ASA-PWR-AC        , VID: N/A     , SN: 48V1FE
>
> Name: "power supply 1", DESCR: "ASA 5545-X/5555-X AC Power Supply"
> PID: ASA-PWR-AC        , VID: N/A     , SN: 48V1FF
>
> Name: "Storage Device 1", DESCR: "Model Number: Micron_M550_MTFDDAK128MAY"
> PID: N/A               , VID: N/A     , SN: MXA183501WN
>
> Name: "Storage Device 2", DESCR: "Model Number: Micron_M550_MTFDDAK128MAY"
> PID: N/A               , VID: N/A     , SN: MXA183501QL
>
> ASA5545-X-version9.4(4)5/pri/act#
>
> -----Original Message-----
> From: heasley <heas at shrubbery.net>
> Date: Wednesday, June 28, 2017 at 18:07
> To: Weylin Piegorsch <weylin at bu.edu>
> Cc: heasley <heas at shrubbery.net>, Craig Hopkins <c.o.hopkins at gmail.com>, "
> rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
> Subject: Re: [rancid] Cisco commands in 3.6.2
>
>     Wed, Jun 28, 2017 at 08:30:32PM +0000, Piegorsch, Weylin William:
>     > Does this help?  I just ran this on an ASA I currently have in
> Rancid (v3.4).
>     > weylin
>     >
>     > ASA5545-X-version9.4(4)5/pri/act# sh inventory ?
>     >
>     >   <0-3>  Inventory slot number
>     >   |      Output modifiers
>     >   <cr>
>     > ASA5545-X-version9.4(4)5/pri/act# sh inventory
>
>     yes; it doesnt support the raw keyword.  What does the o/p look like
> (w/o a
>     slot speicfied)?
>
>     > -----Original Message-----
>     > From: heasley <heas at shrubbery.net>
>     > Date: Wednesday, June 28, 2017 at 13:32
>     > To: Craig Hopkins <c.o.hopkins at gmail.com>
>     > Cc: <rancid-discuss at shrubbery.net>
>     > Subject: Re: [rancid] Cisco commands in 3.6.2
>     >
>     >     Wed, Jun 28, 2017 at 10:10:23AM +0100, Craig Hopkins:
>     >     > Hi,
>     >     >
>     >     > rancid is happily backing up my ASAs and switches, but in
> rancid.types.base
>     >     > I can see
>     >     >
>     >     > cisco;command;ios::ShowInventory;show inventory raw
>     >     >
>     >     > How do I get rancid to run this command on a Cisco? It isn't
> currently. It
>     >     > looks like it's just doing show version, show flash and show
> running.
>     >
>     >     it is run; but if the command is not supported by the device or
> is different
>     >     on the ASA (because cisco is incapable of consistency between
> platforms) and
>     >     therefore is "ambiguous", that failure will be ignored by
> rancid.  if you
>     >     know what the correct command is for the ASA, lmk.
>     >
>     >
>     >
>     >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170629/316d05e0/attachment.html>


More information about the Rancid-discuss mailing list