Hello,
yes, starting with PM 2.8 you can use explicit snmpGet / snmpGetTable calls in your vendor cert.
See Functions and Global Variables - CA Performance Management - 3.1 - CA Technologies Documentation
For example, see the following snippet with a variable to calculate the number of interfaces with operUpStatus.
If you just need the number of elements, then list.size() would be your friend.
<Expressions>
<ExpressionGroup destCert="{http://im.ca.com/normalizer}NormalizedInterfaceStatistics" name="InterfaceStatsTable">
<VariableGroup>
<Variable name="operUpStatus">
response=snmpGetTable("1.3.6.1.2.1.2.2.1.8");
list=response.getResult();
status=0;
for (i=0; i < list.size(); i++) {
value=list.get(i).getValue();
if (value==1) {
status++;
}
};
return status;
</Variable>
....
</VariableGroup>
...
use that variable in the metric assignment such as
<Expression destAttr="InterfaceOperUpStatus">operUpStatus</Expression>
Hope that helps,
Lutz.