Giter Site home page Giter Site logo

Hide output of config settings about iosfw HOT 4 CLOSED

austind avatar austind commented on August 21, 2024
Hide output of config settings

from iosfw.

Comments (4)

austind avatar austind commented on August 21, 2024

Temporary fix in latest dev commit

from iosfw.

falz avatar falz commented on August 21, 2024

tested, seemed to work great! I didnt put prior output originally, but it always had json dump of both the config file as well as another dump of the NAPAM options after asking for secret.

Fixed from my perspective.

$ ./upgrade-cisco.py 
Checking dhcp-buildroom-4 Type: ASR-920-4SZ-A Version OK: 16.9.5f
Checking dhcp-buildroom-3 Type: ASR-920-4SZ-A Version OK: 16.9.5f
Checking dhcp-buildroom-2 Type: ASR-920-4SZ-A Version OK: 16.9.5f
Checking dhcp-buildroom-5 Type: ASR-920-4SZ-A Version Mismatch! Device: 15.6(2)SP7 Desired: 16.9.5f
lets try to upgrade dhcp-buildroom-5
===============================================
Opening connection to dhcp-buildroom-5 via ssh...
Connected to available-device (ASR-920-4SZ-A) as netconf via ssh
Running version: 15.6(2)SP7
Upgrade version: 16.9.5f
Upgrade status: NEEDS UPGRADE
Starting upgrade on available-device at 15:12:34 2020-05-28...
Disabling line vty exec-timeout...
Checking free space...
Found enough free space!
Installing new firmware...
Starting transfer. Expect this to take several minutes...
Transfer complete! Verifying hash...
Hash verified!
Checking boot image...
Setting boot image to bootflash:/asr920-universalk9_npe.16.09.05f.SPA.bin...
Success! New boot image set to bootflash:/asr920-universalk9_npe.16.09.05f.SPA.bin.
Scheduling reload...
Restoring line vty exec-timeout...
Upgrade on available-device completed at 15:23:27 2020-05-28
Total time elapsed: 0:10:53.721641

from iosfw.

falz avatar falz commented on August 21, 2024

Note that i upgraded to 0.9.6 and still see some debug output, only from console.

My settings have both set to info:
file_log_level: info
console_log_level: info

But this outputs to console:

{'hostname': 'dhcp-buildroom-2',
 'optional_args': {'secret': '<redacted>',
                   'ssh_config_file': '~/.ssh/config',
                   'transport': 'ssh'},
 'password': '<redacted>',
 'timeout': 60,
 'username': 'netconf'}

from iosfw.

austind avatar austind commented on August 21, 2024

I caught this after the 0.9.6 tag, try the latest commit

from iosfw.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.