...
- There are some mandatory fields required to make the TULIP work. The list is given in the Required column of above table.
- Process for making change in database
- Login to tulip database (username and password available in escrow -c iepm iepmacct
Code Block 24cottrell@pinger:~>mysql -u tulip -p tulip Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 664 to server version: 4.1.22-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>
- Change the database to tulip by cmd
Code Block mysql> use tulip; Database changed
- Now insert new records using the following sql cmd; in this instance we are using ipv4Addr = 141.22.213.35;
Code Block insert into landmarks (hostName,ipv4Addr,enabled,latitude,longitude,serviceInterfaceType,tracerouteURL,tulipTier,domain,pingURL,city,country,continent) values ('marspinger.planetlab.haw-hamburg.destanford.edu','141171.2266.2136.3539','1','5337.554285','10-122.178','PlanetLabPingER','141.22.213.35http://pinger.stanford.edu/cgi-bin/traceroute.pl?','1','haw-hamburg.destanford.edu','http://pinger.stanford.edu/cgi-bin/traceroute.pl?function=ping','Menlo Park','United States','North America');
- Or you can update an existing record, e.g.
Code Block mysql> update landmarks set latitude=31.4190 and longitude=-122.2017 where hostname like '%www-wanmon.slac.stanford.edu%'; Query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0
- Update Sites.xml so that it can now use the updated landmarks using following cmd
Code Block create_sites-xml.pl >! /afs/slac/www/comp/net/wan-mon/tulip/sites.xml