jerancid failing on asterix's ?

john heasley heas at shrubbery.net
Tue Jan 10 06:46:18 UTC 2006


Mon, Jan 09, 2006 at 02:31:53PM +0000, Mark Cooper:
> Think I'm having problems with asterix's being returned in the 'show
> environment all' command output ...

though it does seem that there is a missing catch, i suspect its not the
asterixs, rather it appears that the telnet died.  does clogin -c 'show
environment all' work?

> 
> 
> lab-srv-001:/var/lib/rancid/bin# cat jerancid.debug
> executing clogin -t 90 -c"show version;show redundancy;show boot;show
> environment all;dir;show hardware;show configuration" lab-bas-002
> PROMPT MATCH: lab-bas-002#
> HIT COMMAND:lab-bas-002#show version
>     In ShowVersion: lab-bas-002#show version
> HIT COMMAND:lab-bas-002#show redundancy
>     In ShowRedundancy: lab-bas-002#show redundancy
> HIT COMMAND:lab-bas-002#show boot
>     In ShowBoot: lab-bas-002#show boot
> HIT COMMAND:lab-bas-002#show environment all
>     In ShowEnv: lab-bas-002#show environment all
> write(spawn_id=1): broken pipe
>     while executing
> "send_user -- "$expect_out(buffer)""
>     invoked from within
> "expect -nobrace -re+ { exp_continue } -re {^[^
>  *]*lab-bas-002([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
> "$expect_out(buffer)"
>                                                 } -re {..."
>     invoked from within
> "expect {
>                 -re "\b+"                       { exp_continue }
>                 -re "^\[^\n\r *]*$reprompt"     { send_user --
> "$expect_out(buffer)"
>                                                 }
>                 -re "^\[^\n\r]*$reprompt."      { send..."
>     invoked from within
> "if [ string match "*\;*" "$command" ] {
>         set commands [split $command \;]
>         set num_commands [llength $commands]
>         # the pager can not be turned off on ..."
>     (procedure "run_commands" line 34)
>     invoked from within
> "run_commands $prompt $command"
>     ("foreach" body line 144)
>     invoked from within
> "foreach router [lrange $argv $i end] {
>     set router [string tolower $router]
>     send_user "$router\n"
> 
>     # Figure out prompt.
>     # Since autoena..."
>     (file "/var/lib/rancid/bin/clogin" line 616)
> lab-bas-002: missed cmd(s): show configuration,show hardware,dir
> lab-bas-002: missed cmd(s): show configuration,show hardware,dir
> lab-bas-002: End of run not found
> lab-bas-002: End of run not found
> ! *** srp redundancy: mode is high-availability, state disabled
> rancid at lab-srv-001:~$ clogin lab-bas-002
> lab-bas-002
> spawn telnet lab-bas-002
> Trying 10.240.8.3...
> Connected to lab-bas-002-mgt-lo0.
> Escape character is '^]'.
> 
> 
> Telnet password: *********
> sLogged in on vty 1 via telnet.
> Copyright (c) 1999-2005 Juniper Networks, Inc.  All rights reserved.
> 
> lab-bas-002>enable
> Password: *********
> lab-bas-002#
> lab-bas-002#show environment all
>     chassis: 14 slot (id 0x5, rev. 0xa)
>     fabric: 40 Gbps (rev. 0)
>     fans: fanSubsystemOk
> *** nvs: near capacity (87%), matches running config
>     power: A ok, B ok
> *** srp redundancy: mode is high-availability, state disabled
>         auto-sync enabled, switch-on-error enabled
>         status unknown
> *** slots: cards missing or offline
>         online: 0 1 2 3 4 6 9 10 11 12
>         standby: 8
>         offline: 7
>         empty: 5 13
>     line redundancy: 1 redundancy group(s)
>         width 6, spare 8, primary 9 10 11 12
>     temperature: ok
>     timing: primary
>         primary: internal SC oscillator (ok)
>         secondary: internal SC oscillator (ok)
>         tertiary: internal SC oscillator (ok)
>         auto-upgrade enabled
> 
> *** system operational: no
> 
>         processor     processor        IOA           IOA
>        temperature   temperature   temperature   temperature
> slot   (10C - 70C)     status      (10C - 70C)     status
> ----   -----------   -----------   -----------   -----------
> 0          32        normal            ---       unknown
> 1          32        normal            23        normal
> 2          34        normal            24        normal
> 3          32        normal            22        normal
> 4          36        normal            23        normal
> 6          30        normal            25        normal
> 8          33        normal            ---       unknown
> 9          34        normal            22        normal
> 10         35        normal            22        normal
> 11         36        normal            23        normal
> 12         36        normal            23        normal
> 
> processor temperature ranges
>         below -5C is too cold
>         above 80C is too hot
>         low temperature warning below 10C
>         high temperature warning above 70C
> IOA temperature ranges
>         below -5C is too cold
>         above 80C is too hot
>         low temperature warning below 10C
>         high temperature warning above 70C
> lab-bas-002#



More information about the Rancid-discuss mailing list