
UNSOLVED
dmctl Syntax Help
Hi,
I am trying to set the community strings in ICF_TopologyManager::ICF-TopologyManager::ReadCommunities,
visible as Read Community Strings in the Configure Polling and Thresholds GUI. The related operations are:
# dmctl -s US-LAB-AM-PM-1 getO ICF_TopologyManager | grep -i communit
getCommunities
setCommunities communities
addCommunity community
updateCommunity fileName
addCommunity works, but I cannot figure out how to remove community strings. Since there is no related
operation, I am trying to use the setCommunities operation, but I cannot get it to work.
___________________________________________________________________________
I try to use setCommunites through the commandline with dmctl:
# dmctl -s US-LAB-AM-PM-1 invoke ICF_TopologyManager::ICF-TopologyManager setCommunities "test"
CI-E-EGENERIC-At TopologyManager.c:11287 argument 1 should be of type set of
MR_STRING: Number and types of arguments in call to operation don't match
its signature
MR-WRONG_OPERATION_ARGS-Number and types of arguments in call to operation
don't match its signature
The add function works, but there is no comparable removeCommunity function:
# dmctl -s US-LAB-AM-PM-1 invoke ICF_TopologyManager::ICF-TopologyManager addCommunity test
# dmctl -s US-LAB-AM-PM-1 invoke ICF_TopologyManager::ICF-TopologyManager getCommunities
{ "public" "test" }
___________________________________________________________________________
In Perl, I am running into the same problem:
my $community_strings = [
'public',
'test',
];
my $object = $smarts_session->object("ICF_TopologyManager::ICF-TopologyManager");
my $r = $object->invoke("setCommunities", $community_strings );
=>
# ./configure_polling_and_thresholds.pl
[15] CI-E-EGENERIC-At TopologyManager.c:11287 argument 1 should be of type set of
MR_STRING: Number and types of arguments in call to operation don't match
its signature
MR-WRONG_OPERATION_ARGS-Number and types of arguments in call to operation
don't match its signature, stopped at ./configure_polling_and_thresholds.pl line 102
Does anyone know what type of syntax it is expecting?
Thanks,
Alicia
Responses (0)
Solutions (0)
