Come and play Airport madness game , i have heard its awesome and many people play it

Friday, June 24, 2005

Developer Utilities :TESTNAP commands

Testnap

--------------------------------------------------------------------------------


Dependencies

Syntax

Parameters

Testnap Commands

Error Handling

Error Example 1

Error Example 2

Example


--------------------------------------------------------------------------------

The testnap utility allows a developer to manually interact with the Infranet® server by establishing a PCM connection with the Connection Manager (CM), and then executing PCM operations using that connection. Using testnap, a developer can:


create input flists

save input and output flists

send opcodes

view return (output) flists

create, view, modify, and delete objects and their fields

open, commit, and abort transactions
For examples and information on using testnap, see Testing Your Applications and Custom Modules.

Opcode Workbench, part of the Developer Center offers similar functionality in a GUI-based application. See Testing Your Applications and Custom Modules and the Opcode Workbench help system for detailed information.

Dependencies



The testnap utility requires a pin.conf configuration file to connect to your Infranet system. You can either use the CM's pin.conf file, or run testnap from a directory that contains a suitable pin.conf file, such as Infranet_home/sys/test.

The testnap utility relies on POID logins and types to identify the specific account or storable class to modify. A POID database number is required as a placeholder only.

The necessary pin.conf information is:

- nap cm_name hostname # Name of the system where the cm is running.- nap userid 0.0.0.1 /service/pcm_client 1 # Database number, 0.0.0.1 by default.- nap login_type 1 # Type 1 means login with password.- nap login_name root.0.0.0.n # Username testnap uses to log in to Infranet.- nap login_pw password # Password is "password" by default. Differs from one Infranet installation to another. - nap cm_ptr ip hostname 11960 # CM pointer: protocol hostname port. Allows multiple CM's to be specified in a pin.conf file. The application will try them consecutively until one works or there are no more "cm_ptr" entries.

The correct path to the shared libraries must also be configured. The library path is configured by default to point to the standard libraries in infranet_home_dir/lib. If the libraries are not in infranet_home_dir/lib, then you must set the library path environment appropriately.

Syntax



% testnapnap (pid)> command args

Parameters



The testnap utility allocates numerous internal buffers, which are used to store object or flist fields. Buffers are referenced by integers of the user's choice. Every time a new buffer is referenced, testnap allocates that new buffer.


If you do not specify a buffer number for a command that expects one, you will be prompted for a buffer number.

The meta keyword causes testnap to display the size of external buffer fields. By default, the contents of external buffer fields are displayed.
Testnap Commands



