Brocade Fibre Channel Networking Community

Expand all | Collapse all

Re: plink (posterrshow/poststatsclear)

  • 1.  Re: plink (posterrshow/poststatsclear)

    Posted 01-06-2017 07:07 AM

    Anyone got this issue resolved.? I have tried with the previous suggested command, but no luck. The o/p is not coming.




    Mine is on windows platform and brocade OS v6.2.xx and few v5.5.xx. PLease share some inputs


  • 2.  Re: plink (posterrshow/poststatsclear)

    Posted 01-10-2017 05:18 AM

    Hi abhishek


    try the following if the "switchstatusshow" do not work in the command, it should work if "switchstatusshow" does not work, but the command works by itself.


    echo "switchstatusshow;logoout" | plink.exe


    I have attached a list of test / work around up to 7.0 for plink/ssh


    ### 5.0 / 5.1 / 5.2

    plink -pw password admin@ "firmwareshow"
    Primary partition: v5.0.5e
    Secondary Partition: v5.1.0d


    ### 5.3 / 6.0 / 6.1


    plink -pw password admin@ "bash --login -c 'firmwareshow'"
    Appl Primary/Secondary Versions
    FOS v5.3.0d


    ### 6.2 / 6.3 / 6.4 / 7.0


    plink -pw password admin@ "firmwareshow"
    Appl Primary/Secondary Versions
    FOS v6.2.0b


    ### A general work around would also be

    echo "firmwareshow;logout" | plink -pw password admin@


    or using echo


    (echo setcontext 45 && echo switchshow && echo logout) | plink -batch -pw password admin@


    or having a file with command in - for example for VF. Do not forget to add exit or logout at the end to avoid hanging process.

    >type cmd.txt
    setcontext 128
    >plink -batch -pw password admin@ < cmd.txt