Skip to content
This repository was archived by the owner on Apr 10, 2020. It is now read-only.
This repository was archived by the owner on Apr 10, 2020. It is now read-only.

Add a "debug" flag #13

Description

@dotwaffle

I'm trying to add Arista EOS support, and I'm having trouble because I'm not able to see the ssh output. It would be great if there was a debug flag that spit everything into a logfile or to stdout.

For instance, the devices I'm logging into give me the unhelpful error:

13:18:23 [mwalster@mwmbp:~/Code/gohome/src/github.com/dotwaffle/sweet/cmd] arista(+1/-1) ± go run main.go sweet.conf
2015/07/01 13:18:50 Starting 1 collectors. [concurrency=30]
2015/07/01 13:18:50 Waiting for 1 collectors.
2015/07/01 13:18:50 Starting collector: myswitch
2015/07/01 13:18:50 Started all 1 collectors.
2015/07/01 13:19:05 Finished collector: myswitch
2015/07/01 13:19:05 All 1 collectors finished.
2015/07/01 13:19:05 No changes to commit.
2015/07/01 13:19:05 Starting reporter.
2015/07/01 13:19:05 myswitch: error: collection timeout after 15 seconds

2015/07/01 13:19:05 Finished reporter.
^Cexit status 2

I'm struggling to debug it, I think it might be something to do with the handling of "enable" but without further data I can't continue.

Any pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions