
Hi,
First of all, thanks for the great SDK you provide :d). I'm using the powershell api, and it works fine.
I have several questions about how to add network interface and volumes for monitoring.
My problem is how to find the network interface index and name, and how to find the volumes index and caption; Is there a way to collect them using API as in the web interface when we click on List Resources?
My second question is about when I had a volume (I get the index and the name manually) and I'm using the API (following code), i have an error on Volume Polling Details : The "Volume Polling Details " resource threw an exception..
Specified cast is not valid.
powershell Code:
$newVolProps = @{
NodeID=$nodeProps["NodeID"]; # NodeID on which the interface is working on
VolumeIndex=[int]$VolumeIndex;
Status=0;
Type ="Fixed Disk";
Icon ="FixedDisk.gif";
Caption=$VolumeCaption;
VolumeDescription=$VolumeDescription;
}
$newVolUri = New-SwisObject $swis –EntityType "Orion.Volumes" –Properties $newVolProps
$VolProps = Get-SwisObject $swis -Uri $newVolUri
# register specific pollers for the node
# Disk Poller
$poller = @{
PollerType="Poller_VO";
NetObject="V:"+$VolProps["VolumeID"]
}
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
thanks for your help
Imas,
To your first question, we are working on a design of more comfortable API that would cover the complexity of respective use cases.
To the second question, please try to initialize/set the RediscoveryInterval (PollInterval and StatCollection eventually, too) properties for volume entities. Although the properties are not declared in Orion.Volumes entity type, they should be recognized and this should help you.
Hi Tom,
Thanks for your quick reply. I test the added properties you provide to me and it is working well. AS it was not published into the api, i didn't add it.
For the first point, do you now when the feature will be available on the new version of the API? Does the ressource discovery use snmp information to get the index and the caption ?
Regards
We too are interested in a more comprehensive and easier to use API we can use to automate some of the more time consuming tasks related to adding and defining nodes and their properties.