Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
291 views

Python ENM Scripting Access Tips

- The user is familiar with using Python on the client workstation. - Python 4.9.9 is installed on the client workstation. - The user writes Python scripts, which are executed locally, and the responses are received from the client workstation for review/further processing.

Uploaded by

jyam04
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
291 views

Python ENM Scripting Access Tips

- The user is familiar with using Python on the client workstation. - Python 4.9.9 is installed on the client workstation. - The user writes Python scripts, which are executed locally, and the responses are received from the client workstation for review/further processing.

Uploaded by

jyam04
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Kmgjet [krgptgen vgo Njejrom [krgptgen Ygrtuom Hokfgej (YH)<

Pfj Rytfae skrgpts orj starjae oe jxjkutj` irah tfj

Njejrom [krgptgen YH ae tfj

JEH systjh

 Oey JEH usjr wfa fos tfj

'[

krgptgenQApjrotar'

ram

j koe manae ta tfj Njejrom [krgptgen

YH oerue Rytfae skrgpts ta jxjkutj KMG kahhoes

Faw ta manae ta tfj Njejrom [krgptgen YH 1

Wau koe usj oey taam mgcj sjkurjKTP ar kynwge ..

ssf

 ‛ 

p part usjreohjBJEHQGR

[sf -p :24; usjrB:.?70.>.6

Eatj< Tjpmokj 'usjr' wgtf yaur A^E JEH mange

Ar wj koe usj Rutty

Zsjrs ejjaemy manae ta tfj Njejrom [krgptgen YH, ea iurtfjr


outfjetgkotgae gs rjqugrj ta

rue tfjgr Rytfae skrgpts.

Rytfae [krgptgen okkjss Pgps<

^jejsoy, Oprgm ?4, 42?>0<2: RH

 pytfae Ronj ?
Pfgs koe dj okkahpmgsfjdy kommgen tfj apje() iuektgae. Ea Rorohjtjrs
orj rjqugrj wfje

stortgen o sjssgae ae tfj JEH [ystjh vgo tfj Njejrom [krgptgen YH.

ghpart jehskrgptgen

Zsjrs fovj okkjss ta tfjgr awe fahj orjo oeo kahhae sforj staronj orjo ae tfj

Njejrom [krgptgen YH.

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) ~X$ms

2020 Jrgkssae

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) ~X$

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) ~X$pw`

/fahj/sforj`/digsfo

Zsjrs skrgpts koe dj upmaoj ta tfjsj staronj orjos( wj koe upmao` skrgpt ta aur fahj

`grjktary ar krjotj usgen Kot 5 xxx.py)

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) 2020X$ms

man efkQskrgp.py sgtjs tjst.py

[krgpts ge tfj kahhae orjo koe dj rue dy oey skrgptgen usjr 

Aekj wj orj fjrj wj koe typj ta pytfae oewgmm nagrjktmy ta kah ha`j ta rue pytfae skrgpts.

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) 2020X$pytfae

Rytfae 4.9.9 (r499<60474, Eav 4? 42?;, ?2<:2<;4)

SNKK 0.0.> 42?42;?; (Tj` Fot 0.0.>-0)X ae mgeux4

Pypj "fjmp", "kapyrgnft", "krj`gts" ar "mgkjesj" iar harj geiarhotgae.

555

Jxohpmj skrgpt <

555 ghpart jehskrgptgen

555 sjssgae 8 jehskrgptgen.apje()

555 kahhoe8 'khjgt njt MEL2:2?>O HjKaetjxt.3EjtwarcJmjhjet.'


555 kh8 sjssgae.kahhoe()

555 rjspaesj 8 kh.jxjkutj(kahhoe)

555 iar mgej ge rjspaesj.njtQautput()<

... prget(mgej)

...

I@E < [udEjtwarc8AETHQTAAPQHA,[udEjtwarc8^oyej,HjKaetjxt8MEL2:2?>O

HjKaetjxtG` < MEL2:2?>O

ejPypj < JTD[

pmotiarhPypj < KRR

sjssgae 8 jehskrgptgen.apje()

 pytfae Ronj 4

I@E < EjtwarcJmjhjet8MEL2:2?>O

ejRrauktYjrsgae < S{rjvgsgae8T40FO, gjetgty8KVR?242:?/49}X

ejtwarcJmjhjetG` < MEL2:2?>O

ejPypj < JTD[

eajHajmG`jetgty < ?9:7->0;-??>

assHajmGjetgty < ?>O-F.?.?92

assRrjigx < [udEjtwarc8AETHQTAAPQHA,[udEjtwarc8^oyej,HjKaetjxt8MEL2:2?>O

pmotiarhPypj < KRR

rjmjosj < F.?.?9>

tjkfeamany@ahoge < SJR[X

utkAiisjt < -20<22

4 gestoekj(s)

55jehskrgptgen.kmasj(sjssgae)

Aej harj gi wj woet ta rue skrgpt upmaoj ae aur rgvj.( fjomtf kfjkc kahhoe)

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) 2020X$kot 5tjst.py

ghpart jehskrgptgen

sjssgae 8 jehskrgptgen.apje()
kahhoe8 'khjgt njt MEL2:2?>O HjKaetjxt.3EjtwarcJmjhjet.'

kh8 sjssgae.kahhoe()

rjspaesj 8 kh.jxjkutj(kahhoe)

iar mgej ge rjspaesj.njtQautput()<

 prget(mgej)

jehskrgptgen.kmasj(sjssgae)

UK

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) 2020X$pytfae tjst.py

I@E < [udEjtwarc8AETHQTAAPQHA,[udEjtwarc8^oyej,HjKaetjxt8MEL2:2?>O

HjKaetjxtG` < MEL2:2?>O

ejPypj < JTD[

pmotiarhPypj < KRR

I@E < EjtwarcJmjhjet8MEL2:2?>O

ejRrauktYjrsgae < S{rjvgsgae8T40FO, gjetgty8KVR?242:?/49}X

ejtwarcJmjhjetG` < MEL2:2?>O

ejPypj < JTD[

eajHajmG`jetgty < ?9:7->0;-??>

assHajmGjetgty < ?>O-F.?.?92

assRrjigx < [udEjtwarc8AETHQTAAPQHA,[udEjtwarc8^oyej,HjKaetjxt8MEL2:2?>O

pmotiarhPypj < KRR

rjmjosj < F.?.?9>

tjkfeamany@ahoge < SJR[X

utkAiisjt < -20<22

4 gestoekj(s)

Eatj< gi yau rue pytfae ge KAH ha`j '555' ta njt aut wj koe typj 'jxgt()'

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) ~X$pytfae

Rytfae 4.9.9 (r499<60474, Eav 4? 42?;, ?2<:2<;4)

SNKK 0.0.> 42?42;?; (Tj` Fot 0.0.>-0)X ae mgeux4

Pypj "fjmp", "kapyrgnft", "krj`gts" ar "mgkjesj" iar harj geiarhotgae.


555 jxgt()

SdigsfoBskp-4-skrgptgen(sym?mouekfjr) ~X$

 pytfae Ronj ;

Kmgjet [krgptgen vgo Kmgjet warcstotgae<

Pfj usjr gs iohgmgor wgtf Rytfae oeJEH KMG kahhoes

Rytfae 4.9.9 gs gestommj` ae tfj kmgjet warcstotgae.

@awe maoRytfae iar wgeaw<

ft

tpsawemaos/wge`aws/

Jrgkssae rjkahhje4.9.9 dut Gawe maomotjst ;.9 oe warcs sa ior dut wj koe ige`
vjrsgae

4.9.9. awe mao jxj igmj oegestommj.

^fje wj gestomm wj koe usj K<]Rytfaexx (xx gs vjrsgae wj usj) ta njt okkjss iamjr josy

 O Rytfae haumj gestommotgae taam tfot koe gestomm haumjs irah Rytfae
wfjjm orkfgvjs

hust dj gestommjae tfj kmgjet warcstotgae. [ahj Rytfae vjrsgaes fos


omrjoy gekmuj

Rytfae gestommotgae pokconj sa igrst kfjkc ae [krgpt grjktary uejr K<]RytfaeVV gi igmj

RGR.jxj gs jxgstgen gi eat

@awe maonjt-pgp.py skrgpt irah fttps o``rjss djmaw( wfgkf fjmps


taawe maoRGR oe mao` gt

ae K<]Rytfaexx][krgpts iam`jr

fttpsa-g-ejj-ta-gestomm-pgp

Eatj< Getjrejt okkjss gs rjqugrjtaawemaotfj rjqujsts haumj oe` ta rue njt-pgp.py

Faw wj koe gestomm RGR usgen njt-pgp.py skrgpt 1

Zsj Kahhoe` prahpt(KH@)<


Rrjrjqugsgtjs

 pytfae Ronj 0

555 sjssgae 8 jehskrgptgen.apje('fttps

555 kahhoe` 8 'kaeign mgst'

555 kh8 sjssgae.kahhoe()

555 rjspaesj 8 kh.jxjkutj(kahhoe)

555 prget('Pfj kahhoewos sukkjssiummy sjet oe o rjspaesj rjkjgvj`< ' +

str(rjspaesj.gsQkahhoe`QrjsumtQovogmodmj()))

Pfj kahhoewos sukkjssiummy sjet oe o rjspaesj rjkjgvj`< Pruj

555 jehskrgptgen.kmasj(sjssgae)

555 iar mgej ge rjspaesj.njtQautput()<

... prget(mgej)

...

FKOkkjptoekjKrgtjrgoDukcjt

FKTjpartDukcjt

FKKahporjDukcjt

KhNotKaeignurotgae

m4mQtjst

 ljiiQtjst

thaQ`jha

PJ[PNJTOE

tjstQm4m

A@QPjst

Pfj usjr wrgtjs tfj skrgpts, usgen tfj ORG ta jxjkutj wfotjvjr KMG kahhoes orj rjqugrj

Pfj usjr jxjkutjs tfj skrgpts makommy, oetfj rjspaesjs orj rjkjgvj irah tfj JEH

systjh ta tfj kmgjets warcstotgae iar rjvgjw/iurtfjr prakjssgen

 pytfae Ronj 6

You might also like