[rancid] include snmp3 users from IOS

Gauthier, Chris cgauthier at comscore.com
Fri Jul 21 15:07:58 UTC 2017


Chris GauthierSenior Network Engineer | comScore, Inc.
o +1 503-331-2704cgauthier at comscore.com
317 SW Alder St, Suite 500 | Portland | OR97204
............................................................................................................................................................................................................................

-----Original Message-----
From: Rancid-discuss <rancid-discuss-bounces at shrubbery.net> on behalf of "Eric W. Bates" <ericx at whoi.edu>
Organization: Woods Hole Oceanographic Institution
Date: Friday, July 21, 2017 at 5:42 AM
To: "rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
Subject: [rancid] include snmp3 users from IOS

    Somewhat annoyingly, snmp v3 users are not displayed in cisco IOS as
    part of the config. Instead, you can only see them by executing "show
    snmp user" on an enabled command line. e.g.:
    
    add a user authentication:
    
    conf t
    snmp-server user SNMPD00D READONLY v3 auth sha auth-secret priv aes 128
    crypt-secret access SNMP
    
    
    show a user authentication:
    
    switch#sho snmp user
    
    User name: SNMPD00D
    Engine ID: 8000000903002852614BBF01
    storage-type: nonvolatile        active
    Authentication Protocol: SHA
    Privacy Protocol: AES128
    Group-name: READONLY
    
    
    I would like to include "show snmp user" in our RANCiD collect. Has
    anyone already done this?
    
    Thanks for your time.

The cool part about this is you can modify the commands very easily now, if you are current.  The rancid.types.base and rancid.types.conf files are where to look.  The original command set for “cisco-nx” has a lot of commands not applicable to the Nexus 56128P or 9372 running 7.x, so I copied the default cisco-nx profile into rancid.types.conf and changed it to cisco-nx5600-9000 with the commands I want.  Works like a champ.
--Chris
    
    -- 
    Clark 159a, MS 46
    508/289-3112
    
    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170721/02c716df/attachment.html>


More information about the Rancid-discuss mailing list