Configuration Information Retrieval Scripts

The following scripts are used by the applications and the monitoring systems code to  obtain the configuration information from the IEPM-BW database.

fetch-aliasname nodeid

 This returns the aliasname for the 'nodeid' specified from the NODES table. For example:

> fetch-aliasname 5
iepm-bw.slac.stanford.edu
>

fetch-iepmbw-nodes

This returns an associative array of the monitoring hosts and their base URL.

>fetch-iepmbw-nodes
%monhost=('iepm-bw.slac.stanford.edu','http://www.slac.stanford.edu/comp/net',
'iepm-bw.caltech.ul-org','http://socrates.ultralight.org',
'iepm-bw.bnl.org','http://iepmbw.bnl.org',
'iepm-bw.cern.ch','http://iepmbw.cern.ch',
'iepm-bw.twaren.net','http://iepmbw.twaren.net',
'iepm-bw.snv.ul-org','http://snv1.ultralight.org',
'iepm-bw.fzk.de','http://lhc-opn-mon-fzk.gridka.de')

fetch-ipaddr aliasname

This returns the ip address of the node with the specified aliasname.

>fetch-ipaddr iepm-bw.twaren.net
211.27.61.163
>

fetch-monhosts

This returns a list of the active monitoring hosts.

>fetch-monhosts
(iepm-bw.slac.stanford.edu,iepm-bw.caltech.ul-org,iepm-bw.cern.ch,iepm-bw.bnl.org,iepm-bw.twaren.net,iepm-bw.snv.ul-org,iepm-bw.fzk.de)>

fetch-nodeid -n aliasname

This returns the nodeid of the specified aliasname

>fetch-nodeid -n iepm-bw.bnl.org
98
>

fetch-table-description -t <tablename>

This returns the list of fields in the specified table.

>fetch-table-description -t PLOTSPECS
(plotspecID,srcNode,destNode,datatype,plottype,xtitle,ytitle,title,plotspec,insubdir,outsubdir,f_time_stamp)
>

fetch-tables

This returns the list of all tables in the IEPM data base. Note that all of these tables may not be in use.

>fetch-tables
ALERTS,ASN,ASNINFO,BWDATA,COMMENTS,DIAG_RESULT,GRAPHS,GROUPS,MONHOST,NEWALERTS,NODEGROUP,NODES,
NODESPECS,OWAMPDATA,PINGDATA,PLOTSPECS,REGDATA,ROUTEDATA,ROUTENO,SCHEDULE,TOOLSPECS
>

fetch-targethost-names

This returns a list of the target host alias names

> fetch-targethost-names
(node1.niit.pk,node1.utdallas.edu,node1.switch.ch,node1.desy.de,node1.nslabs.ufl.edu,node1.lbl.gov,node1.in2p3.fr,
node1.indiana.edu,node1.cesnet.cz,node1.mcs.anl.gov,node1.fzk.de,node1.pd.infn.it,node2.nslabs.ufl.edu,
node1.stanford.edu,node1.binp.nsk.su,node1.cacr.caltech.edu,node1.triumf.ca,node1.dl.ac.uk,node1.sdsc.edu,
node1.utoronto.ca,node7.slac.stanford.edu,node2.ornl.gov,node1.ornl.gov,node1.glast.nrl.navy.mil,
node1.umich.ul-org,node1.bu.edu,node1.harvard.edu,node1.uchicago.edu,node2.indiana.edu,node1.uta.edu,
node1.lunet.edu,node1.ucsd.edu,node2.lbl.gov)
>

get-active-nodelist

This script returns a list of the active nodes and which probes are active for this. The result needs to be evaluated to make the active node list %TESTLIST.

>get-active-nodelist
%TESTLIST=('iepm-bw.bnl.org','mtlaytcp,owping,pathchirp,pathload,ping,tlaytcp,traceroute',
'iepm-bw.caltech.ul-org','owping,pathchirp,pathload,ping,tlaytcp,traceroute',...);
>
# in perl:
 @ans = `$iepmSrcDir/get-active-nodelist`;
 eval("$ans[0];");

;

get-nodespecs -n aliasname

This returns all the fields in the NODES table for the specified aliasname

monhost-getcfg

This returns the information for the monitoring host on which it is executed. It is used to make that information available to the various acquisition and analysis scripts.

  • No labels