[rancid] Assistance creating a perl module to use with ZPE Systems NodegridOS Devices

Mick O'Donovan mick.odonovan at heanet.ie
Fri Oct 15 19:34:17 UTC 2021


On 15/10/2021, 20:16, "heasley" <heas at shrubbery.net> wrote:

    CAUTION[External]: This email originated from outside of the organisation. Do not click on links or open the attachments unless you recognise the sender and know the content is safe.
    
    
    Fri, Oct 15, 2021 at 07:10:45PM +0000, Mick O'Donovan:
    >     IMO, it is part of the conversation and is further confirmation that was
    >     normal.  Various devices have had cli bugs over time.  Does not hurt to
    >     remove it for debugging.
    >
    > By this do you mean to leave the original file alone or my version is fine? Sorry excuse my ignorance here.
    
    Leave the modification for testing, but to be pedantic, try to restore the
    check once everything else is working.
    
    > Something must be up alright, here's the contents of the raw file that was created...
    >
    > ===
    > Error: Usage: /usr/bin/zpelogin [-dhSV] [-m|M] [-autoenable] [-noenable]  [-c command] [-Evar=x] [-e enable-password] [-f cloginrc-file]  [-p user-password] [-r passphrase] [-s script-file] [-t timeout]  [-u username] [-v vty-password] [-w enable-username] [-x command-file]  [-y ssh_cypher_type] router [router...]
    > ===
    >
    > Any ideas?
    
    my mistake; the hostname is missing, whatever it is:
    
    eval `rancid -C -t zpe <hostname>` >& raw

The raw file is flawless!

This is most frustrating ☹

The raw file shows:

1. the login
2. command 1 being run
3. the command 1 output (in full and as expected)
4. command 2 being run (I've reduced it to just two commands - "show system/about" and "export_settings")
5. the command 2 output (in full and as expected)
6. the exit being issued and successfully exiting

Mick
    



More information about the Rancid-discuss mailing list