r ((token file buf

Read an flist or object from a file and put it in a testnap buffer. The ((token operator causes testnap to read from stdin until the token string is read.

r+ ((token file buf

Read and append flist to existing buf. The ((token operator causes testnap to read from stdin until the token string is read.

w buf file

Write contents of testnap buffer to a file.

w+ buf file

Append contents of a testnap buffer to the same file.

l

List the testnap buffers that are currently in use.

d buf

Display a testnap buffer.

! cmds args

Run a shell command (for UNIX systems only).

s buf

Save an flist or object from the input buffer to a testnap buffer.

( file

Execute cmd script.

p (property> (value>

Display or set properties.

q

Quit this program.

h, help,?

Print usage help message.

create buf | poid

Create an object. Run PCM_OP_CREATE_OBJ and print the return flist to stdout. The poid keyword causes the poid id of the object that is created to be the poid id specified in the input flist.

delete buf | - (db> (type> (id>

Delete an object. Run PCM_OP_DELETE_OBJ and print the return flist to stdout. The poid of the object to be deleted can be specified on the command line.

robj buf | - (db> (type> (id> meta

Read an object. Run PCM_OP_READ_OBJ using either the poid in the flist in buf, or the poid specified on the command line. Prints the return flist (the contents of the object) to stdout.

rflds buf meta

Read fields. Run PCM_OP_READ_FLDS using the flist in buf, and print the return flist to stdout. Each field (or row) in the field list must be in a valid flist format. The values for the last field are arbitrary, but must be valid for their type. For example, you have to include "" for STR fields and (some number) for a TSTAMP field. If either of these fields are blank, an error is returned.

wflds buf

Write fields. Run PCM_OP_WRITE_FLDS and print the return flist to stdout.

dflds buf

Delete fields. Run PCM_OP_DELETE_FLDS and print the return flist to stdout.

search buf meta count

Search. Run PCM_OP_SEARCH and print the return flist to stdout. The count operator sets the PCM_OPFLG_COUNT_ONLY flag, which causes search to return only the number of matches found by the search. The count is returned as the ELEM_ID of the RESULTS array on the output flist.

ssrch buf meta

Step-search. Run PCM_OP_STEP_SEARCH and print the return flist to stdout.

snext buf meta

Step-search next. Run PCM_OP_STEP_NEXT to get the next object in a step search, and print the return flist to stdout.

send buf

End step-search. Run PCM_OP_STEP_END and print the return flist to stdout.

gdd buf | - (db> (type> (id>

Get data dictionary. Run PCM_OP_GET_DD and print the return flist to stdout. The poid can be specified on the command line.

sdd ( flags> buf

Set data dictionary. Run PCM_OP_SET_DD and print the return flist to stdout.

sort buf sort_buf descending_flag

Read contents of buf, sort it non-recursively using the template in sort_buf, and print the sorted flist to stdout. Available on UNIX only. The descending flag is optional, with 0 (the default) indicating ascending order, and any non-zero integer indicating descending order.

Sorting is not implemented for the following:


POID

BINSTRS

BUFFERs

ERRBUFS
The number of ARRAY elements in the sort specification is ignored. Use 0. Sort specifications just need valid numbers. The numbers are not necessarily valid or desired values for the current sort; they are basically required place-holders.

rsort buf sort_buf descending_flag

Recursive sort. Read contents of buf, sort it recursively using the template in sort_buf, and print the sorted flist to stdout. Available on UNIX only. The descending flag is optional, with 0 (the default) indicating ascending order, and any non-zero integer indicating descending order.

open ro|rw|lock buf | - (db> (type> (id>

Open transaction. Run PCM_OP_TRANS_OPEN and print the return flist to stdout.

commit

Commit the current transaction. Run PCM_OP_TRANS_COMMIT and print the return flist to stdout.

abort

Cancel the current transaction. Run PCM_OP_TRANS_ABORT and print the return flist to stdout.

inc buf

Increment one or more fields of an object. Run PCM_OP_INC_FLDS and print the return flist to stdout.

noop buf

Run non-operational opcode. Run PCM_OP_TEST_LOOPBACK on that database and print the return flist to stdout.

pass buf

Run a pass_thru op to server. Run PCM_OP_PASS_THRU, an extension op that just sends an flist to a DM that supports it.

xop op flag buf

Run opcode op with flags set to flag, the contents of buf as the input flist, and print the sorted flist to stdout.

id

Print user and session ID.

echo string

Echo a string.

Error Handling



If an error occurs, the contents of the error buffer (ebuf) which corresponds to the error are written to stderr.

Error Example 1
# Delete attempt with the - argument missing:pin@demo5-668> testnap===> database 0.0.0.1 from pin.conf "userid"nap(27459)> delete 0.0.0.1 /account 1ERROR: bad number "0.0.0.1"no object to use for delete

Error Example 2
# Attempt to read a non-existent object:nap(10191)> robj - 0.0.0.1 /account 11988PCM_OP_READ_OBJ failed: err 3:PIN_ERR_NOT_FOUND, field 0/16:PIN_FLD_POID, loc 4:PIN_ERRLOC_DM, errclass 4:PIN_ERRCLASS_APPLICATION, rec_id 0, resvd 30001nap(10191)>

For more information on the error buffer, see Understanding API Error Handling and Logging.

Example



For an extensive set of examples refer to the Examples section of Testing Your Applications and Custom Modules.

15 comments:

Unknown said...

please tell me how do we connect to testnap from shell script and execute testnap commands.

Anonymous said...

Can anyone recommend the top performing IT automation utility for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central remote software access
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

[u][b]Xrumer[/b][/u]

[b]Xrumer SEO Professionals

As Xrumer experts, we have been using [url=http://www.xrumer-seo.com]Xrumer[/url] quest of a long time for the time being and know how to harness the colossal power of Xrumer and build it into a Spondulix machine.

We also provender the cheapest prices on the market. Assorted competitors will order 2x or consistent 3x and a lot of the term 5x what we debt you. But we have faith in providing great mending at a small affordable rate. The entire point of purchasing Xrumer blasts is because it is a cheaper substitute to buying Xrumer. So we train to support that thought in rebuke and afford you with the cheapest rate possible.

Not only do we have the greatest prices but our turnaround heyday payment your Xrumer posting is wonderful fast. We compel take your posting done in the forefront you distinguish it.

We also cater you with a ample log of loaded posts on different forums. So that you can get the idea also in behalf of yourself the power of Xrumer and how we hold harnessed it to gain your site.[/b]


[b]Search Engine Optimization

Using Xrumer you can trust to distinguish thousands upon thousands of backlinks exchange for your site. Scads of the forums that your Install you intent be posted on have high PageRank. Having your tie-in on these sites can truly expropriate build up some cover rank help links and uncommonly as well your Alexa Rating and Google PageRank rating via the roof.

This is making your put more and more popular. And with this increase in regard as superbly as PageRank you can envisage to appreciate your area definitely filthy gamy in those Search Engine Results.
Transport

The amount of transportation that can be obtained nearby harnessing the power of Xrumer is enormous. You are publishing your situation to tens of thousands of forums. With our higher packages you may equivalent be publishing your locality to HUNDREDS of THOUSANDS of forums. Imagine 1 collection on a in demand forum will usually get 1000 or so views, with communicate 100 of those people visiting your site. Now assume tens of thousands of posts on celebrated forums all getting 1000 views each. Your traffic longing function through the roof.

These are all targeted visitors that are interested or bizarre in the matter of your site. Assume how many sales or leads you can fulfil with this titanic loads of targeted visitors. You are literally stumbling upon a goldmine bright to be picked and profited from.

Remember, Shipping is Money.
[/b]

GO YOUR CHEAPLY BLAST TODAY:


http://www.xrumer-seo.com

Anonymous said...

[B]NZBsRus.com[/B]
Dont Bother With Idle Downloads Using NZB Downloads You Can Hastily Search High Quality Movies, PC Games, MP3 Singles, Software and Download Them at Maxed Out Rates

[URL=http://www.nzbsrus.com][B]Usenet[/B][/URL]

Anonymous said...

Concede to pass the lewd with two backs casinos? junkets solid of this trendy [url=http://www.realcazinoz.com]casino[/url] operate and wing it de-emphasize online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also into our lately [url=http://freecasinogames2010.webs.com]casino[/url] orientate at http://freecasinogames2010.webs.com and oppress realized incredibly mad !
another lone [url=http://www.ttittancasino.com]casino spiele[/url] plot is www.ttittancasino.com , in discover back german gamblers, come forbearing online casino bonus.

Anonymous said...

Yes indeed, in some moments I can say that I acquiesce in with you, but you may be considering other options.
to the article there is still a question as you did in the go over like a lead balloon a fall in love with issue of this demand www.google.com/ie?as_q=windows live messenger 9 + plus! 4.50 ?
I noticed the catch-phrase you have not used. Or you functioning the dreary methods of inspiriting of the resource. I have a week and do necheg

Anonymous said...

Someone deleted a variety of links from megashares and hotfile servers.

From now, we will use www.tinyurlalternative.com as our default [url=http://www.tinyurlalternative.com]url shortener[/url], so every url will be there and visible for everyone.

You can pick out from several great [url=http://kfc.ms]short url[/url] address like:

kfc.ms easysharelink.info jumpme.info megauploadlink.info megavideolink.info mygamelink.info myrapidsharelink.info mytorrentlink.info myurlshortener.com mywarezlink.info urlredirect.info urlshrinker.info weblinkshortener.com youtubelink.info and many others.

They have over 60 other ready domains and the [url=http://myurlshortener.com]url shortener[/url] service work well for free without any registration needed.

So we think it is good notion and suggest you to use [url=http://urlredirect.info]url redirect[/url] service too!

Thank you.

Anonymous said...

You could easily be making money online in the hush-hush world of [URL=http://www.www.blackhatmoneymaker.com]blackhat money[/URL], Don’t feel silly if you have no clue about blackhat marketing. Blackhat marketing uses alternative or not-so-known avenues to generate an income online.

Anonymous said...

Hi everyone

We do not agree with this year Brit awards decision.

Please go to see our little survey

http://micropoll.com/t/KDqOnZBCWt

Lady Gaga can not be better than Nina Hagen

Poll supported by BRIT awards 2010 sponsor femmestyle
[url=http://www.femmestyle.li/brustvergroesserung/preis.html]brustvergrößerung preis[/url]

Do you have a burning question we could ask all the stars at The BRIT Awards?

Anonymous said...

[B]NZBsRus.com[/B]
Escape Idle Torrents Change To NZB Files You Can Instantly Search High Quality Movies, Console Games, MP3 Albums, Applications & Download Them @ Fast Rates

[URL=http://www.nzbsrus.com][B]NZB[/B][/URL]

Anonymous said...

Hi everyone


Why should you pay money to ebay when you can have a better ebay FREE at http://www.BuySellDirect.net


http://www.BuySellDirect.net 100% free service is all you need to make money every month.

Anonymous said...

Greetings i am new on here, I found this forum quite helpful and it has helped me out a lot. i should be able to contribute and help other people like it has helped me.

I take pleasure [url=http://watch-family-guy-free.warlordz.co.uk]watch family guy free[/url] this help pass some of time.

Thank You, See ya around.

Anonymous said...

Hi

[url=http://www.internetmosque.net ] Compared Translations of the meaning of the Quran (6470 pages) [/url]


Has God removed the Curse of Babylon ?
=====================================
While reading the Bible, I came upon a story which Strengthened my faith in Islam even more.
According to the Bible, Genesis 11:1 humans all spoke one language at one time. These humans
were trying to build a tower to see God. God Warned them to cease building the
tower, yet they disobeyed God and continued to build the Tower.

As a punishment for their disobedience, God cursed them by making them all speak
a different language. This tower is now called the "Tower of Babylon." Genesis
11:19 and that is where we get the word "Babel"

The Holy Qur'an is their forgiveness, if the humans return to obeying God, then
they are again united in a brotherhood and sisterhood of one Semitic language,
Arabic.

This is astonishing since only 27% of the Muslims are Arabs and there are almost
1.5 Billion Muslims world wide, all united with one language,
praying in unison, re-united, this is also predicted in the Bible;

"For then will I turn to the people a pure language, that they may all call upon the name of the Lord, to serve him with one consent." Zephaniah 3:9

In the Strong's Bible Dictionary, the word "language (saphah)" in this verse can also mean [ side, edge, border]

Therefore, Zephaniah 3:9 can also be translated to read "I will TURN people to ONE direction" which we witness with Muslims all facing -East- to pray and also speaking one language in prayer, a language which non-Arabs describe as a "pure language"

God forgave humans and lifted the curse exclusively for
those who submit to God's will (Islam).

World wide, over a billion people gather worshiping with one language, one direction, one book, one God.

Re-united as brothers and sisters in towards the Kabba which is believed to be directly under the Throne of God in Heaven.

The rich with the poor, the educated with the un-educated, people from all parts of the world re-united Obeying One God, Submitting their will to God which is the meaning of Islam.

""And hold fast, all together, by the rope which Allah (stretches out for you), and be not divided among yourselves; and remember with gratitude Allah's favour on you; for ye were enemies and He joined your hearts in love, so that by His Grace, ye became brethren; and ye were on the brink of the pit of Fire, and He saved you from it. Thus doth Allah make His Signs clear to you: That ye may be guided." Translation of the Holy Qur'an 3:103

For more details [url=http://www.internetmosque.net ]click her[/url]






|

All of us will die one day INCLUDING YOU.

so before you die you must find out where the HELL you are going too.

You must find out

who is our savior Jesus or ?

You may sleep tonight and never get up in the morning?

You may die today.

You may die within a week

You may die within a month

you may die within a year

you may die within the next ten years

one thing for sure

You will die

so find out how is our savior so that he may save you.

http://www.internetmosque.net/saviour/index.htm

http://www.internetmosque.net/songes/s/1.htm

http://www.internetmosque.net/songes/s/17.htm

http://www.internetmosque.net/

http://www.internetmosque.net/quran/quraneng/index.htm

http://www.internetmosque.net/audio...n_Yahya/1_w.htm

http://www.internetmosque.net/audio...f-Estes/1_w.htm

http://www.internetmosque.net/audio...ilips/1-1_w.htm

Anonymous said...

Infatuation casinos? scrutinization this unversed [url=http://www.realcazinoz.com]casino[/url] refer to and accede up online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also into our blooming [url=http://freecasinogames2010.webs.com]casino[/url] orientate at http://freecasinogames2010.webs.com and uplift effective wearisome dough !
another late-model [url=http://www.ttittancasino.com]casino spiele[/url] concatenation of events is www.ttittancasino.com , allot as far as something german gamblers, construction freed [url=http://www.realcazinoz.com]online casino[/url] bonus. so check this leading [url=http://www.omniget.co.il]online casino[/url] for free [url=http://www.casinosaction.com]casino bonus[/url] and 100's of online [url=http://www.thecasino.co.il]casino[/url] games.

Anonymous said...

buy propecia buy generic propecia cheap - much does propecia cost cvs