Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. [Netdot - Support #1892] Help with API ([email protected])
2. [Netdot - Support #1892] Help with API ([email protected])
3. [Netdot - Support #1892] Help with API ([email protected])
4. [Netdot - Support #1892] (Resolved) Help with API
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Mon, 9 May 2016 06:22:48 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1892] Help with API
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1892 has been updated by Mark Shetka.
I did get a better query working for physaddr, so thank you for that Carlos.
One last question. With Netdot::Client::REST is there a graceful way to handle
a "404 Not Found" error when calling netdot->get for something that doesn't
exist? Right now my script that calls the get function aborts, but I'd rather
catch the error and continue. I'm not seeing how to do that, since get is using
croak for the error.
----------------------------------------
Support #1892: Help with API
https://osl.uoregon.edu/redmine/issues/1892#change-3346
Author: Mark Shetka
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Greetings,
I am just getting started with Netdot and it's API and am hung up on a few
things.
1) Is there a way to search by mac address? Seems like this should do it
"dhcpscope?physaddr=0026B98D9FFE"
but throws an error. My workaround is to get the entire dhcpscope table and
search through the results.
2) What is the syntax for wildcards in a search. For example, give me all
hostnames that match "*-sw-*".
3) How can I join multiple tables in one query. For example, return the
hostname and IP address for everything where "monitored=true" (join Ipblock and
rraddr).
4) Is there a way to limit the fields returned? For example, given a hostname
just return it's IP address.
As I said, I'm new to Netdot and using an API (normally I would query a
database directly). Any help and/or API examples beyond what is in the
documentation would be appreciated. I am using Netdot::Client::REST with Perl.
Thanks,
Mark
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 2
Date: Mon, 9 May 2016 06:25:42 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1892] Help with API
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1892 has been updated by Carlos Vicente.
> One last question. With Netdot::Client::REST is there a graceful way to
> handle a "404 Not Found" error when calling netdot->get for something that
> doesn't exist? Right now my script that calls the get function aborts, but
> I'd rather catch the error and continue. I'm not seeing how to do that, since
> get is using croak for the error.
You can use Perl's eval() to examine the error output and continue if it's a 404
----------------------------------------
Support #1892: Help with API
https://osl.uoregon.edu/redmine/issues/1892#change-3347
Author: Mark Shetka
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Greetings,
I am just getting started with Netdot and it's API and am hung up on a few
things.
1) Is there a way to search by mac address? Seems like this should do it
"dhcpscope?physaddr=0026B98D9FFE"
but throws an error. My workaround is to get the entire dhcpscope table and
search through the results.
2) What is the syntax for wildcards in a search. For example, give me all
hostnames that match "*-sw-*".
3) How can I join multiple tables in one query. For example, return the
hostname and IP address for everything where "monitored=true" (join Ipblock and
rraddr).
4) Is there a way to limit the fields returned? For example, given a hostname
just return it's IP address.
As I said, I'm new to Netdot and using an API (normally I would query a
database directly). Any help and/or API examples beyond what is in the
documentation would be appreciated. I am using Netdot::Client::REST with Perl.
Thanks,
Mark
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 3
Date: Mon, 9 May 2016 08:27:28 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1892] Help with API
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1892 has been updated by Mark Shetka.
Got it working. Thanks!
----------------------------------------
Support #1892: Help with API
https://osl.uoregon.edu/redmine/issues/1892#change-3348
Author: Mark Shetka
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Greetings,
I am just getting started with Netdot and it's API and am hung up on a few
things.
1) Is there a way to search by mac address? Seems like this should do it
"dhcpscope?physaddr=0026B98D9FFE"
but throws an error. My workaround is to get the entire dhcpscope table and
search through the results.
2) What is the syntax for wildcards in a search. For example, give me all
hostnames that match "*-sw-*".
3) How can I join multiple tables in one query. For example, return the
hostname and IP address for everything where "monitored=true" (join Ipblock and
rraddr).
4) Is there a way to limit the fields returned? For example, given a hostname
just return it's IP address.
As I said, I'm new to Netdot and using an API (normally I would query a
database directly). Any help and/or API examples beyond what is in the
documentation would be appreciated. I am using Netdot::Client::REST with Perl.
Thanks,
Mark
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 4
Date: Mon, 9 May 2016 08:32:09 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1892] (Resolved) Help with
API
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1892 has been updated by Carlos Vicente.
Status changed from Closed to Resolved
Resolution set to fixed
----------------------------------------
Support #1892: Help with API
https://osl.uoregon.edu/redmine/issues/1892#change-3349
Author: Mark Shetka
Status: Resolved
Priority: Normal
Assignee:
Category:
Target version:
Resolution: fixed
Greetings,
I am just getting started with Netdot and it's API and am hung up on a few
things.
1) Is there a way to search by mac address? Seems like this should do it
"dhcpscope?physaddr=0026B98D9FFE"
but throws an error. My workaround is to get the entire dhcpscope table and
search through the results.
2) What is the syntax for wildcards in a search. For example, give me all
hostnames that match "*-sw-*".
3) How can I join multiple tables in one query. For example, return the
hostname and IP address for everything where "monitored=true" (join Ipblock and
rraddr).
4) Is there a way to limit the fields returned? For example, given a hostname
just return it's IP address.
As I said, I'm new to Netdot and using an API (normally I would query a
database directly). Any help and/or API examples beyond what is in the
documentation would be appreciated. I am using Netdot::Client::REST with Perl.
Thanks,
Mark
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 110, Issue 4
********************************************