You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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)
>
  • No labels