Python Forum
[split] suggestion required for new script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] suggestion required for new script
#1
Hi All,

suggestion required for new script

I have below OIDs

Sr.No OID Remark
1 1.3.6.1.4.1.3902.1082.500.10.2.3.3.1.2 Customers
2 1.3.6.1.4.1.3902.1082.500.10.2.3.3.1.3 ONU
3 1.3.6.1.4.1.3902.1082.500.10.2.3.8.1.4 ONU Status
4 1.3.6.1.2.1.31.1.1.1.1 PON Port
5 1.3.6.1.2.1.2.2.1.7 admin status
6 1.3.6.1.2.1.2.2.1.8 Oper Status

need to print output in below format

PON Port admin status op Status ONU Customer ONU Status


please suggest.
My plan is to collect each OID output in List and print, but length of each list is different.
Reply
#2
Split on space, Remark looks like it'd be all elements past the second, then insert into a dict with the Remark as the key, and print?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can you give me some suggestion about PCEP Newbie1114 0 1,036 Oct-14-2021, 03:02 PM
Last Post: Newbie1114
  instagram followers name without suggestion for you jacklee26 1 3,185 Oct-02-2021, 04:57 AM
Last Post: ndc85430
  [split] Help- converting file with pyton script eltomassito 6 3,297 Jul-02-2021, 05:29 PM
Last Post: snippsat
  [split] script: remove all "carriage return" from my json variable pete 2 2,824 May-05-2020, 03:22 PM
Last Post: deanhystad
  Optimization suggestion Julia 2 1,742 Mar-29-2020, 12:02 PM
Last Post: Julia
  Need suggestion how to handle this error farrukh 1 2,284 Dec-21-2019, 03:21 PM
Last Post: DeaD_EyE
  first try with python class, suggestion for improvement please anna 18 5,995 Nov-01-2019, 11:16 AM
Last Post: anna
  Pyautogui script runs fine if split into two parts together it does not Bmart6969 1 2,556 Oct-07-2019, 10:53 PM
Last Post: Bmart6969
  string to date time- suggestion required anna 4 3,287 Aug-17-2018, 08:36 AM
Last Post: buran
  Router interface status through SNMP - suggestion required for improvement. anna 0 3,054 Feb-27-2018, 11:10 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020