BPMCLI

export all of the Portal element names into an HTML or csv file

bpmcli -c getElements -portal portal_web_server -login user_id -lass password


find the number of CPUs on a server using PSL?

/executable|wc -l


Below for solaris

cpucount = "psrinfo|wc -l"
execute("OS",cpucount);

Query the patrol console


collect data from the agent using dump_hist command:
an example:
dump_hist -format %H,%A,%I,%P,%y,%m,%d,%h:%m:%s,%v
This will dump the following columns in csv format, see the Patrol Agent reference manual for more details.
HostName,ApplicationName,InstanceName,ParameterName,year,month,dayOfMonth,hour:minute:second,value
a selection of the output:
PLUM1,AS_AVAILABILITY,PLUM1_3181,HostPingFailures,2010,11,08,09:11:42,0
PLUM1,AS_AVAILABILITY,PLUM1_3181,HostPingFailures,2010,11,08,09:11:13,0
PLUM1,AS_AVAILABILITY,PLUM1_3181,HostPingFailures,2010,11,08,09:11:45,0
PLUM1,AS_AVAILABILITY,PLUM1_3181,HostPingFailures,2010,11,08,09:11:17,0
PLUM1,AS_AVAILABILITY,PLUM1_3181,HostPingFailures,2010,11,08,09:11:49