On Fri, 16 Feb 2007, Bamm Visscher wrote:
BV> USE sguildb;
Right.
Here ya go:
mysql> use sguildb;
Database changed
mysql> SELECT sid FROM sensor WHERE hostname='ciscoE1';
+-----+
| sid |
+-----+
| 1 |
+-----+
1 row in set (0.19 sec)
mysql>
BV>
BV> On 2/16/07, Brett Charbeneau <brett@...> wrote:
BV> > On Fri, 16 Feb 2007, Bamm Visscher wrote:
BV> >
BV> > BV> Sorry, you need to end the statement with a semi colon to be processed.
BV> > BV>
BV> > BV> So
BV> > BV>
BV> > BV> SELECT sid FROM sensor WHERE hostname='ciscoE1';
BV> >
BV> > I'm probably screwing up a basic MySql command - I appreciate your
BV> > patience with me!
BV> > Ah, so. I don't play with MySql once I get it working - as you can tell.
BV> > =8^)
BV> > I *do* get an error:
BV> >
BV> > mysql> SELECT sid FROM sensor WHERE hostname='ciscoE1';
BV> > ERROR 1046 (3D000): No database selected
BV> >
BV> > mysql> use ciscoE1
BV> > ERROR 1049 (42000): Unknown database 'ciscoE1'
BV> >
BV> > That *is* the correct name of the sensor. From the NSM startup script:
BV> >
BV> > The following sensors are installed on this system:
BV> > ciscoE1
BV> >
BV> >
BV> >
BV> > BV> On 2/16/07, Brett Charbeneau <brett@...> wrote:
BV> > BV> > > >From a msyql prompt:
BV> > BV> > >
BV> > BV> > > SELECT sid FROM sensor WHERE hostname='$sensorName'"
BV> > BV> > >
BV> > BV> > > Change $sensorName to your sensor name (do it once for each sensor
BV> > if
BV> > BV> > > you have more than one. Do you get an error?
BV> > BV> >
BV> > BV> > No error (tried it two ways becuase I thought there might be
BV> > an
BV> > BV> > unbalanced quotation mark):
BV> > BV> >
BV> > BV> >
BV> > BV> > Enter password:
BV> > BV> > Welcome to the MySQL monitor. Commands end with ; or \g.
BV> > BV> > Your MySQL connection id is 6 to server version: 5.0.17-log
BV> > BV> >
BV> > BV> > Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
BV> > BV> >
BV> > BV> > mysql> SELECT sid FROM sensor WHERE hostname='ciscoE1'"
BV> > BV> > ">
BV> > BV> > [root@... ~]# mysql -h localhost -u root -p
BV> > BV> > Enter password:
BV> > BV> > Welcome to the MySQL monitor. Commands end with ; or \g.
BV> > BV> > Your MySQL connection id is 7 to server version: 5.0.17-log
BV> > BV> >
BV> > BV> > Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
BV> > BV> >
BV> > BV> > mysql> SELECT sid FROM sensor WHERE hostname='ciscoE1'
BV> > BV> > ->
BV> > BV> >
BV> > BV> >
BV> > BV> >
BV> > BV> >
BV> > BV> > --
BV> > BV> > ********************************************************************
BV> > BV> > Brett Charbeneau
BV> > BV> > Network Administrator
BV> > BV> > Williamsburg Regional Library
BV> > BV> > 7770 Croaker Road
BV> > BV> > Williamsburg, VA 23188-7064
BV> > BV> > (757)259-4044 http://www.wrl.org
BV> > BV> > (757)259-4079 (fax) brett@...
BV> > BV> > ********************************************************************
BV> > BV> >
BV> > BV> >
BV> > BV> >
BV> > -------------------------------------------------------------------------
BV> > BV> > Take Surveys. Earn Cash. Influence the Future of IT
BV> > BV> > Join SourceForge.net's Techsay panel and you'll get the chance to
BV> > share your
BV> > BV> > opinions on IT & business topics through brief surveys-and earn cash
BV> > BV> >
BV> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
BV> > BV> > _______________________________________________
BV> > BV> > Sguil-users mailing list
BV> > BV> > Sguil-users@...
BV> > BV> > https://lists.sourceforge.net/lists/listinfo/sguil-users
BV> > BV> >
BV> > BV>
BV> > BV>
BV> > BV>
BV> >
BV> > --
BV> > ********************************************************************
BV> > Brett Charbeneau, GSEC Gold, GCIH Gold
BV> > Network Administrator
BV> > Williamsburg Regional Library
BV> > 7770 Croaker Road
BV> > Williamsburg, VA 23188-7064
BV> > (757)259-4044 http://www.wrl.org
BV> > (757)259-4079 (fax) brett@...
BV> > ********************************************************************
BV> >
BV> >
BV> > -------------------------------------------------------------------------
BV> > Take Surveys. Earn Cash. Influence the Future of IT
BV> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
BV> > opinions on IT & business topics through brief surveys-and earn cash
BV> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
BV> > _______________________________________________
BV> > Sguil-users mailing list
BV> > Sguil-users@...
BV> > https://lists.sourceforge.net/lists/listinfo/sguil-users
BV> >
BV>
BV>
BV>
--
********************************************************************
Brett Charbeneau, GSEC Gold, GCIH Gold
Network Administrator
Williamsburg Regional Library
7770 Croaker Road
Williamsburg, VA 23188-7064
(757)259-4044 http://www.wrl.org
(757)259-4079 (fax) brett@...
********************************************************************
|