473,503 Members | 6,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

want to write a python script

1 New Member
i want to write a python script for a device NGX-5500 whose vendor is telllabs i hv to write python file like some other device file i m giving u example here below


import java.lang as lang
import java.util as util
import com.visionael.DataCollection.TL1Dim as TL1Dim
import com.visionael.DataCollection.util.VProperties as VProperties
import com.visionael.DataCollection.util.VListMap as VListMap

from BaseFamily import *

# name of the script. Just for log messages.
scriptName="Optera3500";

class Optera3500(BaseFamily):
# list of keywords intrested to visionael in device card port objects etc.
# A:B A-> keyword name in device response B->visionael property name.
deviceDict={'Vendor':'MANUFACTURER' , 'Model':'DESCRIPT' , 'NETYPE':'TYPE' , 'SWRelease':'SOFTWARE_VERSION' , 'PEC':'PART_NO' , 'REL':'HARDWARE_REV' , 'CLEI':'CLEI' };
#Below is an example of how to add a TL1 property to the Item Tree Node. The property being added is 'AGE'
#cardDict={'AGE':'TL1 Age' ,'CLEI':'CLEI' ,'CTYPE':'CTYPE' , 'PEC':'PART_NO' , 'REL':'HARDWARE_REV' , 'SER':'SERNO' , 'MDAT':'MANUFACTURE_DATE' , 'ONSC':'ON_SINCE' };
cardDict={'CLEI':'CLEI' ,'CTYPE':'CTYPE' , 'PEC':'PART_NO' , 'REL':'HARDWARE_REV' , 'SER':'SERNO' , 'MDAT':'MANUFACTURE_DATE' , 'ONSC':'ON_SINCE' };
portDict={'TMGREF':'TMGREF'};
LOAM_SLOT_NO=201;
IO_SLOT_NO_STARTS=300;
SHELF_NO=1;
Nov 26 '07 #1
0 1156

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1663
by: Ali | last post by:
I have the following webpage with a javasctript in it: <html> <head> <title>Custom Objects Test</title> <script language="javascript"> function PrintCard() { line1 = "<hr>\n"; line2 =...
7
1856
by: ckb2102 | last post by:
Hi there, I am new to this so I apologize in advance if I am not following the right etiquette or something... I am working on a project for school. My partner has written a short program in...
3
2602
by: krzychu | last post by:
Hi, I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone 2.0.5, OS Debian 1:3.3.6-2. After import a old Plone site from the following platform Zope-2-7-4, Python 2.3.3, Plone...
4
1768
by: 28tommy | last post by:
Hi, I'm trying to automate an installation of some SW that is installed on Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of installation). Is ther any way to perform that...
8
9128
by: Alejandro | last post by:
Hi: I'm using pySerial to talk to a RS232 to RS485 converter. In order to control the converter, I need to control the DTR line to enable/disable de RS485 driver. In particular, I need to : ...
6
9882
by: tatamata | last post by:
Hello. How can I run some Python script within C# program? Thanks, Zlatko
1
3300
by: somas1 | last post by:
I've checked out quite a few web tutorials on Python and have bought a few books. I've got a lot of the basics down now but feel very limited because I've got difficulties figuring out how to do...
2
2237
by: sophie_newbie | last post by:
Hi, I'm wondering if there is a way to get a python script to write text to an input box in a window of another program that is running? For example a text box in a web browser window? Thanks!
8
2876
by: dmoore | last post by:
Hi folks, I've seen the following issue come up in multiple posts to this mailing list: I have a python program that spawns a child process with popen or popen2 or popen3 or popen2.popen2...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.