Mailing List Archive

Making variant of cisco ios
I have some old cisco ACE devices and have been backing them up with rancid using the normal "cisco" module.

I want to add some commands like "show ft group summary" for example, and have the output of those commands show up in rancid diffs, prefixed with exclamation points in the same way that normal "show version" output is.

I've done this before by copying a device type definition from /etc/rancid.types.base to /etc/rancid.types.conf and editing it, but in the past I was always removing troublesome commands, not adding new ones.

Is there an existing module that I can reference in /etc/rancid.types.conf that simply takes the output from a command and prefixes exclamation points, no fancy special processing? Or do I need to write one?

Thanks!
--Charlie

------------------ CONFIDENTIALITY NOTICE ---------------

This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.

------------------ CONFIDENTIALITY NOTICE ---------------

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Making variant of cisco ios [ In reply to ]
Tue, Feb 20, 2018 at 05:37:52PM +0000, Charles T. Brooks:
> I have some old cisco ACE devices and have been backing them up with rancid using the normal "cisco" module.
>
> I want to add some commands like "show ft group summary" for example, and have the output of those commands show up in rancid diffs, prefixed with exclamation points in the same way that normal "show version" output is.
>
> I've done this before by copying a device type definition from /etc/rancid.types.base to /etc/rancid.types.conf and editing it, but in the past I was always removing troublesome commands, not adding new ones.
>
> Is there an existing module that I can reference in /etc/rancid.types.conf that simply takes the output from a command and prefixes exclamation points, no fancy special processing? Or do I need to write one?

ios::ShowDetail() does very little.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Making variant of cisco ios [ In reply to ]
Cisco stuff is so full of conditions and exceptions that sometimes it
helps to look outside that ecosystem-of-bloat (not the fault of Rancid,
fwiw).
That said, ShowCellular is pretty simple. You could eliminate the PDP
and DNS lines for certain.

outside of ios.pm, hrancid has some nice svelte ones like ShowVersion
and ShowStack.

Just modify ProcessHistory accordingly.

On 2/20/2018 12:37 PM, Charles T. Brooks wrote:
> I have some old cisco ACE devices and have been backing them up with rancid using the normal "cisco" module.
>
> I want to add some commands like "show ft group summary" for example, and have the output of those commands show up in rancid diffs, prefixed with exclamation points in the same way that normal "show version" output is.
>
> I've done this before by copying a device type definition from /etc/rancid.types.base to /etc/rancid.types.conf and editing it, but in the past I was always removing troublesome commands, not adding new ones.
>
> Is there an existing module that I can reference in /etc/rancid.types.conf that simply takes the output from a command and prefixes exclamation points, no fancy special processing? Or do I need to write one?
>
> Thanks!
> --Charlie
>
> ------------------ CONFIDENTIALITY NOTICE ---------------
>
> This message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain privileged confidential information
> protected by law. Any unauthorized review, use, disclosure or distribution
> of this message is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of this message.
>
> ------------------ CONFIDENTIALITY NOTICE ---------------
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)
Re: Making variant of cisco ios [ In reply to ]
Doug, could you elaborate on what you meant by "modify ProcessHistory accordingly"? I feel like I'm missing some basic concept here.

(I've added the command I want to my custom cisco-ace type definition, and modified router.db to reference the cisco-ace type, but the new command output isn't showing up in the mailings and git repo. It's still just the same as I've been getting from the standard cisco type I was already using.)

Thanks,
--Charlie
________________________________
From: Rancid-discuss [rancid-discuss-bounces@shrubbery.net] on behalf of Doug Hughes [doug.hughes@keystonenap.com]
Sent: Tuesday, February 20, 2018 2:03 PM
To: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Making variant of cisco ios

Cisco stuff is so full of conditions and exceptions that sometimes it helps to look outside that ecosystem-of-bloat (not the fault of Rancid, fwiw).
That said, ShowCellular is pretty simple. You could eliminate the PDP and DNS lines for certain.

outside of ios.pm, hrancid has some nice svelte ones like ShowVersion and ShowStack.

Just modify ProcessHistory accordingly.

On 2/20/2018 12:37 PM, Charles T. Brooks wrote:

I have some old cisco ACE devices and have been backing them up with rancid using the normal "cisco" module.

I want to add some commands like "show ft group summary" for example, and have the output of those commands show up in rancid diffs, prefixed with exclamation points in the same way that normal "show version" output is.

I've done this before by copying a device type definition from /etc/rancid.types.base to /etc/rancid.types.conf and editing it, but in the past I was always removing troublesome commands, not adding new ones.

Is there an existing module that I can reference in /etc/rancid.types.conf that simply takes the output from a command and prefixes exclamation points, no fancy special processing? Or do I need to write one?

Thanks!
--Charlie

------------------ CONFIDENTIALITY NOTICE ---------------

This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.

------------------ CONFIDENTIALITY NOTICE ---------------

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562) [cid:part1.26132052.B9B153C1@keystonenap.com]
------------------ CONFIDENTIALITY NOTICE ---------------

This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.

------------------ CONFIDENTIALITY NOTICE ---------------