HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
For example if the user account is configured for 5000 seconds, then:
ConvertMaxSessionTime(“y”) returns 0, calculated as (5000 / (365*24 *60*60)).
ConvertMaxSessionTime(“d”) returns 0, calculated as (5000 / (24*60*60)).
ConvertMaxSessionTime(“h”) returns 1, calculated as (5000 / (60*60)).
ConvertMaxSessionTime(“m”) returns 83, calculated as (5000 / 60).
ConvertMaxSessionTime(“s”) returns 5000, calculated as (5000 / 1).
TruncateMaxSessionTime(unit)
Returns the total amount of connection time configured for the current user truncated to the
specified unit.
y Years
d Days
h Hours
m Minutes
s Seconds
For example if the user account is configured for 5000 seconds, then:
TruncateSessionTime("y") returns 0.
TruncateSessionTime("d") returns 0.
TruncateSessionTime("h") returns 1.
TruncateSessionTime("m") returns 23.
TruncateSessionTime("s") returns 20.
Session input/output/totals
If you specify a value for the optional parameter div, then the return value is divided by div.
GetSessionInputPackets()
GetSessionInputOctets(div)
Returns the number of packets/octets received by the current user session.
GetSessionOutputPackets()
GetSessionOutputOctets(div)
Returns the number of packets/octets sent by the current user session.
9-79