We start this exercise with the PI
System Explorer which you will find under the Start Menu under
All Programs, PI System.
We are going to go into the Notification Section once we open up the right
database. So, this is our mechanism for exploring
AF. Choose Database, right here.
Now, as I said, we do have a Solution already,
called Solution_Notifications Learning Lab Database.
Now, this exercise is based on
the work you did in the previous exercise.
So, if you have created this Status Notification, you should probably
start there. We are going to basically add new content
to that. That's what I am going to do in this case.
If you did not do that exercise, you can take a look at the completed
Solution. Just go into this Solution_Status.
So, we will start with this. I will open that -- I will open that
existing database, and then
I will, I will choose this Status Notification Notification.
Now, it's really as simple as
going into the Content Tab and adding more
content. So we have, you know, we have seen the Overview before.
We have seen the Trigger. We have seen Subscriptions, etc.
We are currently -- we currently have
a Subscription to Rudy Wells, and it's in his email
that we are going to add this -- you know, the emails going to him are going to
include extra content now. So, we will choose Add.
First thing I am going to do is a File Link.
So for a File Link, you
can go out and browse for any
UNC-type reference, any file
ref... -- File Share that you have got local.
The best way to do this is to specify
using UNC Reference, the
name of the computer. So, this is going to be the
File Server. I am going to go ahead and put in the name of my Server,
OSIsoft.trng.
Now, by just putting in, you know, the
two backward slashes, the name of the server, that's going to bring up
a list of all the Shares available, and I will just browse
to the Share that I want.
And, that's all there is to it.
As you can see, I now have a brand new File Reference.
That is the, currently, the
best way and the only way, really, to make our File Reference, is
through this UNC Reference here.
But, remember, that's not the only way to make a
file appear when you click on it in the email. You can choose
Add and File, and then, in that case, you can just
browse to a file and then make that a file attachment.
As I said, I did not want to do that in this case 'cause I would, I would rather just
send a reference to keep the,
keep everything kind of centrally located. So,
that accomplishes the File Link. Let's add a second
bit of content. This content, we are going to be adding a Web Link.
Now, I can make a link
to an RtReports Web Page
or an IT WebParts Web Page, if I want.
In this
case, I am simply going to be sending the user
over to a SharePoint Web Page. So, I am going to choose Other.
And this is where I get to
specify the Name and the Link Address. Now, for the Name,
I am simply going to call it something like,
oh, let's call it
Learning Lab Solutions,
'cause that's the Name of the Website. And for the
URL, well, obviously, it would be
easier for you if you went out and browsed for it, but
you can just type it in here as well.
So, if I go out and browse, and then
copy the URL, and then past it here, it would probably
be easier. In fact, I think I will do that in this example.
Yeah, this is
our, this is the default website you will see in the Learning Lab
Environment. I am going to go to the Solutions Directory.
So, if I remember correctly, it's one of my
favorites. There we go. So, there it is.
This is where I want people to land, so I will just select that.
Do a Copy;
go in here and do a Paste.
But, of course, I could have typed that in there as well.
Now, some web pages allow you to pass parameters or
arguments to it, so, you know, what web page that might take you
to the current weather at a
specific site, and you have to pass a,
pass a, an airport name or something like that.
Or, for example, in the case of RtWebParts, you can pass arguments
that would change the start and end time of the RtWebParts
display. That's available by choosing this
parameter here in which you can specify
the name of a parameter and the value of the parameter,
and that will append that to the link address.
So, before I get off of this, I will go ahead and choose
Test, just to see if this works. Let me close out of this first
just to make sure there's no -- nothing up my sleeve here.
I will go ahead and choose Test, and as we can see,
it looks like it's making the link properly, it's making the
jump properly I should say. I will go ahead and say OK.
And so, now, we have a second, a second
type of additional content. It's this link right
here. Now, the
third additional content I said I was going to add was going to
be this Instant RtWebParts Trend.
But, you notice, it's there already. Why, why did I not
have to add that somewhere? Well, the reason I did not have to add it is
because, if you go into -- or, it's, it's going
to appear there automatically if
the, or, as a, as a piece of
content that's available to you. It will be there automatically
if Notifications knows about a SharePoint
Server that's using RtWebParts
in your network. So, in, in my
case, it's actually been set up that way.
So, if I go into Tools,
Notifications, and go into Global Configuration, you will
see that we have identified a, an
RtWebParts Server. Now, that's something that actually can be
configured, or is normally configured when you
install Notifications. You are prompted. You know, what is the
name of your RtWebParts Server, if any? And, in,
in the case of our installation, I go ahead -- I went ahead and answered
with that, and so, that's why this appears
as an Option. Now, whether you give that
to the people who are set -- who are receiving the emails,
you know, whether you assign that to this person subscribed,
that's up to you. And, I will show you how to do that in the next step.
So, any case, that con -- that concludes this part
of the exercise. We have got a
Web Link, we have got a File Link,
and our next step is to go into the Subscriptions Tab
and control who gets to see
this extra content.
Now, since I did the
previous exercise, you will notice Rudy Wells is already listed as a,
as a Subscriber. No mi... no problem
if you did not do that previous exercise. The way
you add Rudy, again, is just by going into Contacts.
You search for that Contact. I will search for All
Contacts. This is going into the Active Directory
as well -- Active Directory, as well as
going into all my existing contacts who my not --
may not be Active Directory Users, and it's bringing them
up here. Anyway, so I find Rudy and I add him
as a, I add him as a
Subscriber to this. If I want to
change the Options like is he notified on close or not,
I can do that from here. Now,
the part that's brand new for this particular exercise is.
You notice under, under this Selected
Content Pane here, it's
some -- some things that we have been ignoring up to this
part of our discussion of Notifications.
Of course, we are go going to include the Standard Content, but, as you can see,
there's other things that we can include as well --
the things that we just configured. So, for example,
that.
This fi... or Web Link.
If I want to include that Web Link, I would just
check on that, and now that's, that Web Link is going to
be available.
And, and by available, I mean it's going to be
sent to him. Now, do you remember when we looked at the
Content? This Instant RtWebParts Trend was there
because we had configured a SharePoint, a,
an RtWebParts Server. Well, it does not mean you are
automatically going, going to get that. You have to
actually select this for each Subscriber. So, now that
Subscriber's going to get that. This has scrolled off the top
of my screen -- the bottom of my screen. Let me make this
a little big bigger so we can see the rest of it.
Yeah, there we go. This last one, File,
that's that content attachment that we did
as a PDI File that's sitting off
in a Network Share somewhere, where we made reference to in our,
in our Content. So, that's how we assign
Content, and, as you will notice, if you add different
people as Subscribers, different
people can receive different Content. So, that's completely up
to you. Let me go ahead and Unsubscribe.
Okay, so
that concludes how we are going to add this. I, in this, case, I am
not going to include this Trigger Input, although
you can try that and just take a look at the results and see what you think of that.
Okay.
Let me go ahead and check in the results, and then we will test
this out.
So, as we have done before, in order
to test this, we need to make sure that one of
these values is going to trigger, and
I have got my choice. I think what I will do --
let me see. I want to -- I would like to see
immediate response here, so I am just
going to add, just for the sake of
making this easier to trigger, I am just going to add a brand new
condition. Yeah, and this is really, this is
really part of the exercise, but it's just to make this a little bit
easier to demonstrate. I will add a brand new condition,
which is a simple comparison. Let's just say
when the Temperature
is greater than -- aah, we will
go with greater than 400 --
then we would like
that to take of that. We will just say it's a value of HIHI.
So,
I have added that to make this a little bit easier to test.
Do not have to wait around for this to fire.
Temperature, if you recall,
under Status Notification, this Temperature --
or, excuse me -- under the Element called Device Status -- Temperature
is pointing to the Tag CDT158.
I can see that by going into the Elements and looking at
Device, Status, and looking at the
Attribute called Temperature. See, that's
my PI Tag that we are
currently pointing to. Okay.
So we are just about ready
to test this. As I said, I will go ahead and check this in.
And we are sending this to -- this
is going to Rudy Wells. What we should see now is
Rudy's been receiving emails all along
from the previous example. Now, the emails, when this
fires, should receive additional content
that we did not see before. So, in order to
test this out, let me go ahead and increase the value
over 400 so that this will fire.
I will go into System Management Tools,
and I will go into the Data
Section under the Archive Editor.
I am going to look for the Tag, CDT158.
I could have also just typed it in there if I wanted to.
[typing]
And,
let's just go with the last
one hour.
Okay, so nothing is over, it's not over
400 now. Let's go ahead and put this at 410.
And then I will go ahead and save. Now,
that should very quickly
end up in a Notification
firing. As you can see, it has fired. It's taken a HIHI
State. It has sent an email
and the email has gone to Rudy Wells, so
let's test this out. Let's, let's open up
Outlook as Rudy Wells.
As I mentioned before, you can do that by doing a right click, do a
Run As. That's a right click on Outlook
Icon there. And then we could just log in as
R Wells with the password "student."
Now, I have also created these links
here to do it automatically if you prefer. So, this is
going to log me into Outlook as Rudy Wells.
Let's see if he's gotten any new Notifications.
Yeah, sure enough. He's gotten some new Notifications.
Let's see if we can see where they, where
they change. Let's see.
Yeah, see this Notification here simply had
an Acknowledge, and so
did this one. But now, we are seeing we have got additional
content. So now, if I click on
any of these Options, we will go ahead and get that extra content. So, for
example, this Learning Lab Solutions -- this is going to take me
to that Web Link. That was the Web Link Option.
The -- we also had the
Content Attachment. I will go ahead and start this up. This is going to take
a second to launch. This is launching ProcessBook right now.
And then it's going to launch the display that goes --
that is in that attachment.
There we go. So,
... there we go. This is our ProcessBook display, and,
it's zoomed way out, but I can zoom in
and see this in more detail. There we go.
And
this link here is going to take you off to one of those
Instant RtWebParts Trends that I demonstrated earlier.