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.43 test/cginfo.rb
trisulrp-3.2.42 test/cginfo.rb
trisulrp-3.2.41 test/cginfo.rb
trisulrp-3.2.40 test/cginfo.rb
trisulrp-3.2.39 test/cginfo.rb
trisulrp-3.2.38 test/cginfo.rb
trisulrp-3.2.37 test/cginfo.rb
trisulrp-3.2.36 test/cginfo.rb
trisulrp-3.2.35 test/cginfo.rb
trisulrp-3.2.34 test/cginfo.rb
trisulrp-3.2.32 test/cginfo.rb
trisulrp-3.2.31 test/cginfo.rb
trisulrp-3.2.27 test/cginfo.rb
trisulrp-3.2.26 test/cginfo.rb
trisulrp-3.2.16 test/cginfo.rb
trisulrp-3.2.15 test/cginfo.rb
trisulrp-3.2.14 test/cginfo.rb
trisulrp-3.2.13 test/cginfo.rb
trisulrp-3.2.9 test/cginfo.rb
trisulrp-3.2.8 test/cginfo.rb