Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TEC & Remedy w/TroubleTicket.sh on a SPECIFIC tcp port

Status
Not open for further replies.

griffithd

Technical User
Oct 2, 2002
1
US
Using Framework 3.7.1, TEC 3.7.1, and Remedy 5 on a Solaris 8 platform, we are attempting to use the Mitre developed TroubleTicket.sh script to auto-generate Remedy trouble tickets.

We're new at this but everything seems to work up to the actual ARS login, which errors out (ARS error 90). We've seen this with other Remedy clients and the solution was to specify (in the client software) a specific tcp port. (The Remedy software uses a specified port for client connection, as opposed to portmapper/rpcbind.) We would like to be able to specify the tcp port from the TroubleTicket.sh script but none of us know Perl. Is there anyone out there who's done this and can provide some insight??

Thanks,
Darlene
 
In the Mitre script we're using, it uses the ars_Login function from ARSperl. The tcpport can be specified in this function. From the arsperl manual:


ars_Login(server, username, password, lang, authString, tcpport, rpcnumber)

Returns a control structure for the specified server, username, and password. Specifying a null server will use whatever the default server is for your system.

lang, authString, tcpport and rpcnumber are optional.

"lang" is the language the user is using. If not specified, the default will be used.

"authString" has something to do with the Windows Domain. I don't have any more information about this parameter. Pass undef to be safe. If you want to use a private server, specify tcpport and rpcnumber. If you pass an empty string as the "server" parameter, ars_Login will attempt to identify one.

On success
Returns a scalar control record.
On failure
Returns undef for invalid number of arguments.

Example:

$c = ars_Login("","jmurphy","blah")


$c = ars_Login("yourserver.example.com", "jmurphy", "blah", undef, undef, 9000, 390680)


Table of Contents

Last changes to this page 29th March 2003 by jcmurphy
© J.C.Murphy, J.W.Murphy 1997 arsperl@arsperl.org
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top