Ingres::Utility::Netutil

Ingres::Utility::Netutil is an API to netutil Ingres RDBMS utility.
Download

Ingres::Utility::Netutil Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joner Cyrre Worm
  • Publisher web site:
  • http://search.cpan.org/~worm/Ingres-Utility-IINamu-0.07/lib/Ingres/Utility/IINamu.pm

Ingres::Utility::Netutil Tags


Ingres::Utility::Netutil Description

Ingres::Utility::Netutil is an API to netutil Ingres RDBMS utility. Ingres::Utility::Netutil is an API to netutil Ingres RDBMS utility.SYNOPSIS use Ingres::Utility::Netutil; # create a connection to NETUTIL utility $netu = Ingres::Utility::Netutil->new(); # Attention: many arguments accept wildcard * # showLogin($type,$vnode) - prepare to provide info on login VNodes # and return netutil ouput print $netu->showLogin('global','*'); # # getLogin() - return one-by-one all login VNodes previously prepared while ( ($type, $login, $vnode, $acct) = $netu->getLogin() ) { print "Type: $typetName: $vnodetAccount: $acctn"; } # showConn($type, $conn, $vnode, $addr, $proto, $listen) # - prepare to provide info on connections of a VNode # and return netutil ouput print $netu->showConn('global','sample_vnode_name', '*', '*', '*'); # # getConn() - return one-by-one all connections of a VNodes previously prepared while ( @conn = $netu->getConn() ) { ($type, $conn, $vnode, $addr, $proto, $listen) = @conn; print "Type: $typetName: $vnodetAddress: $addrtProtocol: $proto"; print "tListen Address: $listenAddrn"; } # createLogin($type,$vnode,$acct, $passwd) - create a new VNode $netu->createLogin('global', 'new_vnode_name', 'sample_login_account', 'secret_passwd'); # createConn($type,$vnode,$addr,$proto,$listenAddr) - create a connection for a VNode $netu->createConn('global', 'new_vnode_name', '192.168.0.1', 'tcp_ip', 'II'); # destroyConn($type,$vnode,$acct, $passwd) - destroy a connection from a VNode $netu->destroyConn('global', 'new_vnode_name', '192.168.0.1', 'tcp_ip', 'II'); # destroyLogin($type,$vnode) - destroy a VNode and all connections $netu->destroyLogin('global', 'new_vnode_name'); # quiesceServer($serverId) - stop IIGCC server after all connections close (die gracefully) # if no $serverId is given, then all IIGCC servers are affected (carefull). $netu->quiesceServer('sample_server_id'); # stopServer($serverId) - stop IIGCC server imediately (break connections) # if no $serverId is given, then all IIGCC servers are affected (carefull). $netu->stopServer('sample_server_id');The server id can be obtained through Ingres::Utility::IINamu module.This module provides an API to netutil utility for Ingres RDBMS, which provides local control of IIGCC servers for Ingres Net inbound and outbound remote connections, and also manage logins and connections to remote servers, a.k.a. VNodes.Notes:Ordinary user can create/destroy on his own private logins and connections.SECURITY privilege should be granted to have access to other user's private entries.GCA privilege NET_ADMIN (generally a system administrator) needed to manage global type login and connection entries.GCA privilege SERVER_CONTROL (generally a system administrator) needed to stop a communications server. Requirements: · Perl · Expect::Simple


Ingres::Utility::Netutil Related Software