#!/usr/local/bin/php -q "mysql", "host" => "127.0.0.1", "port" => "3306", "name" => "netconfig", "user" => "blah", "pass" => "blah" ); $db = new DBI; $db->init($cfg_db); printf("\n"); # spit out nyiix sessions w/o auth #$sql = "SELECT * FROM bgpPeerSessions WHERE ix = 'nyiix' and md5enabled IS NULL or md5enabled != '1' ORDER BY peerIP"; #$sql = "SELECT * FROM bgpCustomerSessions, uberClientCache WHERE (bgpCustomerSessions.UberID = uberClientCache.UberID) ORDER BY voxRouter"; $sql = "SELECT * FROM bgpPeerSessions, peerParticipants WHERE (bgpPeerSessions.peerAS = peerParticipants.asn) and ix = 'nyiix' and md5enabled IS NULL or md5enabled != '1' ORDER BY peerIP"; $devices = $db->fetch_all($sql, "array"); for($i=0;$i