Sha256: aabfa785ab49e0fc762dd2b59d3da24159396228f0927ddaf9d10f08976bb1dd

Contents?: true

Size: 863 Bytes

Versions: 54

Compression:

Stored size: 863 Bytes

Contents

# Trisul Remote Protocol TRP Demo script
#
# Counter Group Info
#
# Prints information about all supported coutner  groups on a trisul instance
#
require 'trisulrp'

include TrisulRP::Protocol
include TrisulRP::Utils


raise "Usage : cginfo host port" unless ARGV.length==2


TrisulRP::Protocol.connect(ARGV.shift,ARGV.shift,"Demo_Client.crt","Demo_Client.key") do |conn|

    req =TrisulRP::Protocol.mk_request(TRP::Message::Command::COUNTER_GROUP_INFO_REQUEST,
										:counter_group => "{C51B48D4-7876-479E-B0D9-BD9EFF03CE2E}" )

    TrisulRP::Protocol.get_response(conn,req) do |resp|
          resp.group_details.each do |group_detail|
				start_time= Time.at(group_detail.time_interval.from.tv_sec)
				end_time=Time.at(group_detail.time_interval.to.tv_sec)

				p "Name = " + group_detail.name
				p "GUID = " + group_detail.guid

		  end
    end

end 

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
trisulrp-3.2.7 test/cginfo.rb
trisulrp-3.2.6 test/cginfo.rb
trisulrp-3.2.5 test/cginfo.rb
trisulrp-3.2.4 test/cginfo.rb
trisulrp-3.2.2 test/cginfo.rb
trisulrp-3.1.16 test/cginfo.rb
trisulrp-3.1.14 test/cginfo.rb
trisulrp-3.1.13 test/cginfo.rb
trisulrp-3.1.12 test/cginfo.rb
trisulrp-3.1.11 test/cginfo.rb
trisulrp-3.1.8 test/cginfo.rb
trisulrp-3.1.7 test/cginfo.rb
trisulrp-3.1.1 test/cginfo.rb
trisulrp-2.2.8 test/cginfo.rb
trisulrp-2.2.7 test/cginfo.rb
trisulrp-2.0.5 test/cginfo.rb
trisulrp-2.0.4 test/cginfo.rb
trisulrp-2.0.2 test/cginfo.rb
trisulrp-2.0.1 test/cginfo.rb
trisulrp-1.6.0 test/cginfo.rb