Software Development Kit (SDK) and API Discussions

API call for snmp,ndmp and some node shell command

cannot find the API call for perl in cDOT.

 

snmp contact

snmp init

snmp location

ndmpd killall                    #corresponding CLI is { system | vserver } services ndmp killall

ndmpd probe                   #corresponding CLI is { system | vserver } services ndmp probe

 

and some command can be excuted in nodeshell, how can I call them form API?

rtag -t malloc

mem_scrub_stats

netdiag -s

netstat

 

Thanks for the help!

1 REPLY

Re: API call for snmp,ndmp and some node shell command

From ClusterShell you can use the "security login role show-ontapi" command to view a list of commands and their equivalent API.  According to that list, "snmp init" is the same as the "snmp-enable" API.

 

For the others, which are not in the list, you may be able to use the system-cli API to execute the commands.  Depending on the information you want from the diagnostic commands in the second list, the information may be available as a part of the perf APIs.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Forums