How to Login into a FPC shell using Pyez ?.

567 views
Skip to first unread message

hamma...@gmail.com

unread,
Mar 10, 2021, 2:51:41 PM3/10/21
to Junos Python EZ

I need to Log in to FPC shell and get the individual SFP optics data(Nebs Compliancy). Is there a way i can  perform that ?
I need to Run the following ina  script somehow.

start shell pfe network fpc1
show sfp list
show sfp <#>

Nitin Kumar

unread,
Mar 10, 2021, 11:39:24 PM3/10/21
to hamma...@gmail.com, Junos Python EZ

Hi,

 

To run any command on FPC, we do have RPC

 

Check if this helps:

 

 op = dev.rpc.request_pfe_execute(command=" show sfp list", target="fpc1", timeout="0")
 print(op.text)

 

Thanks

Nitin Kr

 

From: <junos-p...@googlegroups.com> on behalf of "hamma...@gmail.com" <hamma...@gmail.com>
Date: Thursday, 11 March 2021 at 1:21 AM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: How to Login into a FPC shell using Pyez ?.

 

[External Email. Be cautious of content]

 

--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/f574334d-71a5-4d8e-ade9-a137485cb949n%40googlegroups.com.


Juniper Business Use Only

Reply all
Reply to author
Forward
0 new messages