Bao Nguyen | 1 Jul 2011 20:20
Favicon

Re: SQL or script for active vlan on each switch

Thank you for sharing! I've tested it out and it appeared to do
exactly what I needed. I just need to customize it to display the
switch name instead of IDs.

-bn
0216331C

2011/6/30 Þórhallur Hálfdánarson <thorhallur.halfdanarson <at> ejs.is>:
> I believe this is what you're looking for...
>
> This is a PHP that return JSON with the VLAN list - feel free to use at will, or only extract the SQL :)
>
> <?PHP
> error_reporting(E_ALL);
> setLocale(LC_ALL, 'is_IS.utf8');
> define('_NETDOT', mysql_connect(host', user', 'pass'));
> mysql_select_db('netdot', _NETDOT);
>
> $ret = Array();
>
> $res = mysql_query('SELECT id, vid, name FROM vlan ORDER BY vid', _NETDOT);
> while ($a = mysql_fetch_assoc($res)) {
>        $devices = Array();
>        $res2 = mysql_query(sprintf('SELECT id FROM device WHERE id IN (SELECT device FROM interface
WHERE id IN (SELECT interface FROM interfacevlan WHERE vlan = %s))', $a['id']), _NETDOT);
>        while ($d = mysql_fetch_assoc($res2)) {
>                $devices[] = sprintf("'%s'", 'nd_'.$d['id']);
>        }
>        $ret[] = sprintf("'%s': { 'name': '%s', 'devices': [%s] }", $a['vid'], $a['name'],
implode(', ', $devices));
(Continue reading)

Blakkheim.GW | 13 Jul 2011 11:18
Picon
Favicon

SRV record

Hello list,

I'm new to NetDot and I'm testing it to see of it could fit our needs.

My problem is that I can't find how to put a SRV DNS record in NetDot. I've found how to add a NS record, TXT or MX
but SRV still can't be found. Any hint ?

Thanks in advance.

--
Blakkheim.GW
Powered by GNU/Linux
Steffen Weinreich | 13 Jul 2011 12:05

Re: SRV record

Am 13.07.2011 11:18, schrieb Blakkheim.GW:
> Hello list,
>
> I'm new to NetDot and I'm testing it to see of it could fit our needs.
>
> My problem is that I can't find how to put a SRV DNS record in NetDot. I've found how to add a NS record, TXT or MX
but SRV still can't be found. Any hint ?

Goto Management -> DNS Zones, select the relevant zone in the Drop-Down

In the Section Record select Add to  add a Name for the Service (for
example:)

    _jabber._tcp         

open it, press on add in the  SRV record section and fill out the form with

   Priority:    
   Weight:    
   Port*:    
   Target*:    
   TTL:    

That should do the job.

horridoh und Gut Pfad
    Steve

--

-- 
Wir haben nur eine kurze Lebenszeit. Daher ist es wesentlich, Dinge zu tun,
(Continue reading)

Blakkheim.GW | 13 Jul 2011 12:13
Picon
Favicon

Re : Re: SRV record

You got it ! Thank you.

I think I've already tried this (with _ldap._tcp) but for some reasons, the SRV option was not visible (or I
didn't see it).

Anyway, thank you for your rapid answer.

> ----- Message d'origine -----
> De : Steffen Weinreich
> Envoyés : 13.07.11 12:05
> À : Blakkheim.GW
> Objet : Re: [Netdot-users] SRV record
> 
> Am 13.07.2011 11:18, schrieb Blakkheim.GW:
> > Hello list,
> >
> > I'm new to NetDot and I'm testing it to see of it could fit our needs.
> >
> > My problem is that I can't find how to put a SRV DNS record in NetDot. I've found how to add a NS record, TXT or
MX but SRV still can't be found. Any hint ?
> 
> Goto Management -> DNS Zones, select the relevant zone in the Drop-Down
> 
> In the Section Record select Add to add a Name for the Service (for
> example:)
> 
>  _jabber._tcp 
> 
> open it, press on add in the SRV record section and fill out the form with
> 
(Continue reading)

Heidrich Attila | 14 Jul 2011 10:15
Picon

"Adding an entity" popup does not close on [close] link

0.9.9

It also happens with Chrome, Opera and Firefox.

any idea what to change? This is a fresh installation on a RHE system. This also happens on my Ubuntu. The
entity has been created, so starting the original scene over shows the new one, but it was better when the
[close] link closed the popup, and filled in the input box in the parent window.

--
Heidrich Attila
vezető fejlesztőmérnök
Invitel Távközlési Zrt.
H-6726 Szeged, Rókusi krt. 2-10.
központ: H-2040 Budaörs, Puskás Tivadar u. 8-10. 
iroda: +36 62 777574
fax:  +36 62 471122
mobil: +36 20 9357792
http://www.invitel.hu

-----Eredeti üzenet-----
Feladó: netdot-users-bounces@... meghatalmazó: netdot-users-request@...
Küldve: 2011. 07. 13., Sze 21:00
Címzett: netdot-users@...
Tárgy: Netdot-users Digest, Vol 32, Issue 2

Send Netdot-users mailing list submissions to
	netdot-users@...

To subscribe or unsubscribe via the World Wide Web, visit
	https://osl.uoregon.edu/mailman/listinfo/netdot-users
(Continue reading)

Brian Candler | 14 Jul 2011 12:05
Picon
Favicon

Auth problems

Hi,

I've just tried installing from git (cvicente/master from github - there
doesn't seem to be a netdot-0.9 branch there)

This is on a VM where I had an older version of netdot, but I blasted away
the netdot database and /usr/local/netdot before starting.

A strange thing I noticed was that after make installdeps-apt-get and then
letting it complete via CPAN, it said there were two modules MISSING:
SNMP::Info 2.04 and Net::Appliance::Session 3.111690.  However a subsequent
'make installdeps' did nothing and said they were OK.

Anyway, the service is now running, however I cannot get past the login
page.  If I login as 'admin' / 'admin', it just takes me immediately back to
the login page saying: "Please enter your login and password to
authenticate." Here is what I see in the apache2 error log:

~~~~
[Thu Jul 14 09:58:53 2011] [error] encryption engine using key: Netdot gets the last laugh
[Thu Jul 14 09:58:53 2011] [error] Making user object for admin.
[Thu Jul 14 09:58:53 2011] [error] Created user: $VAR1 = bless( {\n                 'attributes' => {},\n                 'sessionid' =>
'4cf59569523cd85afd8db9fb3d237372',\n                 'manager' => 'Apache2::SiteControl::UserFactory',\n                
'username' => 'admin'\n               }, 'Apache2::SiteControl::User' );\n
[Thu Jul 14 09:58:53 2011] [error] ses_key_cookie 
[Thu Jul 14 09:58:53 2011] [error] Session cookie: UNSET
[Thu Jul 14 09:58:53 2011] [error] Loading module Apache2::SiteControl::UserFactory
[Thu Jul 14 09:58:53 2011] [error] Using user factory Apache2::SiteControl::UserFactory
[Thu Jul 14 09:58:53 2011] [error] ses_key_cookie 4cf59569523cd85afd8db9fb3d237372
[Thu Jul 14 09:58:53 2011] [error] Attempting auth using session key 4cf59569523cd85afd8db9fb3d237372
(Continue reading)

Mike Hayman | 14 Jul 2011 19:11
Picon
Gravatar

Re: "Adding an entity" popup does not close on [close] link

I believe you're having the same issue I had recently.. I had this
same problem after they updated our internal CPAN repository and I
performed an update.  I did file a bug about it:
https://osl.uoregon.edu/redmine/issues/1589

It's more of an issue with a behavior change of the URI::Escape module
than with NetDot, but it's still somewhat annoying.

I fixed it by changing the following line to force the old URI::Escape behavior.

-% my $onload_action = uri_escape("addandclose()");
+% my $onload_action = uri_escape("addandclose()", "[^A-Za-z0-9\-_.!~*'()]");

Hope this helps!

2011/7/14 Heidrich Attila <HeidrichA@...>:
> 0.9.9
>
> It also happens with Chrome, Opera and Firefox.
>
> any idea what to change? This is a fresh installation on a RHE system. This also happens on my Ubuntu. The
entity has been created, so starting the original scene over shows the new one, but it was better when the
[close] link closed the popup, and filled in the input box in the parent window.
>
> --
> Heidrich Attila
> vezető fejlesztőmérnök
> Invitel Távközlési Zrt.
> H-6726 Szeged, Rókusi krt. 2-10.
> központ: H-2040 Budaörs, Puskás Tivadar u. 8-10.
(Continue reading)

Carlos Vicente | 15 Jul 2011 08:15
Favicon

Re: Auth problems

Hi Brian,

The logs look OK to me. Netdot is saying that you are authenticated.
This used to happen in the past when the user accidentally requested the
"NetdotLogin" resource, which is what Netdot interprets as "show the
login page". The user was authenticated, but they wanted to go to the
login page, so Netdot was taking them there. I believe I fixed that a
few versions ago... but worth a check. Just remove that string from the
browser URL if you see it, and hit enter.

Let me know. I'm curious.

cv

On 7/14/11 3:05 AM, Brian Candler wrote:
> Hi,
>
> I've just tried installing from git (cvicente/master from github - there
> doesn't seem to be a netdot-0.9 branch there)
>
> This is on a VM where I had an older version of netdot, but I blasted away
> the netdot database and /usr/local/netdot before starting.
>
> A strange thing I noticed was that after make installdeps-apt-get and then
> letting it complete via CPAN, it said there were two modules MISSING:
> SNMP::Info 2.04 and Net::Appliance::Session 3.111690.  However a subsequent
> 'make installdeps' did nothing and said they were OK.
>
> Anyway, the service is now running, however I cannot get past the login
> page.  If I login as 'admin' / 'admin', it just takes me immediately back to
(Continue reading)

Brian Candler | 15 Jul 2011 12:40
Picon
Favicon

Re: Auth problems

On Thu, Jul 14, 2011 at 11:15:37PM -0700, Carlos Vicente wrote:
> The user was authenticated, but they wanted to go to the
> login page, so Netdot was taking them there. I believe I fixed that a
> few versions ago... but worth a check. Just remove that string from the
> browser URL if you see it, and hit enter.
> 
> Let me know. I'm curious.

OK, just firing up that VM again now.

In the end I built another VM, from scratch, and it was fine. Unfortunately
with the bandwidth available here, it took a long time to pull in all the
dependencies; and also, the remaining CPAN dependencies have blossomed from
about 7 to many more, because of cascading dependencies (I should do it
again and capture it all)

Right, the problem is exactly as you describe.

* Point initially at http://192.168.122.50/, it shows login page
* Enter admin/netdot
* It shows the login page again at 192.168.122.50/netdot/NetdotLogin
* If you manually strip the URL to /netdot/, *then* it goes to
  /netdot/management/

The same is true if I start at http://192.168.122.50/netdot/: it goes
to http://192.168.122.50/netdot/NetdotLogin

Hmm: now it's wedged. I logged out, purposely tried to login as a bad
user/pass (xxx/xxx).  THen I tried to login again as admin/netdot, got the
/netdot/NetdotLogin page, but when I strip it down to /netdot/ I still get
(Continue reading)

Carlos Vicente | 16 Jul 2011 19:01
Favicon

Re: Auth problems

On 7/15/11 3:40 AM, Brian Candler wrote:
> Hmm: now it's wedged. I logged out, purposely tried to login as a bad
> user/pass (xxx/xxx).  THen I tried to login again as admin/netdot, got the
> /netdot/NetdotLogin page, but when I strip it down to /netdot/ I still get
> the login page.
>
Hi Brian,

The password for the admin user is 'admin' by default. In the Ubuntu VM
that I created, the system username is 'netdot' and the password is
'netdot', but the Netdot application credentials are still the default
ones (admin/admin). I wonder if there's some confusion there.

At any rate, I have to look into the NetdotLogin redirection problem
again. I thought that was fixed.

Thx,

cv

Gmane